On Thu, Nov 05, 2015 at 06:23:52PM +0100, Theo Buehler wrote:
> On Thu, Nov 05, 2015 at 11:52:34AM -0500, Michael McConville wrote:
> > > It's not documented so it doesn't exist for me. :P
> > > 
> > > (hint hint)
> > 
> > Seconded.
> 
> Here is an update for some missing syscalls for
> "stdio", "proc" and "id":
> 
> Index: lib/libc/sys/pledge.2
> ===================================================================
> RCS file: /cvs/src/lib/libc/sys/pledge.2,v
> retrieving revision 1.12
> diff -u -p -r1.12 pledge.2
> --- lib/libc/sys/pledge.2     3 Nov 2015 16:31:54 -0000       1.12
> +++ lib/libc/sys/pledge.2     5 Nov 2015 17:21:24 -0000
> @@ -155,11 +155,11 @@ previously allocated file descriptors:
>  .Xr getresgid 2 ,
>  .Xr getresuid 2 ,
>  .Xr getrlimit 2 ,
> +.Xr getrusage 2 ,
>  .Xr getsid 2 ,
>  .Xr getthrid 2 ,
>  .Xr gettimeofday 2 ,
>  .Xr getuid 2 ,
> -.Xr getuid 2 ,
>  .Xr issetugid 2 ,
>  .Xr kevent 2 ,
>  .Xr kqueue 2 ,
> @@ -174,8 +174,10 @@ previously allocated file descriptors:
>  .Xr pipe 2 ,
>  .Xr pipe2 2 ,
>  .Xr poll 2 ,
> +.Xr ppoll 2 ,
>  .Xr pread 2 ,
>  .Xr preadv 2 ,
> +.Xr pselect 2 ,
>  .Xr pwrite 2 ,
>  .Xr pwritev 2 ,
>  .Xr read 2 ,
> @@ -189,9 +191,13 @@ previously allocated file descriptors:
>  .Xr setitimer 2 ,
>  .Xr shutdown 2 ,
>  .Xr sigaction 2 ,
> +.Xr sigaltstack 2 ,
> +.Xr sigpending 2 ,
>  .Xr sigprocmask 2 ,
>  .Xr sigreturn 2 ,
> +.Xr sigsuspend 2 ,
>  .Xr socketpair 2 ,
> +.Xr stat 2 ,
>  .Xr umask 2 ,
>  .Xr wait4 2 ,
>  .Xr write 2 ,
> @@ -412,8 +418,13 @@ Allows the following process relationshi
>  .Xr vfork 2 ,
>  .Xr kill 2 ,
>  .Xr setgroups 2 ,
> +.Xr setpgid 2 ,
>  .Xr setresgid 2 ,
> -.Xr setresuid 2 .
> +.Xr setresuid 2 ,
> +.Xr setrlimit 2 ,
> +.Xr setsid 2 ,
> +.Xr getpriority 2 ,
> +.Xr setpriority 2 .
>  .It Va "exec"
>  Allows a process to call
>  .Xr execve 2 .
> @@ -457,9 +468,11 @@ process:
>  .Pp
>  .Xr setuid 2 ,
>  .Xr seteuid 2 ,
> +.Xr setreuid 2 ,
>  .Xr setresuid 2 ,
>  .Xr setgid 2 ,
>  .Xr setegid 2 ,
> +.Xr setregid 2 ,
>  .Xr setresgid 2 ,
>  .Xr setgroups 2 ,
>  .Xr setlogin 2 ,
Looks like an improvement to me, thanks

Reply via email to