rain1 d752021d6e README | vor 8 Jahren | |
---|---|---|
.gitignore | vor 8 Jahren | |
LICENSE | vor 8 Jahren | |
README.md | vor 8 Jahren | |
pledge.c | vor 8 Jahren | |
pledge.h | vor 8 Jahren | |
syscall_64.tbl | vor 8 Jahren |
The aim of this is to implement pledge on linux using seccomp rules.
seccomp supports filtering syscalls in a way that isn't vulnerable to race conditions (as ptrace is).
The design and structure of the code is complete (parses the pledge string correctly, builds up a a bitmask using flags, adds rules for each flag), all that's left is filling in each of the promise sections with all the syscalls that are needed, and testing them.