playground

Sandbox, container or whatever utilities for linux.
git clone https://pi.duncano.de/git/playground.git
Log | Files | Refs | README

commit dc525808e440e5f7a0c6fb284046744a888a17c4
parent 6c293d1c0e933a3237e3df50d03379990d595f25
Author: Duncaen <mail@duncano.de>
Date:   Sun, 19 Feb 2017 22:13:39 +0100

libpledge: add SYS_getrandom to the stdio promise

Diffstat:
include/pledge_syscalls.h | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/include/pledge_syscalls.h b/include/pledge_syscalls.h @@ -18,6 +18,9 @@ const uint64_t pledge_syscalls[] = { [SYS_getppid] = PLEDGE_STDIO, [SYS_getsid] = PLEDGE_STDIO, [SYS_getrlimit] = PLEDGE_STDIO, +#ifdef SYS_getrandom + [SYS_getrandom] = PLEDGE_STDIO, +#endif [SYS_gettimeofday] = PLEDGE_STDIO, [SYS_getrusage] = PLEDGE_STDIO, [SYS_clock_getres] = PLEDGE_STDIO,