PERFORCE change 20617 for review
Robert Watson
rwatson at freebsd.org
Mon Nov 4 01:01:50 GMT 2002
http://perforce.freebsd.org/chv.cgi?CH=20617
Change 20617 by rwatson at rwatson_tislabs on 2002/11/03 17:01:13
Do set the process MAC label as part of sendmail delivery, so that
mailboxes are created with the right label. Note that this may
impede inter-user delivery if there are label changes requried that
are not permitted for the source user.
Affected files ...
.. //depot/projects/trustedbsd/mac/contrib/sendmail/src/deliver.c#10 edit
Differences ...
==== //depot/projects/trustedbsd/mac/contrib/sendmail/src/deliver.c#10 (text+ko) ====
@@ -2360,7 +2360,7 @@
pwd = sm_getpwnam(contextaddr->q_user);
if (pwd != NULL &&
setusercontext(NULL, pwd, pwd->pw_uid,
- LOGIN_SETRESOURCES|LOGIN_SETPRIORITY) == -1 &&
+ LOGIN_SETRESOURCES|LOGIN_SETPRIORITY|LOGIN_SETMAC) == -1 &&
suidwarn)
{
syserr("openmailer: setusercontext() failed");
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list