summaryrefslogtreecommitdiffstats
path: root/usr.sbin/inetd
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2003-01-16 03:41:57 +0000
committerrwatson <rwatson@FreeBSD.org>2003-01-16 03:41:57 +0000
commitb622dadf70cfe3c2f44713e390adec96e9ad98da (patch)
treee43ce9e21ecc9e01632c722ff746ef7aab374137 /usr.sbin/inetd
parent5481f18ddaba937828d383bd94c466695e59e01c (diff)
downloadFreeBSD-src-b622dadf70cfe3c2f44713e390adec96e9ad98da.zip
FreeBSD-src-b622dadf70cfe3c2f44713e390adec96e9ad98da.tar.gz
Using LOGIN_SETALL &~LOGIN_SETMAC to avoid setting the MAC label improperly,
rather than specifically setting the process priority and resource class; otherwise, we improperly set other aspects of the login class. We have a bit more to do here, but the proper fix will probably involve breaking out MAC labels from the login class at some point, as well as further clarifying the logic here. Pointed out by: kuriyama, max
Diffstat (limited to 'usr.sbin/inetd')
-rw-r--r--usr.sbin/inetd/inetd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c
index d47691e..8390c09 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",
OpenPOWER on IntegriCloud