[email protected]
[Top] [All Lists]

PERFORCE change 114562 for review

Subject: PERFORCE change 114562 for review
From: Robert Watson
Date: Thu, 15 Feb 2007 15:39:44 GMT
http://perforce.freebsd.org/chv.cgi?CH=114562

Change 114562 by [email protected]_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;
                }
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/p4-projects
To unsubscribe, send any mail to "[email protected]"

<Prev in Thread] Current Thread [Next in Thread>
  • PERFORCE change 114562 for review, Robert Watson <=