mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-03-10 12:53:31 +07:00
parent
cc8f795799
commit
640ca1d24d
@ -28,6 +28,12 @@ add_statoverride_entry() {
|
|||||||
## -u file True if file has its set-user-id bit set.
|
## -u file True if file has its set-user-id bit set.
|
||||||
## -g file True if file has its set-group-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
|
if test -u "${file_name}" || test -g "${file_name}"; then
|
||||||
string_length_of_existing_mode="${#existing_mode}"
|
string_length_of_existing_mode="${#existing_mode}"
|
||||||
if [ "$string_length_of_existing_mode" = "4" ]; then
|
if [ "$string_length_of_existing_mode" = "4" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user