Fork of port of OpenBSD 'pledge()' function to Linux
Tommy Lincoln 859f71af3c updated ptable[] | пре 8 година | |
---|---|---|
.gitignore | пре 8 година | |
LICENSE | пре 8 година | |
README.md | пре 8 година | |
pledge.c | пре 8 година | |
pledge.h | пре 8 година | |
syscall_64.tbl | пре 8 година |
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.