Skip to content

Commit 78a0a6e

Browse files
committed
doc: Add documentation for max kernel version attributes
Add documentation for SCMP_FLTATR_ACT_UNKNOWN and SCMP_FLTATR_CTL_KVER. Signed-off-by: Tom Hromatka <[email protected]>
1 parent 7a31c84 commit 78a0a6e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

doc/man/man3/seccomp_attr_set.3

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,18 @@ A flag to specify if libseccomp should request wait killable semantics when
138138
possible. Defaults to off
139139
.RI ( value
140140
== 0).
141+
.TP
142+
.B SCMP_FLTATR_ACT_ENOSYS
143+
Action to take when an unknown (too new) syscall is invoked. Used in
144+
conjunction with SCMP_FLTATR_CTL_KVER. Defaults to SCMP_ACT_ERRNO(38)
145+
(ENOSYS). If desired behavior differs from the default, then this attribute
146+
must be set prior to setting SCMP_FLTATR_CTL_KVERMAX.
147+
.TP
148+
.B SCMP_FLTATR_CTL_KVERMAX
149+
Maximum kernel version understood by the user application. Syscalls from
150+
newer kernel versions will return with the action in SCMP_FLTATR_ACT_ENOSYS.
151+
Once SCMP_FLTATR_CTL_KVERMAX is set, no more rules can be added to the
152+
filter. Attempting to add more rules will result in -EINVAL.
141153
.\" //////////////////////////////////////////////////////////////////////////
142154
.SH RETURN VALUE
143155
.\" //////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)