SCCS-vsn: sys/net/if.c 6.10
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
- * @(#)if.c 6.9 (Berkeley) %G%
+ * @(#)if.c 6.10 (Berkeley) %G%
break;
case SIOCSIFFLAGS:
break;
case SIOCSIFFLAGS:
+ if (!suser())
+ return (u.u_error);
if (ifp->if_flags & IFF_UP && (ifr->ifr_flags & IFF_UP) == 0) {
int s = splimp();
if_down(ifp);
if (ifp->if_flags & IFF_UP && (ifr->ifr_flags & IFF_UP) == 0) {
int s = splimp();
if_down(ifp);