diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index d47691ec0f00..8390c09e6fd1 100644 --- a/usr.sbin/inetd/inetd.c +++ b/usr.sbin/inetd/inetd.c @@ -812,7 +812,7 @@ main(int argc, char **argv) } #ifdef LOGIN_CAP if (setusercontext(lc, pwd, pwd->pw_uid, - LOGIN_SETRESOURCES | LOGIN_SETPRIORITY) + LOGIN_SETALL & ~LOGIN_SETMAC) != 0) { syslog(LOG_ERR, "%s: can't setusercontext(..%s..): %m",