mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add /proc/acpi to masked paths
The deafult OCI linux spec in oci/defaults{_linux}.go in Docker/Moby from 1.11 to current upstream master does not block /proc/acpi pathnames allowing attackers to modify host's hardware like enabling/disabling bluetooth or turning up/down keyboard brightness. SELinux prevents all of this if enabled. Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
06dee4cc27
commit
569b9702a5
1 changed files with 1 additions and 0 deletions
|
@ -114,6 +114,7 @@ func DefaultLinuxSpec() specs.Spec {
|
|||
|
||||
s.Linux = &specs.Linux{
|
||||
MaskedPaths: []string{
|
||||
"/proc/acpi",
|
||||
"/proc/kcore",
|
||||
"/proc/keys",
|
||||
"/proc/latency_stats",
|
||||
|
|
Loading…
Add table
Reference in a new issue