1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 03:47:34 +00:00

ping: Use pledge()

This commit is contained in:
Andreas Kling 2020-01-11 20:48:43 +01:00
parent 41c504a33b
commit 409a4f7756
4 changed files with 295 additions and 1 deletions

View file

@ -148,7 +148,8 @@ typedef u32 socklen_t;
__ENUMERATE_SYSCALL(futex) \
__ENUMERATE_SYSCALL(set_thread_boost) \
__ENUMERATE_SYSCALL(set_process_boost) \
__ENUMERATE_SYSCALL(chroot)
__ENUMERATE_SYSCALL(chroot) \
__ENUMERATE_SYSCALL(pledge)
namespace Syscall {
@ -360,6 +361,11 @@ struct SC_mount_params {
int flags;
};
struct SC_pledge_params {
StringArgument promises;
StringArgument execpromises;
};
void initialize();
int sync();