summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-12-05 19:21:50 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-12-05 19:21:50 +0000
commit46b7da6112e24e695d855defc83ff19c8cfb3787 (patch)
tree6bc750148ad6595b7b22fff05ac4880cd0e9093a /sys/kern
parent988c960af84c66461dc05e8f5b99e76b764b8692 (diff)
Study of kernel code complete. Permit ioctl SIOCGIFMEDIA for pledge
"route", which krw and mestre will be able to use in dhclient(8).
Diffstat (limited to 'sys/kern')
-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 d3b7895caea..75591b8583c 100644
--- a/sys/kern/kern_pledge.c
+++ b/sys/kern/kern_pledge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_pledge.c,v 1.134 2015/12/04 16:56:35 deraadt Exp $ */
+/* $OpenBSD: kern_pledge.c,v 1.135 2015/12/05 19:21:49 deraadt Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@ -1280,6 +1280,7 @@ pledge_ioctl(struct proc *p, long com, struct file *fp)
case SIOCGIFNETMASK_IN6:
case SIOCGNBRINFO_IN6:
case SIOCGIFINFO_IN6:
+ case SIOCGIFMEDIA:
if (fp->f_type == DTYPE_SOCKET)
return (0);
break;