Date: Sun, 3 Nov 2002 17:01:50 -0800 (PST) From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 20617 for review Message-ID: <200211040101.gA411ocG018898@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=20617 Change 20617 by rwatson@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@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211040101.gA411ocG018898>