summaryrefslogtreecommitdiffstats
path: root/contrib/sendmail
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2011-06-30 20:55:16 +0000
committertrasz <trasz@FreeBSD.org>2011-06-30 20:55:16 +0000
commit20fc1d133e0d855522bbedc6a2a00ae2b519100b (patch)
treee850d89e2c3dbb97fcf31337b2d4598a6d580484 /contrib/sendmail
parent858ce69e22d3a5423465d8b8f1fd6007e9cbd9d3 (diff)
downloadFreeBSD-src-20fc1d133e0d855522bbedc6a2a00ae2b519100b.zip
FreeBSD-src-20fc1d133e0d855522bbedc6a2a00ae2b519100b.tar.gz
Make Sendmail properly set login class and cpumask.
Diffstat (limited to 'contrib/sendmail')
-rw-r--r--contrib/sendmail/src/deliver.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/sendmail/src/deliver.c b/contrib/sendmail/src/deliver.c
index acd977f..bb1d60e 100644
--- a/contrib/sendmail/src/deliver.c
+++ b/contrib/sendmail/src/deliver.c
@@ -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 */
OpenPOWER on IntegriCloud