Searched refs:cn_cred (Results 1 - 25 of 28) sorted by relevance

12

/freebsd-current/sys/ufs/ufs/
H A Dufs_vnops.c1481 error = VOP_ACCESS(fvp, VWRITE, tcnp->cn_cred, curthread);
1487 error = ufs_checkpath(ino, fdp->i_number, tdp, tcnp->cn_cred,
1616 VOP_ACCESS(tdvp, VADMIN, tcnp->cn_cred, td) &&
1617 VOP_ACCESS(tvp, VADMIN, tcnp->cn_cred, td)) {
1628 !ufs_dirempty(tip, tdp->i_number, tcnp->cn_cred)) {
2040 error = UFS_VALLOC(dvp, dmode, cnp->cn_cred, &tvp);
2052 ucp = cnp->cn_cred;
2068 if (dp->i_uid != cnp->cn_cred->cr_uid) {
2085 ip->i_uid = cnp->cn_cred->cr_uid;
2102 ip->i_uid = cnp->cn_cred
[all...]
H A Dufs_extattr.c264 cnp.cn_cred = td->td_ucred;
H A Dufs_lookup.c210 struct ucred *cred = cnp->cn_cred;
/freebsd-current/sys/fs/ext2fs/
H A Dext2_vnops.c896 error = VOP_ACCESS(fvp, VWRITE, tcnp->cn_cred, curthread);
905 error = ext2_checkpath(ip, dp, tcnp->cn_cred);
967 if ((dp->i_mode & S_ISTXT) && tcnp->cn_cred->cr_uid != 0 &&
968 tcnp->cn_cred->cr_uid != dp->i_uid &&
969 xp->i_uid != tcnp->cn_cred->cr_uid) {
979 if (!ext2_dirempty(xp, dp->i_number, tcnp->cn_cred)) {
1021 tcnp->cn_cred, curthread);
1080 tcnp->cn_cred, NOCRED, NULL, NULL);
1113 IO_NOMACCHECK, tcnp->cn_cred,
1327 error = ext2_valloc(dvp, dmode, cnp->cn_cred,
[all...]
H A Dext2_lookup.c333 struct ucred *cred = cnp->cn_cred;
892 error = VOP_WRITE(dvp, &auio, IO_SYNC, cnp->cn_cred);
965 cnp->cn_cred, curthread);
H A Dext2_htree.c441 error = VOP_WRITE(vp, &auio, IO_SYNC, cnp->cn_cred);
/freebsd-current/sys/fs/smbfs/
H A Dsmbfs_vnops.c510 if ((error = VOP_GETATTR(dvp, &vattr, cnp->cn_cred)))
513 smb_makescred(scred, curthread, cnp->cn_cred);
545 smb_makescred(scred, curthread, cnp->cn_cred);
599 smb_makescred(scred, curthread, tcnp->cn_cred);
690 if ((error = VOP_GETATTR(dvp, &vattr, cnp->cn_cred))) {
696 smb_makescred(scred, curthread, cnp->cn_cred);
731 smb_makescred(scred, curthread, cnp->cn_cred);
1091 error = VOP_GETATTR(vp, &vattr, cnp->cn_cred);
1131 smb_makescred(scred, td, cnp->cn_cred);
1157 error = VOP_ACCESS(dvp, VWRITE, cnp->cn_cred, t
[all...]
/freebsd-current/sys/fs/nfs/
H A Dnfsdport.h100 (n)->cn_cred = (c); \
/freebsd-current/sys/fs/unionfs/
H A Dunion_subr.c674 cn->cn_cred = cnp->cn_cred;
880 credbk = cnp->cn_cred;
884 cred = crdup(cnp->cn_cred);
894 cnp->cn_cred = cred;
899 if ((error = VOP_GETATTR(lvp, &lva, cnp->cn_cred)))
944 VOP_SETATTR(uvp, &va, nd.ni_cnd.cn_cred);
958 cnp->cn_cred = credbk;
1198 nd.ni_cnd.cn_cred = cred;
1463 cn.cn_cred
[all...]
H A Dunion_vnops.c201 if (!VOP_GETATTR(udvp, &va, cnp->cn_cred) &&
1124 error = unionfs_copyfile(unp, 1, cnp->cn_cred, td);
1285 error = unionfs_copyfile(unp, 1, fcnp->cn_cred, td);
1439 error = VOP_GETATTR(udvp, &va, cnp->cn_cred);
1507 error = unionfs_check_rmdir(ap->a_vp, cnp->cn_cred, td);
/freebsd-current/sys/fs/p9fs/
H A Dp9fs_vnops.c268 error = VOP_ACCESS(dvp, VEXEC, cnp->cn_cred, curthread);
273 dvfid = p9fs_get_fid(vses->clnt, dnp, cnp->cn_cred, VFID, -1, &error);
309 error = VOP_ACCESS(dvp, VWRITE, cnp->cn_cred,
329 ((error = VOP_GETATTR(vp, &vattr, cnp->cn_cred)) == 0)) {
346 if (VOP_GETATTR(dvp, &vattr, cnp->cn_cred) == 0) {
380 error = VOP_ACCESS(dvp, VWRITE, cnp->cn_cred,
393 cnp->cn_cred->cr_uid != 0 &&
394 cnp->cn_cred->cr_uid != dnp->inode.n_uid &&
395 cnp->cn_cred->cr_uid != np->inode.n_uid) {
449 dvfid = p9fs_get_fid(vses->clnt, dnp, cnp->cn_cred, VFI
[all...]
/freebsd-current/sys/fs/nfsclient/
H A Dnfs_clvnops.c1279 VOP_GETATTR(newvp, &vattr, cnp->cn_cred) == 0 &&
1303 VOP_GETATTR(dvp, &vattr, cnp->cn_cred) == 0 &&
1336 cnp->cn_cred, td, &dnfsva, &nfsva, &nfhp, &attrflag, &dattrflag,
1656 if ((error = VOP_GETATTR(dvp, &vattr, cnp->cn_cred)))
1659 rdev, vap->va_type, cnp->cn_cred, curthread, &dnfsva,
1664 cnp->cn_namelen, cnp->cn_cred, curthread,
1756 if ((error = VOP_GETATTR(dvp, &vattr, cnp->cn_cred)))
1773 vap, cverf, fmode, cnp->cn_cred, curthread, &dnfsva, &nfsva,
1778 cnp->cn_namelen, cnp->cn_cred, curthread,
1789 error = nfsrpc_getattr(newvp, cnp->cn_cred, curthrea
[all...]
/freebsd-current/sys/sys/
H A Dnamei.h50 struct ucred *cn_cred; /* credentials */ member in struct:componentname
/freebsd-current/sys/fs/fuse/
H A Dfuse_internal.c474 cn.cn_cred = curthread->td_ucred;
698 fdisp_make_vp(&fdi, op, dvp, curthread, cnp->cn_cred);
750 fdisp_make_vp(&fdi, FUSE_RENAME, fdvp, curthread, tcnp->cn_cred);
782 fdisp_make(fdip, op, mp, dnid, curthread, cnp->cn_cred);
809 fuse_internal_forget_send(mp, curthread, cnp->cn_cred,
H A Dfuse_vnops.c1000 struct ucred *cred = cnp->cn_cred;
1430 struct ucred *cred = cnp->cn_cred;
2170 curthread, tcnp->cn_cred);
/freebsd-current/sys/kern/
H A Dvfs_lookup.c531 error = VOP_READLINK(ndp->ni_vp, &auio, cnp->cn_cred);
612 ndp->ni_cnd.cn_cred = td->td_ucred;
615 KASSERT(cnp->cn_cred && td->td_proc, ("namei: bad cred/proc"));
1208 for (pr = cnp->cn_cred->cr_prison; pr != NULL;
1257 error = mac_vnode_check_lookup(cnp->cn_cred, dp, cnp);
H A Duipc_mqueue.c874 error = VOP_ACCESS(dvp, VEXEC, cnp->cn_cred, td);
908 pn = mqfs_search(pd, pname, namelen, cnp->cn_cred);
917 error = VOP_ACCESS(dvp, VWRITE, cnp->cn_cred, td);
943 error = VOP_ACCESS(dvp, VWRITE, cnp->cn_cred, td);
1002 cnp->cn_cred, ap->a_vap->va_mode);
1075 error = do_unlink(pn, ap->a_cnp->cn_cred);
1495 ap->a_vap->cn_cred, ap->a_vap->va_mode);
/freebsd-current/sys/fs/msdosfs/
H A Dmsdosfs_lookup.c406 error = VOP_ACCESS(vdp, VWRITE, cnp->cn_cred, curthread);
507 error = VOP_ACCESS(vdp, VWRITE, cnp->cn_cred, curthread);
536 error = VOP_ACCESS(vdp, VWRITE, cnp->cn_cred, curthread);
H A Dmsdosfs_vnops.c1105 error = VOP_ACCESS(fvp, VWRITE, tcnp->cn_cred, curthread);
1488 error = detrunc(ip, (u_long)0, IO_SYNC, cnp->cn_cred);
/freebsd-current/sys/fs/tmpfs/
H A Dtmpfs_vnops.c143 error = VOP_ACCESS(dvp, VWRITE, cnp->cn_cred,
181 error = VOP_ACCESS(dvp, VWRITE, cnp->cn_cred,
193 VOP_ACCESS(dvp, VADMIN, cnp->cn_cred,
195 cnp->cn_cred, curthread)) {
1127 tcnp->cn_cred);
H A Dtmpfs_subr.c1238 cnp->cn_cred->cr_uid, dnode->tn_gid, vap->va_mode, parent,
/freebsd-current/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_vnops_os.c1365 cnp->cn_cred = kcred;
4600 cnp->cn_cred, 0, cached));
4658 &zp, cnp->cn_cred, 0 /* flag */, NULL /* vsecattr */, NULL);
4685 ap->a_cnp->cn_cred));
4712 ap->a_cnp->cn_cred, 0, NULL, NULL);
4736 return (zfs_rmdir_(ap->a_dvp, ap->a_vp, cnp->cn_nameptr, cnp->cn_cred));
4993 ap->a_tcnp, ap->a_fcnp->cn_cred);
5035 ap->a_target, &zp, cnp->cn_cred, 0 /* flags */, NULL);
5127 cnp->cn_nameptr, cnp->cn_cred, 0));
/freebsd-current/sys/fs/tarfs/
H A Dtarfs_vnops.c245 error = VOP_ACCESS(dvp, VEXEC, cnp->cn_cred, curthread);
/freebsd-current/sys/fs/devfs/
H A Ddevfs_vnops.c1169 error = VOP_ACCESS(dvp, VWRITE, cnp->cn_cred, td);
1883 mac_devfs_create_symlink(ap->a_cnp->cn_cred, dmp->dm_mount, dd, de);
/freebsd-current/sys/fs/nfsserver/
H A Dnfs_nfsdport.c767 error = VOP_READLINK(ndp->ni_vp, &auio, cnp->cn_cred);
2574 cn.cn_cred = nd->nd_cred;
2675 cn.cn_cred =
4676 named.ni_cnd.cn_cred = tcred;
6449 named.ni_cnd.cn_cred = tcred;

Completed in 258 milliseconds

12