Skip to content

Block additional ptrace related syscalls in default seccomp profile - #18971

Merged
icecrime merged 1 commit into
moby:masterfrom
justincormack:ptrace
Dec 29, 2015
Merged

icecrime merged 1 commit into
moby:masterfrom
justincormack:ptrace

Conversation

@justincormack

Copy link
Copy Markdown
Contributor

Block kcmp, procees_vm_readv, process_vm_writev.
All these require CAP_PTRACE, and are only used for ptrace related
actions, so are not useful as we block ptrace.

Signed-off-by: Justin Cormack [email protected]

@icecrime

Copy link
Copy Markdown
Contributor
---> Making bundle: validate-gofmt (in bundles/1.10.0-dev/validate-gofmt)
These files are not properly gofmt'd:
 - daemon/execdriver/native/seccomp_default.go

Block kcmp, procees_vm_readv, process_vm_writev.
All these require CAP_PTRACE, and are only used for ptrace related
actions, so are not useful as we block ptrace.

Signed-off-by: Justin Cormack <[email protected]>
@justincormack

Copy link
Copy Markdown
Contributor Author

Should be fixed now, sorry.

@jessfraz

Copy link
Copy Markdown
Contributor

LGTM

@icecrime

Copy link
Copy Markdown
Contributor

LGTM

icecrime pushed a commit that referenced this pull request Dec 29, 2015
Block additional ptrace related syscalls in default seccomp profile
@icecrime
icecrime merged commit e01cab1 into moby:master Dec 29, 2015
@justincormack
justincormack deleted the ptrace branch October 25, 2016 12:45
clubby789 added a commit to clubby789/moby that referenced this pull request Feb 26, 2021
These syscalls were disabled in moby#18971
due to them requiring CAP_PTRACE. CAP_PTRACE was blocked by default due
to a ptrace related exploit. This has been patched in the Linux kernel
(version 4.8) and thus `ptrace` has been re-enabled. However, these
associated syscalls seem to have been left behind. This commit brings
them in line with `ptrace`, and re-enables it for kernel > 4.8.

Signed-off-by: clubby789 <[email protected]>
clubby789 added a commit to clubby789/moby that referenced this pull request Mar 4, 2021
These syscalls were disabled in moby#18971
due to them requiring CAP_PTRACE. CAP_PTRACE was blocked by default due
to a ptrace related exploit. This has been patched in the Linux kernel
(version 4.8) and thus `ptrace` has been re-enabled. However, these
associated syscalls seem to have been left behind. This commit brings
them in line with `ptrace`, and re-enables it for kernel > 4.8.

Signed-off-by: clubby789 <[email protected]>
thaJeztah pushed a commit to thaJeztah/docker that referenced this pull request Dec 1, 2022
These syscalls were disabled in moby#18971
due to them requiring CAP_PTRACE. CAP_PTRACE was blocked by default due
to a ptrace related exploit. This has been patched in the Linux kernel
(version 4.8) and thus `ptrace` has been re-enabled. However, these
associated syscalls seem to have been left behind. This commit brings
them in line with `ptrace`, and re-enables it for kernel > 4.8.

Signed-off-by: clubby789 <[email protected]>
(cherry picked from commit d39b075)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants