Commit Graph

8 Commits

Author SHA1 Message Date
f138cf0f78 Refactor permission-hardener
- Organize comments from default configuration;
- Apply and undo changes from a single file controlled by parameters;
- Arrays should be evaluated as arrays and not normal variables;
- Quote variables;
- Brackets around variables;
- Standardize test cases to "test" command;
- Test against empty or non-empty variables with "-z" and "-n";
- Show a usage message when necessary;
- Require root to run the script with informative message;
- Permit the user to see the help message without running as root;
- Do not create root directories without passing root check;
- Use long options for "set" command;
2024-01-02 12:17:16 +01:00
df5f3e8056 output 2023-11-06 16:36:22 -05:00
4219347f0a fix permission-hardener config parsing issue 2023-11-05 16:43:44 -05:00
e72f79236b refactoring 2023-11-05 16:41:41 -05:00
dea0d9a78a fix permission-hardener config parsing issue 2023-11-05 16:40:49 -05:00
017ae18ad7 fix permission-hardener config parsing issue 2023-11-05 16:39:10 -05:00
65e3c14643 fix permission-hardener config parsing issue 2023-11-05 16:35:11 -05:00
4a19fbae0b move permission-hardening to /usr/bin to make it more easily accessible 2023-11-05 15:13:01 -05:00