Home
last modified time | relevance | path

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

12

/freebsd/sys/kern/
H A Dsubr_acl_posix1e.c105 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()
287 dac_granted |= (VWRITE | VAPPEND); in vaccess_acl_posix1e()
309 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 Dvfs_subr.c5509 KASSERT((accmode & ~(VEXEC | VWRITE | VREAD | VADMIN | VAPPEND)) == 0, in vaccess()
5511 KASSERT((accmode & VAPPEND) == 0 || (accmode & VWRITE), in vaccess()
5529 dac_granted |= (VWRITE | VAPPEND); in vaccess()
5544 dac_granted |= (VWRITE | VAPPEND); in vaccess()
5558 dac_granted |= (VWRITE | VAPPEND); in vaccess()
5595 if ((accmode & VWRITE) && ((dac_granted & VWRITE) == 0) && in vaccess()
5597 priv_granted |= (VWRITE | VAPPEND); in vaccess()
H A Duipc_mqueue.c913 error = VOP_ACCESS(dvp, VWRITE, cnp->cn_cred, td); in mqfs_lookupx()
939 error = VOP_ACCESS(dvp, VWRITE, cnp->cn_cred, td); in mqfs_lookupx()
1305 (error = VOP_ACCESS(vp, VWRITE, ap->a_cred, td)))) in mqfs_setattr()
2082 accmode |= VWRITE; in kern_kmq_open()
/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_policy.c135 if ((accmode & VWRITE) && in secpolicy_vnode_access()
229 error = unlocked_access(node, VWRITE, cr); in secpolicy_vnode_setattr()
287 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()
485 error = VOP_ACCESSX(vdp, VWRITE | VAPPEND, cred, curthread); in ufs_lookup_ino()
487 error = VOP_ACCESS(vdp, VWRITE, cred, curthread); in ufs_lookup_ino()
620 error = VOP_ACCESSX(vdp, VWRITE | VAPPEND, cred, curthread); in ufs_lookup_ino()
622 error = VOP_ACCESS(vdp, VWRITE, cred, curthread); in ufs_lookup_ino()
655 error = VOP_ACCESSX(vdp, VWRITE | VAPPEND, cred, curthread); in ufs_lookup_ino()
657 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()
1157 error = VOP_ACCESS(dvp, VWRITE, cnp->cn_cred, td); in smbfs_lookup()
1172 error = VOP_ACCESS(dvp, VWRITE, cnp->cn_cred, td); in smbfs_lookup()
1187 error = VOP_ACCESS(dvp, VWRITE, cnp->cn_cred, td); in smbfs_lookup()
/freebsd/sys/fs/msdosfs/
H A Dmsdosfs_lookup.c406 error = VOP_ACCESS(vdp, VWRITE, cnp->cn_cred, curthread); in msdosfs_lookup_ino()
507 error = VOP_ACCESS(vdp, VWRITE, cnp->cn_cred, curthread); in msdosfs_lookup_ino()
536 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()
394 if ((accmode & VWRITE) != 0 && (node->tn_flags & IMMUTABLE) != 0) in tmpfs_access_locked()
422 if ((accmode & VWRITE) != 0 && in tmpfs_access()
1126 error = tmpfs_access_locked(fvp, fnode, VWRITE, in tmpfs_rename()
1903 ap->a_cred, ap->a_td, VWRITE); in tmpfs_deleteextattr()
2022 ap->a_cred, ap->a_td, VWRITE); in tmpfs_setextattr()
/freebsd/sys/fs/fuse/
H A Dfuse_vfsops.c178 err = mac_check_vnode_open(td->td_ucred, devvp, VREAD | VWRITE); in fuse_getdevice()
182 err = VOP_ACCESS(devvp, VREAD | VWRITE, td->td_ucred, td); in fuse_getdevice()
H A Dfuse_vnops.c810 va.va_gid, VWRITE, cred); in fuse_vnop_close()
1568 err = fuse_internal_access(dvp, VWRITE, td, in fuse_vnop_lookup()
1632 err = fuse_internal_access(dvp, VWRITE, td, in fuse_vnop_lookup()
2141 err = fuse_internal_access(fvp, VWRITE, in fuse_vnop_rename()
2310 accmode |= VWRITE; in fuse_vnop_setattr()
2713 VWRITE); in fuse_vnop_setextattr()
3103 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.c195 error = VOP_ACCESS(ump->um_odevvp, VREAD | VWRITE, in ffs_susp_suspend()
/freebsd/sys/fs/nullfs/
H A Dnull_vnops.c575 if (accmode & VWRITE) { in null_access()
601 if (accmode & VWRITE) { in null_accessx()
/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.c694 if (accmode & VWRITE) in unionfs_check_corrected_access()
705 if (accmode & VWRITE) in unionfs_check_corrected_access()
715 if (accmode & VWRITE) in unionfs_check_corrected_access()
745 if ((accmode & VWRITE) && in unionfs_access()
766 if (accmode & VWRITE) { in unionfs_access()
791 accmode &= ~(VWRITE | VAPPEND); in unionfs_access()
/freebsd/sys/nlm/
H A Dnlm_prot_impl.c1805 if (error != 0 && accmode != VWRITE) in nlm_get_vfs_state()
1806 error = VOP_ACCESS(vs->vs_vp, VWRITE, cred, curthread); in nlm_get_vfs_state()
1884 accmode = argp->exclusive ? VWRITE : VREAD; in nlm_do_test()
1991 accmode = argp->exclusive ? VWRITE : VREAD; in nlm_do_lock()
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_acl.c2384 needed_bits |= VWRITE; in zfs_zaccess()
2426 checkmode |= VWRITE; in zfs_zaccess()
2499 downer, available_perms, VWRITE|VEXEC); in zfs_delete_final_check()
2620 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.h340 #define VWRITE 000000000200 /* write permission */ macro
379 #define VMODIFY_PERMS (VWRITE | VAPPEND | VADMIN_PERMS | VDELETE_CHILD | \
/freebsd/sys/security/mac_veriexec/
H A Dmac_veriexec.c542 if (accmode & VWRITE) { in mac_veriexec_check_vp()

12