mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 17:26:28 +00:00
Enable sysctl kernel.dmesg_restrict
This requires that users have `CAP_SYSLOG` in order to access `dmesg`. This means that containers by default have no access to `dmesg` (which can leak information about the host or other containers) unless they have this capability added. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
305aa129d2
commit
ce2347eda6
@ -22,6 +22,7 @@ net.ipv4.conf.default.accept_redirects = 0
|
||||
net.ipv4.conf.default.accept_source_route = 0
|
||||
net.ipv6.conf.all.accept_redirects = 0
|
||||
net.ipv6.conf.default.accept_redirects = 0
|
||||
kernel.dmesg_restrict = 1
|
||||
kernel.perf_event_paranoid = 3
|
||||
fs.protected_hardlinks = 1
|
||||
fs.protected_symlinks = 1
|
||||
|
Loading…
Reference in New Issue
Block a user