Date: Thu, 15 Feb 2007 15:39:44 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 114562 for review Message-ID: <200702151539.l1FFdifu088296@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=114562 Change 114562 by rwatson@rwatson_cinnamon on 2007/02/15 15:39:25 Do allow over-size messages in jail. Affected files ... .. //depot/projects/trustedbsd/priv/sys/kern/sysv_msg.c#7 edit Differences ... ==== //depot/projects/trustedbsd/priv/sys/kern/sysv_msg.c#7 (text+ko) ==== @@ -508,7 +508,8 @@ if ((error = ipcperm(td, &msqkptr->u.msg_perm, IPC_M))) goto done2; if (msqbuf->msg_qbytes > msqkptr->u.msg_qbytes) { - error = priv_check(td, PRIV_IPC_MSGSIZE); + error = priv_check_cred(td->td_ucred, + PRIV_IPC_MSGSIZE, SUSER_ALLOWJAIL); if (error) goto done2; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702151539.l1FFdifu088296>