Skip to content

Commit

Permalink
doc: clarify seccomp_rule_add syscall translation behavior
Browse files Browse the repository at this point in the history
Refs #259.

Signed-off-by: Tudor Brindus <[email protected]>
  • Loading branch information
Xyene committed Jun 25, 2020
1 parent 34bf78a commit 1cb5762
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doc/man/man3/seccomp_rule_add.3
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,11 @@ value directly using the standard
values, in order to ensure proper operation across multiple architectures it
is highly recommended to use the
.BR SCMP_SYS ()
macro instead. See the EXAMPLES section below.
macro instead. See the EXAMPLES section below. If using
.B __NR_syscall
values in a context containing non-native architectures, the syscall
corresponding to the value in the native architecture will be used in all
non-native architectures.
.P
Starting with Linux v4.8, there may be a need to create a rule with a syscall
value of -1 to allow tracing programs to skip a syscall invocation; in order
Expand Down

0 comments on commit 1cb5762

Please sign in to comment.