Lines Matching refs:accmode

57     struct acl *acl, accmode_t accmode, struct ucred *cred)  in vaccess_acl_posix1e()  argument
65 KASSERT((accmode & ~(VEXEC | VWRITE | VREAD | VADMIN | VAPPEND)) == 0, in vaccess_acl_posix1e()
67 KASSERT((accmode & VAPPEND) == 0 || (accmode & VWRITE), in vaccess_acl_posix1e()
88 if ((accmode & VEXEC) && !priv_check_cred(cred, PRIV_VFS_LOOKUP)) in vaccess_acl_posix1e()
96 if ((accmode & VEXEC) && (acl_posix1e_acl_to_mode(acl) & in vaccess_acl_posix1e()
102 if ((accmode & VREAD) && !priv_check_cred(cred, PRIV_VFS_READ)) in vaccess_acl_posix1e()
105 if (((accmode & VWRITE) || (accmode & VAPPEND)) && in vaccess_acl_posix1e()
109 if ((accmode & VADMIN) && !priv_check_cred(cred, PRIV_VFS_ADMIN)) in vaccess_acl_posix1e()
132 if ((accmode & dac_granted) == accmode) in vaccess_acl_posix1e()
138 if ((accmode & (dac_granted | priv_granted)) == in vaccess_acl_posix1e()
139 accmode) { in vaccess_acl_posix1e()
207 if ((accmode & dac_granted) == accmode) in vaccess_acl_posix1e()
212 if ((accmode & (dac_granted | priv_granted)) != in vaccess_acl_posix1e()
213 accmode) in vaccess_acl_posix1e()
242 if ((accmode & dac_granted) == accmode) in vaccess_acl_posix1e()
260 if ((accmode & dac_granted) == accmode) in vaccess_acl_posix1e()
293 if ((accmode & (dac_granted | priv_granted)) in vaccess_acl_posix1e()
294 != accmode) in vaccess_acl_posix1e()
315 if ((accmode & (dac_granted | priv_granted)) in vaccess_acl_posix1e()
316 != accmode) in vaccess_acl_posix1e()
343 if ((accmode & dac_granted) == accmode) in vaccess_acl_posix1e()
348 if ((accmode & (dac_granted | priv_granted)) == accmode) { in vaccess_acl_posix1e()
353 return ((accmode & VADMIN) ? EPERM : EACCES); in vaccess_acl_posix1e()