mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-05-03 03:54:51 -04:00
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;
This commit is contained in:
parent
e15596e7af
commit
f138cf0f78
3 changed files with 615 additions and 595 deletions
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue