diff options
author | rwatson <rwatson@FreeBSD.org> | 2003-01-16 03:41:57 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2003-01-16 03:41:57 +0000 |
commit | b622dadf70cfe3c2f44713e390adec96e9ad98da (patch) | |
tree | e43ce9e21ecc9e01632c722ff746ef7aab374137 /usr.sbin/inetd/inetd.c | |
parent | 5481f18ddaba937828d383bd94c466695e59e01c (diff) | |
download | FreeBSD-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/inetd.c')
-rw-r--r-- | usr.sbin/inetd/inetd.c | 2 |
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", |