Re: lib/libc/sys/pledge.2: Fix comment

2017-01-29 Thread Jason McIntyre
On Sun, Jan 29, 2017 at 12:40:40PM -0500, Michael Reed wrote:
> It seem that sio_open(3) is more relevant to the "audio" pledge
> than the "bpf" one, so move the reference accordingly.
> 

fixed, thanks.
jmc

> 
> Index: pledge.2
> ===
> RCS file: /cvs/src/lib/libc/sys/pledge.2,v
> retrieving revision 1.39
> diff -u -p -r1.39 pledge.2
> --- pledge.223 Jan 2017 07:19:39 -  1.39
> +++ pledge.229 Jan 2017 17:38:16 -
> @@ -528,15 +528,15 @@ devices:
>  .Dv AUDIO_SETPAR ,
>  .Dv AUDIO_START ,
>  .Dv AUDIO_STOP .
> -.It Va bpf
> -Allow
> -.Dv BIOCGSTATS
> -operation for statistics collection from a bpf device.
>  .Pp
>  See
>  .Xr sio_open 3
>  for more information on using the sndio API in combination with
>  .Fn pledge .
> +.It Va bpf
> +Allow
> +.Dv BIOCGSTATS
> +operation for statistics collection from a bpf device.
>  .El
>  .Pp
>  A whitelist of permitted paths may be provided in
> 



lib/libc/sys/pledge.2: Fix comment

2017-01-29 Thread Michael Reed

It seem that sio_open(3) is more relevant to the "audio" pledge
than the "bpf" one, so move the reference accordingly.


Index: pledge.2
===
RCS file: /cvs/src/lib/libc/sys/pledge.2,v
retrieving revision 1.39
diff -u -p -r1.39 pledge.2
--- pledge.223 Jan 2017 07:19:39 -  1.39
+++ pledge.229 Jan 2017 17:38:16 -
@@ -528,15 +528,15 @@ devices:
 .Dv AUDIO_SETPAR ,
 .Dv AUDIO_START ,
 .Dv AUDIO_STOP .
-.It Va bpf
-Allow
-.Dv BIOCGSTATS
-operation for statistics collection from a bpf device.
 .Pp
 See
 .Xr sio_open 3
 for more information on using the sndio API in combination with
 .Fn pledge .
+.It Va bpf
+Allow
+.Dv BIOCGSTATS
+operation for statistics collection from a bpf device.
 .El
 .Pp
 A whitelist of permitted paths may be provided in