SCCS-vsn: sys/netns/ns.c 7.5
SCCS-vsn: sys/netns/idp_usrreq.c 7.7
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * @(#)idp_usrreq.c 7.6 (Berkeley) %G%
+ * @(#)idp_usrreq.c 7.7 (Berkeley) %G%
- if (!suser() || (nsp != NULL)) {
+ if (suser(u.u_cred, &u.u_acflag) || (nsp != NULL)) {
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * @(#)ns.c 7.4 (Berkeley) %G%
+ * @(#)ns.c 7.5 (Berkeley) %G%
struct ifaddr *ifa;
struct ns_ifaddr *oia;
struct mbuf *m;
struct ifaddr *ifa;
struct ns_ifaddr *oia;
struct mbuf *m;
- int dstIsNew, hostIsNew;
+ int error, dstIsNew, hostIsNew;
/*
* Find address for this interface, if it exists.
/*
* Find address for this interface, if it exists.
- if (!suser())
- return (u.u_error);
+ if (error = suser(u.u_cred, &u.u_acflag))
+ return (error);
switch (cmd) {
case SIOCAIFADDR:
switch (cmd) {
case SIOCAIFADDR: