Home
last modified time | relevance | path

Searched refs:VWRITE (Results 1 – 25 of 48) sorted by relevance

12

/freebsd/sys/kern/
H A Dsubr_acl_posix1e.c65 KASSERT((accmode & ~(VEXEC | VWRITE | VREAD | VADMIN | VAPPEND)) == 0, in vaccess_acl_posix1e()
67 KASSERT((accmode & VAPPEND) == 0 || (accmode & VWRITE), in vaccess_acl_posix1e()
105 if (((accmode & VWRITE) || (accmode & VAPPEND)) && in vaccess_acl_posix1e()
107 priv_granted |= (VWRITE | VAPPEND); in vaccess_acl_posix1e()
131 dac_granted |= (VWRITE | VAPPEND); in vaccess_acl_posix1e()
185 acl_mask_granted |= (VWRITE | VAPPEND); in vaccess_acl_posix1e()
187 acl_mask_granted = VEXEC | VREAD | VWRITE | VAPPEND; in vaccess_acl_posix1e()
205 dac_granted |= (VWRITE | VAPPEND); in vaccess_acl_posix1e()
239 dac_granted |= (VWRITE | VAPPEND); in vaccess_acl_posix1e()
257 dac_granted |= (VWRITE | VAPPEND); in vaccess_acl_posix1e()
[all …]
H A Dsubr_acl_nfs4.c70 {VWRITE, ACL_WRITE_DATA},
179 KASSERT((accmode & ~(VEXEC | VWRITE | VREAD | VADMIN | VAPPEND | in vaccess_acl_nfs4()
184 KASSERT((accmode & VAPPEND) == 0 || (accmode & VWRITE), in vaccess_acl_nfs4()
273 if ((accmode & (VWRITE | VAPPEND | VDELETE_CHILD)) && in vaccess_acl_nfs4()
275 priv_granted |= (VWRITE | VAPPEND | VDELETE_CHILD); in vaccess_acl_nfs4()
H A Duipc_mqueue.c918 error = VOP_ACCESS(dvp, VWRITE, cnp->cn_cred, td); in mqfs_lookupx()
944 error = VOP_ACCESS(dvp, VWRITE, cnp->cn_cred, td); in mqfs_lookupx()
1310 (error = VOP_ACCESS(vp, VWRITE, ap->a_cred, td)))) in mqfs_setattr()
2092 accmode |= VWRITE; in kern_kmq_open()
H A Dvfs_subr.c5667 KASSERT((accmode & ~(VEXEC | VWRITE | VREAD | VADMIN | VAPPEND)) == 0, in vaccess()
5669 KASSERT((accmode & VAPPEND) == 0 || (accmode & VWRITE), in vaccess()
5687 dac_granted |= (VWRITE | VAPPEND); in vaccess()
5702 dac_granted |= (VWRITE | VAPPEND); in vaccess()
5716 dac_granted |= (VWRITE | VAPPEND); in vaccess()
5753 if ((accmode & VWRITE) && ((dac_granted & VWRITE) == 0) && in vaccess()
5755 priv_granted |= (VWRITE | VAPPEND); in vaccess()
/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_policy.c122 if ((accmode & VWRITE) && in secpolicy_vnode_access()
216 error = unlocked_access(node, VWRITE, cr); in secpolicy_vnode_setattr()
274 error = unlocked_access(node, VWRITE, cr); in secpolicy_vnode_setattr()
/freebsd/sys/ufs/ufs/
H A Dufs_lookup.c112 error = VOP_ACCESS(vdp, VWRITE, cred, td); in ufs_delete_denied()
483 error = VOP_ACCESSX(vdp, VWRITE | VAPPEND, cred, curthread); in ufs_lookup_ino()
485 error = VOP_ACCESS(vdp, VWRITE, cred, curthread); in ufs_lookup_ino()
618 error = VOP_ACCESSX(vdp, VWRITE | VAPPEND, cred, curthread); in ufs_lookup_ino()
620 error = VOP_ACCESS(vdp, VWRITE, cred, curthread); in ufs_lookup_ino()
653 error = VOP_ACCESSX(vdp, VWRITE | VAPPEND, cred, curthread); in ufs_lookup_ino()
655 error = VOP_ACCESS(vdp, VWRITE, cred, curthread); in ufs_lookup_ino()
H A Dufs_extattr.c1063 error = extattr_check_cred(vp, attrnamespace, cred, td, VWRITE); in ufs_extattr_set()
1171 error = extattr_check_cred(vp, attrnamespace, cred, td, VWRITE); in ufs_extattr_rm()
/freebsd/sys/fs/smbfs/
H A Dsmbfs_vnops.c125 if ((accmode & VWRITE) && (vp->v_mount->mnt_flag & MNT_RDONLY)) { in smbfs_access()
398 error = VOP_ACCESS(vp, VWRITE, ap->a_cred, td); in smbfs_setattr()
1163 error = VOP_ACCESS(dvp, VWRITE, cnp->cn_cred, td); in smbfs_lookup()
1178 error = VOP_ACCESS(dvp, VWRITE, cnp->cn_cred, td); in smbfs_lookup()
1193 error = VOP_ACCESS(dvp, VWRITE, cnp->cn_cred, td); in smbfs_lookup()
/freebsd/sys/fs/msdosfs/
H A Dmsdosfs_lookup.c407 error = VOP_ACCESS(vdp, VWRITE, cnp->cn_cred, curthread); in msdosfs_lookup_ino()
508 error = VOP_ACCESS(vdp, VWRITE, cnp->cn_cred, curthread); in msdosfs_lookup_ino()
537 error = VOP_ACCESS(vdp, VWRITE, cnp->cn_cred, curthread); in msdosfs_lookup_ino()
H A Dmsdosfs_vfsops.c308 error = VOP_ACCESS(odevvp, VREAD | VWRITE, in msdosfs_mount()
374 accmode |= VWRITE; in msdosfs_mount()
/freebsd/sys/fs/tmpfs/
H A Dtmpfs_vnops.c143 error = VOP_ACCESS(dvp, VWRITE, cnp->cn_cred, in tmpfs_lookup1()
181 error = VOP_ACCESS(dvp, VWRITE, cnp->cn_cred, in tmpfs_lookup1()
393 if ((accmode & VWRITE) != 0 && (node->tn_flags & IMMUTABLE) != 0) in tmpfs_access_locked()
421 if ((accmode & VWRITE) != 0 && in tmpfs_access()
974 error = tmpfs_access_locked(fvp, fnode, VWRITE, tcred); in tmpfs_rename_check_parent()
1986 ap->a_cred, ap->a_td, VWRITE); in tmpfs_deleteextattr()
2105 ap->a_cred, ap->a_td, VWRITE); in tmpfs_setextattr()
/freebsd/sys/fs/fuse/
H A Dfuse_vfsops.c180 err = mac_check_vnode_open(td->td_ucred, devvp, VREAD | VWRITE); in fuse_getdevice()
184 err = VOP_ACCESS(devvp, VREAD | VWRITE, td->td_ucred, td); in fuse_getdevice()
H A Dfuse_vnops.c908 va.va_gid, VWRITE, cred); in fuse_vnop_close()
1675 err = fuse_internal_access(dvp, VWRITE, td, in fuse_vnop_lookup()
1739 err = fuse_internal_access(dvp, VWRITE, td, in fuse_vnop_lookup()
2315 err = fuse_internal_access(fvp, VWRITE, in fuse_vnop_rename()
2481 accmode |= VWRITE; in fuse_vnop_setattr()
2898 VWRITE); in fuse_vnop_setextattr()
3335 VWRITE); in fuse_vnop_deleteextattr()
/freebsd/sys/fs/ext2fs/
H A Dext2_vnops.c324 if (accmode & VWRITE) { in ext2_access()
338 if ((accmode & VWRITE) && (ip->i_flags & SF_IMMUTABLE)) in ext2_access()
487 (error = VOP_ACCESS(vp, VWRITE, cred, td)))) in ext2_setattr()
896 error = VOP_ACCESS(fvp, VWRITE, tcnp->cn_cred, curthread); in ext2_rename()
1740 ap->a_cred, ap->a_td, VWRITE); in ext2_deleteextattr()
1862 ap->a_cred, ap->a_td, VWRITE); in ext2_setextattr()
H A Dext2_lookup.c485 if ((error = VOP_ACCESS(vdp, VWRITE, cred, curthread)) != 0) in ext2_lookup_ino()
561 if ((error = VOP_ACCESS(vdp, VWRITE, cred, curthread)) != 0) in ext2_lookup_ino()
613 if ((error = VOP_ACCESS(vdp, VWRITE, cred, curthread)) != 0) in ext2_lookup_ino()
H A Dext2_vfsops.c193 error = VOP_ACCESS(devvp, VREAD | VWRITE, in ext2_mount()
259 accmode |= VWRITE; in ext2_mount()
/freebsd/sys/ufs/ffs/
H A Dffs_suspend.c198 error = VOP_ACCESS(ump->um_odevvp, VREAD | VWRITE, in ffs_susp_suspend()
/freebsd/sys/fs/tarfs/
H A Dtarfs_vnops.c109 if ((accmode & VWRITE) != 0) in tarfs_access()
120 if ((accmode & VWRITE) != 0) in tarfs_access()
/freebsd/sys/fs/unionfs/
H A Dunion_vnops.c918 if (accmode & VWRITE) in unionfs_check_corrected_access()
929 if (accmode & VWRITE) in unionfs_check_corrected_access()
939 if (accmode & VWRITE) in unionfs_check_corrected_access()
969 if ((accmode & VWRITE) && in unionfs_access()
990 if (accmode & VWRITE) { in unionfs_access()
1015 accmode &= ~(VWRITE | VAPPEND); in unionfs_access()
/freebsd/sys/fs/nullfs/
H A Dnull_vnops.c623 if (accmode & VWRITE) { in null_access()
649 if (accmode & VWRITE) { in null_accessx()
/freebsd/sys/nlm/
H A Dnlm_prot_impl.c1810 if (error != 0 && accmode != VWRITE) in nlm_get_vfs_state()
1811 error = VOP_ACCESS(vs->vs_vp, VWRITE, cred, curthread); in nlm_get_vfs_state()
1889 accmode = argp->exclusive ? VWRITE : VREAD; in nlm_do_test()
1996 accmode = argp->exclusive ? VWRITE : VREAD; in nlm_do_lock()
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_acl.c2392 needed_bits |= VWRITE; in zfs_zaccess()
2434 checkmode |= VWRITE; in zfs_zaccess()
2505 downer, available_perms, VWRITE|VEXEC); in zfs_delete_final_check()
2626 available_perms = (dzp_working_mode & ACE_WRITE_DATA) ? 0 : VWRITE; in zfs_zaccess_delete()
/freebsd/sys/security/mac_bsdextended/
H A Dmac_bsdextended.c474 if (accmode & VWRITE) in ugidfw_accmode2mbi()
/freebsd/sys/sys/
H A Dvnode.h361 #define VWRITE 000000000200 /* write permission */ macro
400 #define VMODIFY_PERMS (VWRITE | VAPPEND | VADMIN_PERMS | VDELETE_CHILD | \
/freebsd/sys/security/mac_veriexec/
H A Dmac_veriexec.c541 if (accmode & VWRITE) { in mac_veriexec_check_vp()

12