Add SIOCGIFGMEMB to "route" (returns a list of all interfaces who are
authorreyk <reyk@openbsd.org>
Tue, 20 Oct 2015 17:44:48 +0000 (17:44 +0000)
committerreyk <reyk@openbsd.org>
Tue, 20 Oct 2015 17:44:48 +0000 (17:44 +0000)
member of the given group).  This is used by some parse.y.

OK deraadt@

sys/kern/kern_pledge.c

index 626abb4..1eab94e 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: kern_pledge.c,v 1.60 2015/10/20 06:40:00 semarie Exp $        */
+/*     $OpenBSD: kern_pledge.c,v 1.61 2015/10/20 17:44:48 reyk Exp $   */
 
 /*
  * Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@ -1075,6 +1075,7 @@ pledge_ioctl_check(struct proc *p, long com, void *v)
                case SIOCGIFNETMASK_IN6:
                case SIOCGIFRDOMAIN:
                case SIOCGNBRINFO_IN6:
+               case SIOCGIFGMEMB:
                        if (fp->f_type == DTYPE_SOCKET)
                                return (0);
                        break;