diff options
author | rwatson <rwatson@FreeBSD.org> | 2007-02-19 13:23:45 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2007-02-19 13:23:45 +0000 |
commit | 41001412d81327ac987322ed6489a004ba6ec595 (patch) | |
tree | 5768c1c3ebe66a66873528b2de3f977cb75128ab /sys/kern | |
parent | af558a567bca4251e63c1c0d9d36fdba1fce9a4d (diff) | |
download | FreeBSD-src-41001412d81327ac987322ed6489a004ba6ec595.zip FreeBSD-src-41001412d81327ac987322ed6489a004ba6ec595.tar.gz |
Do allow privilege to create over-sized messages on System V IPC
message queues in jail.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/sysv_msg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/sysv_msg.c b/sys/kern/sysv_msg.c index 6b86160..ea52a2d 100644 --- a/sys/kern/sysv_msg.c +++ b/sys/kern/sysv_msg.c @@ -508,7 +508,8 @@ kern_msgctl(td, msqid, cmd, msqbuf) 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; } |