mirror of
https://github.com/containerd/containerd.git
synced 2026-11-06 05:17:02 +00:00
seccomp: Document socket rule scope and socketcall limitation
Add a comment explaining the purpose of the socket rules and noting that on 32-bit x86, socket() goes through socketcall(2) which is allowed unconditionally, so these arg filters only apply to the direct socket syscall. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
1 file changed
+4
@@ -426,6 +426,10 @@ func DefaultProfile(sp *specs.Spec) *specs.LinuxSeccomp {
|
||||
Action: specs.ActAllow,
|
||||
Args: []specs.LinuxSeccompArg{},
|
||||
},
|
||||
// Allow socket(2) for all address families except AF_VSOCK.
|
||||
// NOTE: on 32-bit x86, socket() goes through socketcall(2) which is
|
||||
// allowed unconditionally above; these arg filters only apply to the
|
||||
// direct socket syscall.
|
||||
{
|
||||
Names: []string{"socket"},
|
||||
Action: specs.ActAllow,
|
||||
|
||||
Reference in new issue
Block a user