diff --git a/usr/lib/security-misc/permission-hardening b/usr/lib/security-misc/permission-hardening index 5aa0c90..b6ed04c 100755 --- a/usr/lib/security-misc/permission-hardening +++ b/usr/lib/security-misc/permission-hardening @@ -28,6 +28,11 @@ echo_wrapper_ignore() { "$@" 2>/dev/null || true } +echo_wrapper_silent_ignore() { + #echo "run: $@" + "$@" 2>/dev/null || true +} + echo_wrapper_audit() { echo "run: $@" return_code=0 @@ -190,7 +195,7 @@ add_nosuid_statoverride_entry() { echo_wrapper_ignore dpkg-statoverride --remove "$file_name" ## Remove from separate database. - echo_wrapper_ignore dpkg-statoverride $dpkg_admindir_parameter_new_mode --remove "$file_name" + echo_wrapper_silent_ignore dpkg-statoverride $dpkg_admindir_parameter_new_mode --remove "$file_name" ## Add to real database and use --update to make changes on disk. echo_wrapper_audit dpkg-statoverride --add --update "$existing_owner" "$existing_group" "$new_mode" "$file_name"