π§Linux Seccomp Labs
π― Objective
π§° Prerequisites
Install dependencies:
sudo apt update
sudo apt install gcc make strace seccomp-toolsπΉ Lab 1: Inspect syscalls with strace
strace1.1 Trace system calls of a command
strace ls1.2 Trace network command
πΉ Lab 2: Block syscalls with seccomp in C
2.1 Create a C program that uses write
writeπΉ Lab 3: Apply a seccomp filter to block write
write3.1 Modify the C code to add seccomp
3.2 Compile and run
πΉ Lab 4: Use seccomp-tools to inspect a binary
seccomp-tools to inspect a binaryπΉ Lab 5: Use prctl for strict mode filtering
prctl for strict mode filteringβ
Wrap-Up
Last updated