Fork of port of OpenBSD 'pledge()' function to Linux

Tommy Lincoln 859f71af3c updated ptable[] il y a 8 ans
.gitignore 859f71af3c updated ptable[] il y a 8 ans
LICENSE 77fa516549 Init commit il y a 8 ans
README.md d752021d6e README il y a 8 ans
pledge.c 859f71af3c updated ptable[] il y a 8 ans
pledge.h ba2f763137 initial commit il y a 8 ans
syscall_64.tbl ba2f763137 initial commit il y a 8 ans

README.md

linux-seccomp-pledge

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).

status

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.