summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrob <rob@cvs.openbsd.org>2017-07-28 02:14:57 +0000
committerrob <rob@cvs.openbsd.org>2017-07-28 02:14:57 +0000
commite08bd591c7410f118d8f9d4b1c9f6c9987e9227c (patch)
treec48c86146fd383a2de93c93bc56d53e8861044b9
parent18da0be638efd67279878bd341e61b815001cc8d (diff)
Allow SIOCGIFDESCR with "route" promise in preparation for pledging snmpd.
ok deraadt@ benno@
-rw-r--r--sys/kern/kern_pledge.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c
index 2d728a962cd..4785ee7caaa 100644
--- a/sys/kern/kern_pledge.c
+++ b/sys/kern/kern_pledge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_pledge.c,v 1.216 2017/06/29 04:10:07 deraadt Exp $ */
+/* $OpenBSD: kern_pledge.c,v 1.217 2017/07/28 02:14:56 rob Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@ -1305,6 +1305,7 @@ pledge_ioctl(struct proc *p, long com, struct file *fp)
if ((p->p_p->ps_pledge & PLEDGE_ROUTE)) {
switch (com) {
case SIOCGIFADDR:
+ case SIOCGIFDESCR:
case SIOCGIFFLAGS:
case SIOCGIFMETRIC:
case SIOCGIFGMEMB: