fix permission-hardener config parsing issue

This commit is contained in:
Patrick Schleizer 2023-11-05 16:40:49 -05:00
parent 017ae18ad7
commit dea0d9a78a
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -469,6 +469,11 @@ set_file_perms() {
}
parse_config_folder() {
touch /var/lib/permission-hardening/private/passwd
chmod og-rwx /var/lib/permission-hardening/private/passwd
touch /var/lib/permission-hardening/private/group
chmod og-rwx /var/lib/permission-hardening/private/group
local passwd_file_contents_temp
# Query contents of password and group databases only once and buffer them
#