summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/inetd/inetd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c
index ad847fb..d47691e 100644
--- a/usr.sbin/inetd/inetd.c
+++ b/usr.sbin/inetd/inetd.c
@@ -812,7 +812,8 @@ main(int argc, char **argv)
}
#ifdef LOGIN_CAP
if (setusercontext(lc, pwd, pwd->pw_uid,
- LOGIN_SETALL) != 0) {
+ LOGIN_SETRESOURCES | LOGIN_SETPRIORITY)
+ != 0) {
syslog(LOG_ERR,
"%s: can't setusercontext(..%s..): %m",
sep->se_service, sep->se_user);
OpenPOWER on IntegriCloud