Skip to content

Commit 513ab68

Browse files
author
zhouhao
committed
Add new architectures from libseccomp 2.3.2
Signed-off-by: zhouhao <[email protected]>
1 parent 40474dd commit 513ab68

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

config-linux.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ Seccomp provides application sandboxing mechanism in the Linux kernel.
496496
Seccomp configuration allows one to configure actions to take for matched syscalls and furthermore also allows matching on values passed as arguments to syscalls.
497497
For more information about Seccomp, see [Seccomp kernel documentation](https://www.kernel.org/doc/Documentation/prctl/seccomp_filter.txt)
498498
The actions, architectures, and operators are strings that match the definitions in seccomp.h from [libseccomp](https://github.com/seccomp/libseccomp) and are translated to corresponding values.
499-
A valid list of constants as of libseccomp v2.3.0 is shown below.
499+
A valid list of constants as of libseccomp v2.3.2 is shown below.
500500

501501
Architecture Constants
502502
* `SCMP_ARCH_X86`
@@ -515,6 +515,8 @@ Architecture Constants
515515
* `SCMP_ARCH_PPC64LE`
516516
* `SCMP_ARCH_S390`
517517
* `SCMP_ARCH_S390X`
518+
* `SCMP_ARCH_PARISC`
519+
* `SCMP_ARCH_PARISC64`
518520

519521
Action Constants:
520522
* `SCMP_ACT_KILL`

schema/defs-linux.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
"SCMP_ARCH_PPC64",
1919
"SCMP_ARCH_PPC64LE",
2020
"SCMP_ARCH_S390",
21-
"SCMP_ARCH_S390X"
21+
"SCMP_ARCH_S390X",
22+
"SCMP_ARCH_PARISC",
23+
"SCMP_ARCH_PARISC64"
2224
]
2325
},
2426
"SeccompAction": {

specs-go/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,8 @@ const (
506506
ArchPPC64LE Arch = "SCMP_ARCH_PPC64LE"
507507
ArchS390 Arch = "SCMP_ARCH_S390"
508508
ArchS390X Arch = "SCMP_ARCH_S390X"
509+
ArchPARISC Arch = "SCMP_ARCH_PARISC"
510+
ArchPARISC64 Arch = "SCMP_ARCH_PARISC64"
509511
)
510512

511513
// LinuxSeccompAction taken upon Seccomp rule match

0 commit comments

Comments
 (0)