svn commit: r223701 - head/contrib/sendmail/src
Edward Tomasz Napierala
trasz at FreeBSD.org
Thu Jun 30 20:55:17 UTC 2011
Author: trasz
Date: Thu Jun 30 20:55:16 2011
New Revision: 223701
URL: http://svn.freebsd.org/changeset/base/223701
Log:
Make Sendmail properly set login class and cpumask.
Modified:
head/contrib/sendmail/src/deliver.c
Modified: head/contrib/sendmail/src/deliver.c
==============================================================================
--- head/contrib/sendmail/src/deliver.c Thu Jun 30 20:34:55 2011 (r223700)
+++ head/contrib/sendmail/src/deliver.c Thu Jun 30 20:55:16 2011 (r223701)
@@ -2416,6 +2416,12 @@ tryhost:
else
pwd = sm_getpwnam(contextaddr->q_user);
sucflags = LOGIN_SETRESOURCES|LOGIN_SETPRIORITY;
+#ifdef LOGIN_SETCPUMASK
+ sucflags |= LOGIN_SETCPUMASK;
+#endif /* LOGIN_SETCPUMASK */
+#ifdef LOGIN_SETLOGINCLASS
+ sucflags |= LOGIN_SETLOGINCLASS;
+#endif /* LOGIN_SETLOGINCLASS */
#ifdef LOGIN_SETMAC
sucflags |= LOGIN_SETMAC;
#endif /* LOGIN_SETMAC */
More information about the svn-src-all
mailing list