Skip to content

Apply OCI seccomp filters to exec processes#12692

Open
dany74q wants to merge 2 commits intogoogle:masterfrom
dany74q:exec-seccomp-filters
Open

Apply OCI seccomp filters to exec processes#12692
dany74q wants to merge 2 commits intogoogle:masterfrom
dany74q:exec-seccomp-filters

Conversation

@dany74q
Copy link

@dany74q dany74q commented Mar 8, 2026

Seccomp filters ae currently only installed during runsc run but not in runsc exec.

This commit adds the ability to pass a seccomp program on ExecArgs to apply them for executable processes as well.

Copy link
Collaborator

@EtiennePerot EtiennePerot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a unit test for this in runsc/container/multi_container_test.go? It should verify that the correct seccomp filter is applied for multi-container cases. Set different seccomp rules in different containers (e.g. specific syscalls being denied with SCMP_ACT_ERRNO), then exec programs in each container that verifies that the syscalls they should otherwise have permission to call gets an error code, while syscalls they should be able to call can actually be called.

@dany74q dany74q force-pushed the exec-seccomp-filters branch from f93c612 to 5270baa Compare March 10, 2026 00:13
dany74q added 2 commits March 10, 2026 02:14
Seccomp filters ae currently only installed during `runsc run` but not in `runsc exec`.

This commit adds the ability to pass a seccomp program on ExecArgs to apply them for executable processes as well.
- Added test
- Fixed CR comments
copybara-service bot pushed a commit that referenced this pull request Mar 10, 2026
Seccomp filters ae currently only installed during `runsc run` but not in `runsc exec`.

This commit adds the ability to pass a seccomp program on ExecArgs to apply them for executable processes as well.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#12692 from dany74q:exec-seccomp-filters e6d64fd
PiperOrigin-RevId: 881472183
copybara-service bot pushed a commit that referenced this pull request Mar 10, 2026
Seccomp filters ae currently only installed during `runsc run` but not in `runsc exec`.

This commit adds the ability to pass a seccomp program on ExecArgs to apply them for executable processes as well.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#12692 from dany74q:exec-seccomp-filters e6d64fd
PiperOrigin-RevId: 881472183
copybara-service bot pushed a commit that referenced this pull request Mar 10, 2026
Seccomp filters ae currently only installed during `runsc run` but not in `runsc exec`.

This commit adds the ability to pass a seccomp program on ExecArgs to apply them for executable processes as well.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#12692 from dany74q:exec-seccomp-filters e6d64fd
PiperOrigin-RevId: 881472183
copybara-service bot pushed a commit that referenced this pull request Mar 10, 2026
Seccomp filters ae currently only installed during `runsc run` but not in `runsc exec`.

This commit adds the ability to pass a seccomp program on ExecArgs to apply them for executable processes as well.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#12692 from dany74q:exec-seccomp-filters e6d64fd
PiperOrigin-RevId: 881472183
copybara-service bot pushed a commit that referenced this pull request Mar 11, 2026
Seccomp filters ae currently only installed during `runsc run` but not in `runsc exec`.

This commit adds the ability to pass a seccomp program on ExecArgs to apply them for executable processes as well.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#12692 from dany74q:exec-seccomp-filters e6d64fd
PiperOrigin-RevId: 881472183
copybara-service bot pushed a commit that referenced this pull request Mar 11, 2026
Seccomp filters ae currently only installed during `runsc run` but not in `runsc exec`.

This commit adds the ability to pass a seccomp program on ExecArgs to apply them for executable processes as well.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#12692 from dany74q:exec-seccomp-filters e6d64fd
PiperOrigin-RevId: 881472183
copybara-service bot pushed a commit that referenced this pull request Mar 11, 2026
Seccomp filters ae currently only installed during `runsc run` but not in `runsc exec`.

This commit adds the ability to pass a seccomp program on ExecArgs to apply them for executable processes as well.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#12692 from dany74q:exec-seccomp-filters e6d64fd
PiperOrigin-RevId: 881472183
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.

2 participants