diff options
author | 2017-03-14 16:49:18 +0000 | |
---|---|---|
committer | 2017-03-14 16:49:18 +0000 | |
commit | 3b21bdc0b969106bcf2cdbda3f39ded3996727d7 (patch) | |
tree | 4b8d505d74e832b80ed77cca3a5942c97ccb95d2 | |
parent | Use a macro for the initial length of the buffer instead of 127; OK deraadt@ (diff) | |
download | wireguard-openbsd-3b21bdc0b969106bcf2cdbda3f39ded3996727d7.tar.xz wireguard-openbsd-3b21bdc0b969106bcf2cdbda3f39ded3996727d7.zip |
Allow SIOCGIFXFLAGS in pledge("route") along side SIOCGIFFLAGS, needed
for upcoming IPv6 stateless address autoconfiguration daemon to see
if autoconfiguration and autoconfprivacy are enabled.
Input semarie@; OK deraadt@
-rw-r--r-- | sys/kern/kern_pledge.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c index b4303c392bb..4cc98cd96d3 100644 --- a/sys/kern/kern_pledge.c +++ b/sys/kern/kern_pledge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_pledge.c,v 1.194 2017/03/11 16:54:54 deraadt Exp $ */ +/* $OpenBSD: kern_pledge.c,v 1.195 2017/03/14 16:49:18 florian Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org> @@ -1293,6 +1293,7 @@ pledge_ioctl(struct proc *p, long com, struct file *fp) case SIOCGIFRDOMAIN: case SIOCGIFDSTADDR_IN6: case SIOCGIFNETMASK_IN6: + case SIOCGIFXFLAGS: case SIOCGNBRINFO_IN6: case SIOCGIFINFO_IN6: case SIOCGIFMEDIA: |