diff --git a/usr/lib/security-misc/hide-hardware-info b/usr/lib/security-misc/hide-hardware-info index a07d962..68b2d1e 100755 --- a/usr/lib/security-misc/hide-hardware-info +++ b/usr/lib/security-misc/hide-hardware-info @@ -24,16 +24,11 @@ create_whitelist() { if grep -q "${1}" /etc/group; then chmod o-rwx "${whitelist_path}" - chgrp -fR "${1}" "${whitelist_path}" ## Changing the permissions of /sys recursively ## causes errors as the permissions of /sys/kernel/debug - ## and /sys/fs/cgroup cannot be changed which makes - ## systemd say the service has failed even though - ## everything has completed successfully. So, this - ## returns "0" instead which makes systemd say the - ## service has succeeded. - return 0 + ## and /sys/fs/cgroup cannot be changed. + chgrp -fR "${1}" "${whitelist_path}" || true else echo "ERROR: The ${1} group does not exist, the ${1} whitelist was not created." fi