aboutsummaryrefslogtreecommitdiff
path: root/contrib/sendmail
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2011-06-30 20:55:16 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2011-06-30 20:55:16 +0000
commit906a940ee5bf95c6762e5e1ee44cf205d6525394 (patch)
treee850d89e2c3dbb97fcf31337b2d4598a6d580484 /contrib/sendmail
parentc412551667ffc74c7bb23e3d8189fc9b33081546 (diff)
downloadsrc-906a940ee5bf95c6762e5e1ee44cf205d6525394.tar.gz
src-906a940ee5bf95c6762e5e1ee44cf205d6525394.zip
Make Sendmail properly set login class and cpumask.
Notes
Notes: svn path=/head/; revision=223701
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 acd977f5a4b6..bb1d60e45297 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 */