This commit is contained in:
Patrick Schleizer 2019-12-20 06:32:04 -05:00
parent cca0908d9a
commit fb4254547b
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -50,6 +50,17 @@ add_nosuid_statoverride_entry() {
new_mode="$existing_mode" new_mode="$existing_mode"
fi fi
## https://forums.whonix.org/t/permission-hardening/8655/10
# if [ "$new_mode" = "755" ]; then
# new_mode=744
# fi
# if [ "$new_mode" = "754" ]; then
# new_mode=744
# fi
# if [ "$new_mode" = "745" ]; then
# new_mode=744
# fi
echo "INFO: $setuid_output $setguid_output found - file_name: '$file_name' | existing_mode: '$existing_mode' | new_mode: '$new_mode'" echo "INFO: $setuid_output $setguid_output found - file_name: '$file_name' | existing_mode: '$existing_mode' | new_mode: '$new_mode'"
if dpkg-statoverride --list | grep -q "$file_name"; then if dpkg-statoverride --list | grep -q "$file_name"; then