From aef796a524f9156b584a7d8d203decc446c5d3b9 Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Sat, 21 Dec 2019 07:44:23 -0500 Subject: [PATCH] disable debugging --- usr/lib/security-misc/permission-hardening-undo | 6 ------ 1 file changed, 6 deletions(-) diff --git a/usr/lib/security-misc/permission-hardening-undo b/usr/lib/security-misc/permission-hardening-undo index 2368091..5f2324d 100755 --- a/usr/lib/security-misc/permission-hardening-undo +++ b/usr/lib/security-misc/permission-hardening-undo @@ -31,21 +31,15 @@ undo_all() { fi true "owner: '$owner' group: '$group' mode: '$mode' file_name: '$file_name'" - stat -c "%n %a %U %G" "$file_name" || true - chown "${owner}:${group}" "$file_name" || exit_code=202 ## chmod need to be run after chown since chown removes suid. ## https://unix.stackexchange.com/questions/53665/chown-removes-setuid-bit-bug-or-feature chmod "$mode" "$file_name" || exit_code=203 - stat -c "%n %a %U %G" "$file_name" || true - dpkg-statoverride --remove "$file_name" &>/dev/null || true dpkg-statoverride $dpkg_admindir_parameter_existing_mode --remove "$file_name" &>/dev/null || true dpkg-statoverride $dpkg_admindir_parameter_new_mode --remove "$file_name" &>/dev/null || true - stat -c "%n %a %U %G" "$file_name" || true - done < "/var/lib/permission-hardening/existing_mode/statoverride" }