From 61f742304d26e73df8433bd6fa03d33d39e39625 Mon Sep 17 00:00:00 2001 From: madaidan <50278627+madaidan@users.noreply.github.com> Date: Wed, 16 Oct 2019 19:46:59 +0000 Subject: [PATCH] return 0 --- usr/lib/security-misc/hide-hardware-info | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/usr/lib/security-misc/hide-hardware-info b/usr/lib/security-misc/hide-hardware-info index 6641c18..93e6ea7 100755 --- a/usr/lib/security-misc/hide-hardware-info +++ b/usr/lib/security-misc/hide-hardware-info @@ -25,6 +25,15 @@ 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 else echo "ERROR: The ${1} group does not exist, the ${1} whitelist was not created." fi