mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-01-14 10:09:30 -05:00
output
This commit is contained in:
parent
50b8f65490
commit
e36868e675
@ -94,8 +94,6 @@ add_nosuid_statoverride_entry() {
|
||||
# new_mode=744
|
||||
# fi
|
||||
|
||||
echo "INFO: $setuid_output $setguid_output found - file_name: '$file_name' | existing_mode: '$existing_mode' | new_mode: '$new_mode'"
|
||||
|
||||
is_whitelisted=""
|
||||
for white_list_entry in $whitelist ; do
|
||||
if [ "$file_name" = "$white_list_entry" ]; then
|
||||
@ -106,10 +104,12 @@ add_nosuid_statoverride_entry() {
|
||||
done
|
||||
|
||||
if [ "$is_whitelisted" = "true" ]; then
|
||||
echo "INFO: skip whitelisted: '$file_name'"
|
||||
echo "INFO: SKIP whitelisted - $setuid_output $setguid_output found - file_name: '$file_name' | existing_mode: '$existing_mode'"
|
||||
continue
|
||||
fi
|
||||
|
||||
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 "$owner $group $new_mode $file_name"; then
|
||||
echo_wrapper dpkg-statoverride --remove "$file_name"
|
||||
|
Loading…
Reference in New Issue
Block a user