fso: /lib/
usr/lib/security-misc/permission-hardening: line 19: /usr/bin/stat: Argument list too long

https://forums.whonix.org/t/kernel-hardening/7296/326
This commit is contained in:
Patrick Schleizer 2019-12-20 04:48:02 -05:00
parent e74d2e4f94
commit d1d0afff34
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -52,7 +52,7 @@ add_nosuid_statoverride_entry() {
echo_wrapper dpkg-statoverride --add --update "$owner" "$group" "$new_mode" "$file_name"
fi
fi
done < <( stat -c "%n %a %U %G" "${fso_without_trailing_slash}/"** )
done < <( find "${fso_without_trailing_slash}/" -print0 | xargs -I{} -0 stat -c "%n %a %U %G" {} )
}
set_file_perms() {