make sure we have root priv on SIOCSIFPHY*. from thorpej@netbsd

This commit is contained in:
Jun-ichiro itojun Hagino 2000-10-04 23:16:29 +00:00
parent 7f197ebfd5
commit 41b3e8e5bf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=66640

View File

@ -890,6 +890,11 @@ ifioctl(so, cmd, data, p)
getmicrotime(&ifp->if_lastchange);
return error;
case SIOCSIFPHYADDR:
case SIOCDIFPHYADDR:
#ifdef INET6
case SIOCSIFPHYADDR_IN6:
#endif
case SIOCSIFMEDIA:
case SIOCSIFGENERIC:
error = suser(p);