Expand description
seccomp-bpf
support on recent Linux kernels.
This works in tandem with namespace
in order to implement sandbox profiles. It is generally
the weaker of the two approaches, because BPF is limited, but itβs useful for reducing kernel
attack surface area and implementing coarse-grained policies.
Structs§
- sock_
filter π - sock_
fprog π
Constants§
- ABS π
- ALLO
W_ πSYSCALL - ARCH_NR πThe architecture number for x86-64.
- ARCH_
NR_ πOFFSET - ARG_
0_ πOFFSET - ARG_
1_ πOFFSET - ARG_
2_ πOFFSET - AUDI
T_ πARCH_ AARC H64 The architecture number for ARM 64-bit. - AUDI
T_ πARCH_ ARM The architecture number for ARM. - AUDI
T_ πARCH_ PPC The architecture number for ppc. - AUDI
T_ πARCH_ PPC64 The architecture number for ppc64. - AUDI
T_ πARCH_ PPC64LE The architecture number for ppc64le. - AUDI
T_ πARCH_ X86 The architecture number for x86. - AUDI
T_ πARCH_ X86_ 64 The architecture number for x86-64. - EM_386 π
- EM_
AARC πH64 - EM_ARM π
- EM_PPC π
- EM_
PPC64 π - EM_
X86_ π64 - EXAMIN
E_ πARG_ 0 - EXAMIN
E_ πARG_ 1 - EXAMIN
E_ πARG_ 2 - EXAMIN
E_ πSYSCALL - JEQ π
- JMP π
- JSET π
- K π
- KILL_
PROCESS π - LD π
- NETLIN
K_ πROUTE - PR_
SET_ πNO_ NEW_ PRIVS - PR_
SET_ πSECCOMP - RET π
- SECCOM
P_ πMODE_ FILTER - SECCOM
P_ πRET_ ALLOW - SECCOM
P_ πRET_ KILL - SYSCAL
L_ πNR_ OFFSET - W π
- __
AUDI πT_ ARCH_ 64BIT A flag set in the architecture number for all 64-bit architectures. - __
AUDI πT_ ARCH_ LE A flag set in the architecture number for all little-endian architectures.
Statics§
- Syscalls that are always allowed.
- FILTE
R_ πEPILOGUE - FILTE
R_ πPROLOGUE