diff options
author | Juan RP <xtraeme@gmail.com> | 2015-03-11 09:26:31 +0100 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2015-03-11 09:26:31 +0100 |
commit | e738582e8713aa2f0b6a9c3a4ad34c4a9d482ba2 (patch) | |
tree | 0d2000196b63ea31cc078dbfa982264763a771df | |
parent | 54c677a1463ab6577ee812b99adbd8b63840db80 (diff) | |
parent | 1ea8901a50ddeaaddf4ab069e3e34dd3d996c385 (diff) | |
download | runit-void-e738582e8713aa2f0b6a9c3a4ad34c4a9d482ba2.tar.gz runit-void-e738582e8713aa2f0b6a9c3a4ad34c4a9d482ba2.tar.xz runit-void-e738582e8713aa2f0b6a9c3a4ad34c4a9d482ba2.zip |
Merge pull request #17 from nmeum/master
Restrict access to /var/log/dmesg.log
-rwxr-xr-x | 1 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/1 b/1 index bba2dd3..9e9f413 100755 --- a/1 +++ b/1 @@ -16,6 +16,11 @@ for f in /etc/runit/core-services/*.sh; do done dmesg >/var/log/dmesg.log +if [ $(sysctl -n kernel.dmesg_restrict 2>/dev/null) -eq 1 ]; then + chmod 0600 /var/log/dmesg.log +else + chmod 0644 /var/log/dmesg.log +fi mkdir -p /run/runit install -m100 /dev/null /run/runit/stopit |