1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-04 09:09:56 +00:00

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);