From 71496a33ab27455d2856284d21f261dd20780dc2 Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Fri, 20 Dec 2019 11:47:53 -0500 Subject: [PATCH] skip folders are these are not suid / guid --- usr/lib/security-misc/permission-hardening | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/usr/lib/security-misc/permission-hardening b/usr/lib/security-misc/permission-hardening index 6a2cb86..6c33089 100755 --- a/usr/lib/security-misc/permission-hardening +++ b/usr/lib/security-misc/permission-hardening @@ -71,6 +71,12 @@ add_nosuid_statoverride_entry() { continue fi + if test -d "$file_name" ; then + ## https://forums.whonix.org/t/kernel-hardening/7296/323 + true "skip folder: $file_name" + continue + fi + setuid="" setuid_output="" if test -u "$file_name" ; then