skip symlinks

https://forums.whonix.org/t/kernel-hardening/7296/323?
This commit is contained in:
Patrick Schleizer 2019-12-20 02:57:57 -05:00
parent cc8f795799
commit 640ca1d24d
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -28,6 +28,12 @@ add_statoverride_entry() {
## -u file True if file has its set-user-id bit set.
## -g file True if file has its set-group-id bit set.
if test -h "${file_name}" ; then
## https://forums.whonix.org/t/kernel-hardening/7296/323
true "skip symlink: ${file_name}"
continue
fi
if test -u "${file_name}" || test -g "${file_name}"; then
string_length_of_existing_mode="${#existing_mode}"
if [ "$string_length_of_existing_mode" = "4" ]; then