From e5f8004a9401727f1be2db492ea756bc19090866 Mon Sep 17 00:00:00 2001 From: Krish-sysadmin Date: Tue, 5 Jul 2022 03:37:40 +0200 Subject: [PATCH] Update hide-hardware-info --- usr/libexec/security-misc/hide-hardware-info | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/libexec/security-misc/hide-hardware-info b/usr/libexec/security-misc/hide-hardware-info index 4d1c8ca..30c2db8 100755 --- a/usr/libexec/security-misc/hide-hardware-info +++ b/usr/libexec/security-misc/hide-hardware-info @@ -93,9 +93,9 @@ if [ -d /sys/fs/selinux ]; then for i in /sys/* /sys/fs/* do if [ "${sysfs_whitelist}" = "1" ]; then - chmod o-rwx "${i}" + chmod o-rwx "${i}" || continue else - chmod og-rwx "${i}" + chmod og-rwx "${i}" || continue fi done chmod o+rx /sys /sys/fs /sys/fs/selinux