Created
May 10, 2016 14:55
-
-
Save BenHall/e6432815663a7996b955726b3c4eb67a to your computer and use it in GitHub Desktop.
seccomp not applying?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Given this profile: | |
``` | |
cat b.json | |
{ | |
"defaultAction": "SCMP_ACT_ALLOW", | |
"architectures": [ | |
"SCMP_ARCH_X86_64", | |
"SCMP_ARCH_X86", | |
"SCMP_ARCH_X32" | |
], | |
"syscalls": [ | |
{ | |
"name": "chmod", | |
"action": "SCMP_ACT_ERRNO", | |
"args": [] | |
}, | |
{ | |
"name": "chown", | |
"action": "SCMP_ACT_ERRNO", | |
"args": [] | |
}, | |
{ | |
"name": "chown32", | |
"action": "SCMP_ACT_ERRNO", | |
"args": [] | |
} | |
] | |
} | |
``` | |
I would have expected the following container to fail as seccomp has blocked seccomp. | |
``` | |
> docker run --rm -it --security-opt seccomp:b.json ubuntu chmod 400 /etc/hostname | |
> echo $? | |
0 | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Behaviour on a different machine. Seccomp is only being applied if I set a user too.