Date: Sat, 23 Nov 2002 21:29:37 -0800 (PST) From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 21447 for review Message-ID: <200211240529.gAO5Tb1Y034206@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=21447 Change 21447 by rwatson@rwatson_tislabs on 2002/11/23 21:29:08 Move to gshapiro's variation on the MAC patch to match what will be in sendmail. Affected files ... .. //depot/projects/trustedbsd/mac/contrib/sendmail/src/deliver.c#11 edit Differences ... ==== //depot/projects/trustedbsd/mac/contrib/sendmail/src/deliver.c#11 (text+ko) ==== @@ -2352,15 +2352,20 @@ if (contextaddr != NULL) { + int sucflags; struct passwd *pwd; if (contextaddr->q_ruser != NULL) pwd = sm_getpwnam(contextaddr->q_ruser); else pwd = sm_getpwnam(contextaddr->q_user); + sucflags = LOGIN_SETRESOURCES|LOGIN_SETPRIORITY; +#ifdef LOGIN_SETMAC + sucflags |= LOGIN_SETMAC; +#endif /* LOGIN_SETMAC */ if (pwd != NULL && setusercontext(NULL, pwd, pwd->pw_uid, - LOGIN_SETRESOURCES|LOGIN_SETPRIORITY|LOGIN_SETMAC) == -1 && + sucflags) == -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?200211240529.gAO5Tb1Y034206>