diff options
author | Sebastian Benoit <benno@cvs.openbsd.org> | 2015-11-29 01:15:50 +0000 |
---|---|---|
committer | Sebastian Benoit <benno@cvs.openbsd.org> | 2015-11-29 01:15:50 +0000 |
commit | 9e759d90aa1138c03f70550b3dd408027d995863 (patch) | |
tree | 12ca1a2658d209c8970461d2427a17ebb6f45c3b /lib/libc/sys/pledge.2 | |
parent | cf3fb13051572cb9fff8f33434dd26fa5845fb08 (diff) |
Add pledge "pf" which allows ioctls on pf(4). This will be used by
relayd and other programs manipulating the packet filter.
ok deraadt@
Diffstat (limited to 'lib/libc/sys/pledge.2')
-rw-r--r-- | lib/libc/sys/pledge.2 | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/lib/libc/sys/pledge.2 b/lib/libc/sys/pledge.2 index 1b12239078e..f9a68e313d1 100644 --- a/lib/libc/sys/pledge.2 +++ b/lib/libc/sys/pledge.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pledge.2,v 1.16 2015/11/18 05:22:04 deraadt Exp $ +.\" $OpenBSD: pledge.2,v 1.17 2015/11/29 01:15:48 benno Exp $ .\" .\" Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org> .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: November 18 2015 $ +.Dd $Mdocdate: November 29 2015 $ .Dt PLEDGE 2 .Os .Sh NAME @@ -473,6 +473,24 @@ process: .Xr setrlimit 2 , .Xr getpriority 2 , .Xr setpriority 2 . +.It Va "pf" +Allows a subset of +.Xr ioctl 2 +operations on the +.Xr pf 4 +device: +.Pp +.Dv DIOCADDRULE , +.Dv DIOCGETSTATUS , +.Dv DIOCNATLOOK , +.Dv DIOCRADDTABLES , +.Dv DIOCRCLRADDRS , +.Dv DIOCRCLRTABLES , +.Dv DIOCRCLRTSTATS , +.Dv DIOCRGETTSTATS , +.Dv DIOCRSETADDRS , +.Dv DIOCXBEGIN , +.Dv DIOCXCOMMIT . .El .Pp A whitelist of permitted paths may be provided in |