diff --git a/sys/netatalk/at_control.c b/sys/netatalk/at_control.c index a5dbe93abf38..c8c563fcd68e 100644 --- a/sys/netatalk/at_control.c +++ b/sys/netatalk/at_control.c @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include @@ -121,7 +122,7 @@ at_control(struct socket *so, u_long cmd, caddr_t data, struct ifnet *ifp, * * XXXRW: Layering? */ - if (suser(td)) + if (priv_check(td, PRIV_NET_ADDIFADDR)) return (EPERM); sat = satosat(&ifr->ifr_addr);