mirror of
https://github.com/rsmarples/dhcpcd.git
synced 2024-11-23 18:14:09 +08:00
privsep: Note that unveil(2) is not needed
As we are in a chroot. https://www.mail-archive.com/misc@openbsd.org/msg171664.html
This commit is contained in:
parent
4bb0c8ff02
commit
3941274074
@ -622,6 +622,9 @@ ps_entersandbox(const char *_pledge, const char **sandbox)
|
||||
#elif defined(HAVE_PLEDGE)
|
||||
if (sandbox != NULL)
|
||||
*sandbox = "pledge";
|
||||
// There is no need to use unveil(2) because we are in an empty chroot
|
||||
// This is encouraged by Theo de Raadt himself:
|
||||
// https://www.mail-archive.com/misc@openbsd.org/msg171655.html
|
||||
return pledge(_pledge, NULL);
|
||||
#elif defined(HAVE_SECCOMP)
|
||||
if (sandbox != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user