mirror of
https://github.com/SELinuxProject/selinux
synced 2025-02-07 13:21:45 +00:00
74d27a9733
If seunshare uses PR_SET_NO_NEW_PRIVS, which certain versions of libcap-ng set, setexeccon will cause execve to fail. This also makes setting selinux context the very last action taken by seunshare prior to exec, as it may otherwise cause things to fail. Note that this won't work without adjusting the system policy to allow this use of setcurrent. This rule appears to work: allow unconfined_t sandbox_t:process dyntransition; although a better rule would probably relax the unconfined_t restriction. Signed-off-by: Andy Lutomirski <luto@amacapital.net> |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile | ||
sandbox | ||
sandbox.5 | ||
sandbox.8 | ||
sandbox.conf | ||
sandbox.config | ||
sandbox.init | ||
sandboxX.sh | ||
seunshare.8 | ||
seunshare.c | ||
start | ||
test_sandbox.py |