2 ms·
Sure. But libseccomp does use the same "only explicitly allowed" path that pledge() does. It also uses "pseudo" names for the syscalls, so there's one place to
by tyingq 11y ago
Sure. But libseccomp does use the same "only explicitly allowed" path that pledge() does. It also uses "pseudo" names for the syscalls, so there's one place to look up the list: https://github.com/seccomp/libseccomp/blob/master/include/seccomp.h.in#L581 https://github.com/seccomp/libseccomp/blob/master/include/se...
The aliases that pledge offers (like stdio) that sum up logical groups would be nice, but that's a minor difference to me.
- justincormack 11y agoYou can blacklist or whitelist with seccomp it is up to you. The pseudo names dont help significantly. It gives you a small amount of help with the socketcall issues on 32 bit linux, but you are largely on your own. Pledge also gives you ability to block or allow on pathnames, which you cant do easily with seccomp, as you just get pointers. You are better off using one of the other security mechanisms to deal with paths, but it is not simple.