mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-27 08:12:44 +00:00
in HTTP server mode, pledge needs to enable inet family function as well in order to function (#10988)
This commit is contained in:
parent
a93d33d23f
commit
fbccf163ac
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user