diff options
Diffstat (limited to 'sys/kern/uipc_mqueue.c')
-rw-r--r-- | sys/kern/uipc_mqueue.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/uipc_mqueue.c b/sys/kern/uipc_mqueue.c index f23c621..82723cc 100644 --- a/sys/kern/uipc_mqueue.c +++ b/sys/kern/uipc_mqueue.c @@ -966,7 +966,8 @@ int do_unlink(struct mqfs_node *pn, struct ucred *ucred) * allowed in jail? */ if (ucred->cr_uid != pn->mn_uid && - (error = priv_check_cred(ucred, PRIV_MQ_ADMIN, 0)) != 0) + (error = priv_check_cred(ucred, PRIV_MQ_ADMIN, + SUSER_ALLOWJAIL)) != 0) error = EACCES; else if (!pn->mn_deleted) { parent = pn->mn_parent; |