Do allow POSIX mqueue unlink privilege inside a jail, as we all all

other POSIX mqueue privileges inside a jail.
This commit is contained in:
Robert Watson 2007-04-10 15:40:27 +00:00
parent 08be819487
commit 9956b3f5e4

View File

@ -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;