mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-06-07 08:22:40 -04:00
shuffle
https://forums.whonix.org/t/restrict-hardware-information-to-root/7329/80
This commit is contained in:
parent
28a440091d
commit
b05663c5f6
1 changed files with 2 additions and 2 deletions
|
@ -23,12 +23,12 @@ create_whitelist() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if grep -q "${1}" /etc/group; then
|
if grep -q "${1}" /etc/group; then
|
||||||
chmod o-rwx "${whitelist_path}"
|
|
||||||
|
|
||||||
## Changing the permissions of /sys recursively
|
## Changing the permissions of /sys recursively
|
||||||
## causes errors as the permissions of /sys/kernel/debug
|
## causes errors as the permissions of /sys/kernel/debug
|
||||||
## and /sys/fs/cgroup cannot be changed.
|
## and /sys/fs/cgroup cannot be changed.
|
||||||
chgrp -fR "${1}" "${whitelist_path}" || true
|
chgrp -fR "${1}" "${whitelist_path}" || true
|
||||||
|
|
||||||
|
chmod o-rwx "${whitelist_path}"
|
||||||
else
|
else
|
||||||
echo "ERROR: The ${1} group does not exist, the ${1} whitelist was not created."
|
echo "ERROR: The ${1} group does not exist, the ${1} whitelist was not created."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue