Skip to content

seccomp: Docker incompatibility: containerd profile does not contain get_mempolicy, mbind, set_mempolicy even when CAP_SYS_NICE is granted #7150

@AkihiroSuda

Description

@AkihiroSuda

https://github.com/moby/moby/blob/0910306bf970603ce787466a98e4294ba81af841/profiles/seccomp/default_linux.go#L753-L765

		{
			LinuxSyscall: specs.LinuxSyscall{
				Names: []string{
					"get_mempolicy",
					"mbind",
					"set_mempolicy",
				},
				Action: specs.ActAllow,
			},
			Includes: &Filter{
				Caps: []string{"CAP_SYS_NICE"},
			},
		},

The containerd profile does not seem to contain the syscalls above.
https://github.com/containerd/containerd/blob/main/contrib/seccomp/seccomp_default.go

Not sure if this was accidental or on purpose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions