in HTTP server mode, pledge needs to enable inet family function as well in order to function (#10988)

This commit is contained in:
David CARLIER 2018-08-08 07:26:22 +01:00 committed by Anton Kochkov
parent a93d33d23f
commit fbccf163ac

View File

@ -118,7 +118,7 @@ R_API bool r_sandbox_enable (bool e) {
}
enabled = e;
#if LIBC_HAVE_PLEDGE
if (enabled && pledge ("stdio rpath tty prot_exec", NULL) == -1) {
if (enabled && pledge ("stdio rpath tty prot_exec inet", NULL) == -1) {
eprintf ("sandbox: pledge call failed\n");
return false;
}