skip folders are these are not suid / guid

This commit is contained in:
Patrick Schleizer 2019-12-20 11:47:53 -05:00
parent 9321ecff41
commit 71496a33ab
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -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