Skip to content

Commit 722c7dd

Browse files
committed
Add SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV
Linux 5.19 introduced a new seccomp flag: SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git/commit/?id=c2aa2dfef243 It is useful for seccomp notify when handling notification from Golang programs which are often preempted by the runtime with SIGURG. The flag was added in runtime-spec: opencontainers/runtime-spec@4bcd065 and implemented in crun: containers/crun@396ac88 But not yet in runc. Signed-off-by: Alban Crequy <albancrequy@microsoft.com>
1 parent ecc7be2 commit 722c7dd

File tree

9 files changed

+10
-1
lines changed

9 files changed

+10
-1
lines changed

api/seccompprofile/v1beta1/seccompprofile_types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ type SeccompProfileSpec struct {
6969
//nolint:lll // required for kubebuilder
7070
type Arch string
7171

72-
// +kubebuilder:validation:Enum=SECCOMP_FILTER_FLAG_TSYNC;SECCOMP_FILTER_FLAG_LOG;SECCOMP_FILTER_FLAG_SPEC_ALLOW
72+
// nolint:lll // required for kubebuilder
73+
// +kubebuilder:validation:Enum=SECCOMP_FILTER_FLAG_TSYNC;SECCOMP_FILTER_FLAG_LOG;SECCOMP_FILTER_FLAG_SPEC_ALLOW;SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV
7374
type Flag string
7475

7576
// Syscall defines a syscall in seccomp.

bundle/manifests/security-profiles-operator.x-k8s.io_seccompprofiles.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ spec:
100100
- SECCOMP_FILTER_FLAG_TSYNC
101101
- SECCOMP_FILTER_FLAG_LOG
102102
- SECCOMP_FILTER_FLAG_SPEC_ALLOW
103+
- SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV
103104
type: string
104105
type: array
105106
listenerMetadata:

deploy/base-crds/crd.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ spec:
313313
- SECCOMP_FILTER_FLAG_TSYNC
314314
- SECCOMP_FILTER_FLAG_LOG
315315
- SECCOMP_FILTER_FLAG_SPEC_ALLOW
316+
- SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV
316317
type: string
317318
type: array
318319
syscalls:

deploy/base-crds/crds/seccompprofile.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ spec:
9898
- SECCOMP_FILTER_FLAG_TSYNC
9999
- SECCOMP_FILTER_FLAG_LOG
100100
- SECCOMP_FILTER_FLAG_SPEC_ALLOW
101+
- SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV
101102
type: string
102103
type: array
103104
listenerMetadata:

deploy/helm/crds/crds.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ spec:
305305
- SECCOMP_FILTER_FLAG_TSYNC
306306
- SECCOMP_FILTER_FLAG_LOG
307307
- SECCOMP_FILTER_FLAG_SPEC_ALLOW
308+
- SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV
308309
type: string
309310
type: array
310311
listenerMetadata:

deploy/namespace-operator.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ spec:
305305
- SECCOMP_FILTER_FLAG_TSYNC
306306
- SECCOMP_FILTER_FLAG_LOG
307307
- SECCOMP_FILTER_FLAG_SPEC_ALLOW
308+
- SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV
308309
type: string
309310
type: array
310311
listenerMetadata:

deploy/openshift-dev.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ spec:
305305
- SECCOMP_FILTER_FLAG_TSYNC
306306
- SECCOMP_FILTER_FLAG_LOG
307307
- SECCOMP_FILTER_FLAG_SPEC_ALLOW
308+
- SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV
308309
type: string
309310
type: array
310311
listenerMetadata:

deploy/operator.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ spec:
305305
- SECCOMP_FILTER_FLAG_TSYNC
306306
- SECCOMP_FILTER_FLAG_LOG
307307
- SECCOMP_FILTER_FLAG_SPEC_ALLOW
308+
- SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV
308309
type: string
309310
type: array
310311
listenerMetadata:

deploy/webhook-operator.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,7 @@ spec:
481481
- SECCOMP_FILTER_FLAG_TSYNC
482482
- SECCOMP_FILTER_FLAG_LOG
483483
- SECCOMP_FILTER_FLAG_SPEC_ALLOW
484+
- SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV
484485
type: string
485486
type: array
486487
listenerMetadata:

0 commit comments

Comments
 (0)