Lines Matching defs:cred
116 struct ucred *cred = cnp->cn_cred;
131 error = VOP_ACCESS(dvp, VEXEC, cred, curproc);
220 error = VOP_ACCESS(dvp, VWRITE, cred, curproc);
250 error = VOP_ACCESS(dvp, VWRITE, cred, curproc);
260 if (cred->cr_uid != 0 &&
261 cred->cr_uid != dnode->tn_uid &&
262 cred->cr_uid != tnode->tn_uid) {
492 struct ucred *cred = ap->a_cred;
507 error = tmpfs_chflags(vp, vap->va_flags, cred, p);
510 error = tmpfs_chsize(vp, vap->va_size, cred, p);
513 error = tmpfs_chown(vp, vap->va_uid, vap->va_gid, cred, p);
516 error = tmpfs_chmod(vp, vap->va_mode, cred, p);
522 vap->va_vaflags, cred, p);
1280 struct ucred *cred;
1297 cred = fcnp->cn_cred;
1298 KASSERT(tcnp->cn_cred == cred);
1349 error = tmpfs_sane_rename(fdvp, fcnp, tdvp, tcnp, cred, 0);
1377 struct vnode *tdvp, struct componentname *tcnp, struct ucred *cred,
1449 error = tmpfs_rename_enter(mount, tmpfs, cred,
1488 cred);
1525 error = tmpfs_rename_check_permitted(cred, fdnode, fde->td_node,
1600 struct ucred *cred,
1627 error = tmpfs_rename_enter_common(mount, tmpfs, cred, fdvp,
1631 error = tmpfs_rename_enter_separate(mount, tmpfs, cred,
1662 struct ucred *cred,
1684 error = VOP_ACCESS(dvp, VEXEC, cred, curproc);
1773 struct ucred *cred,
1800 error = tmpfs_rename_lock(mount, cred, ENOTEMPTY,
1804 error = tmpfs_rename_lock(mount, cred, EINVAL,
1994 tmpfs_rename_lock(struct mount *mount, struct ucred *cred, int overlap_error,
2035 error = VOP_ACCESS(a_dvp, VEXEC, cred, curproc);
2081 error = VOP_ACCESS(b_dvp, VEXEC, cred, curproc);
2247 struct ucred *cred)
2266 error = tmpfs_remove_check_permitted(cred, dnode, de->td_node);
2275 if (cred->cr_uid != 0 && cred->cr_uid != dnode->tn_uid &&
2276 cred->cr_uid != de->td_node->tn_uid)
2348 tmpfs_rename_check_permitted(struct ucred *cred,
2373 error = VOP_ACCESS(fdnode->tn_vnode, VWRITE, cred, curproc);
2384 error = VOP_ACCESS(tdnode->tn_vnode, VWRITE, cred, curproc);
2388 error = VOP_ACCESS(fnode->tn_vnode, VWRITE, cred,
2395 error = tmpfs_check_sticky(cred, fdnode, fnode);
2402 error = tmpfs_check_sticky(cred, tdnode, tnode);
2447 tmpfs_remove_check_permitted(struct ucred *cred,
2463 error = VOP_ACCESS(dnode->tn_vnode, VWRITE, cred, curproc);
2467 error = tmpfs_check_sticky(cred, dnode, node);
2482 tmpfs_check_sticky(struct ucred *cred,
2497 if (cred->cr_uid != 0 &&
2498 cred->cr_uid != dnode->tn_uid &&
2499 cred->cr_uid != node->tn_uid)