summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-11-16 18:29:34 +0000
committerderaadt <deraadt@openbsd.org>2015-11-16 18:29:34 +0000
commit859ed624d67a2b720bee220f9d19e4bda36e81f3 (patch)
tree5f7554c8e19906368bfe5ad0c6d73d1ce09417d9 /lib/libc/sys
parentOnly perform revoke(2) on tty cdevs. Others paths return ENOTTY. (diff)
downloadwireguard-openbsd-859ed624d67a2b720bee220f9d19e4bda36e81f3.tar.xz
wireguard-openbsd-859ed624d67a2b720bee220f9d19e4bda36e81f3.zip
Permit revoke(2) for a pledge "rpath tty"
ok millert semarie tedu guenther
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/pledge.211
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/libc/sys/pledge.2 b/lib/libc/sys/pledge.2
index e4031ce6179..4222039ed22 100644
--- a/lib/libc/sys/pledge.2
+++ b/lib/libc/sys/pledge.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pledge.2,v 1.13 2015/11/06 06:46:52 mmcc Exp $
+.\" $OpenBSD: pledge.2,v 1.14 2015/11/16 18:29:34 deraadt 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 6 2015 $
+.Dd $Mdocdate: November 16 2015 $
.Dt PLEDGE 2
.Os
.Sh NAME
@@ -405,6 +405,13 @@ used by tty devices:
.Dv TIOCSETAW
and
.Dv TIOCSETAF .
+.Pp
+If
+.Va "tty"
+is accompanied with
+.Va "rpath",
+.Xr revoke 2
+is permitted.
.It Va "proc"
Allows the following process relationship operations:
.Pp