4 ms·
There's libseccomp which provides nice interface, but still at syscall level. You can't easily implement pledge interface on seccomp, because you can't derefere
by viraptor 10y ago
There's libseccomp which provides nice interface, but still at syscall level. You can't easily implement pledge interface on seccomp, because you can't dereference pointers in BPF. So if you want to support both, you'll have to do a bit of rearchitecture anyway. But it's not very hard.
Mostly a: implement was you know, (see if all works, add missing calls, repeat)+ process