Home
last modified time | relevance | path

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

12

/freebsd-14.2/sys/kern/
H A Dsubr_acl_posix1e.c106 if (((accmode & VWRITE) || (accmode & VAPPEND)) && in vaccess_acl_posix1e()
108 priv_granted |= (VWRITE | VAPPEND); in vaccess_acl_posix1e()
132 dac_granted |= (VWRITE | VAPPEND); in vaccess_acl_posix1e()
186 acl_mask_granted |= (VWRITE | VAPPEND); in vaccess_acl_posix1e()
188 acl_mask_granted = VEXEC | VREAD | VWRITE | VAPPEND; in vaccess_acl_posix1e()
206 dac_granted |= (VWRITE | VAPPEND); in vaccess_acl_posix1e()
240 dac_granted |= (VWRITE | VAPPEND); in vaccess_acl_posix1e()
258 dac_granted |= (VWRITE | VAPPEND); in vaccess_acl_posix1e()
288 dac_granted |= (VWRITE | VAPPEND); in vaccess_acl_posix1e()
310 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.c5524 KASSERT((accmode & ~(VEXEC | VWRITE | VREAD | VADMIN | VAPPEND)) == 0, in vaccess()
5526 KASSERT((accmode & VAPPEND) == 0 || (accmode & VWRITE), in vaccess()
5544 dac_granted |= (VWRITE | VAPPEND); in vaccess()
5559 dac_granted |= (VWRITE | VAPPEND); in vaccess()
5573 dac_granted |= (VWRITE | VAPPEND); in vaccess()
5610 if ((accmode & VWRITE) && ((dac_granted & VWRITE) == 0) && in vaccess()
5612 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-14.2/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_policy.c138 if ((accmode & VWRITE) && in secpolicy_vnode_access()
232 error = unlocked_access(node, VWRITE, cr); in secpolicy_vnode_setattr()
290 error = unlocked_access(node, VWRITE, cr); in secpolicy_vnode_setattr()
/freebsd-14.2/sys/ufs/ufs/
H A Dufs_lookup.c114 error = VOP_ACCESS(vdp, VWRITE, cred, td); in ufs_delete_denied()
487 error = VOP_ACCESSX(vdp, VWRITE | VAPPEND, cred, curthread); in ufs_lookup_ino()
489 error = VOP_ACCESS(vdp, VWRITE, cred, curthread); in ufs_lookup_ino()
622 error = VOP_ACCESSX(vdp, VWRITE | VAPPEND, cred, curthread); in ufs_lookup_ino()
624 error = VOP_ACCESS(vdp, VWRITE, cred, curthread); in ufs_lookup_ino()
657 error = VOP_ACCESSX(vdp, VWRITE | VAPPEND, cred, curthread); in ufs_lookup_ino()
659 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-14.2/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-14.2/sys/fs/msdosfs/
H A Dmsdosfs_lookup.c408 error = VOP_ACCESS(vdp, VWRITE, cnp->cn_cred, curthread); in msdosfs_lookup_ino()
509 error = VOP_ACCESS(vdp, VWRITE, cnp->cn_cred, curthread); in msdosfs_lookup_ino()
538 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-14.2/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-14.2/sys/fs/fuse/
H A Dfuse_vfsops.c179 err = mac_check_vnode_open(td->td_ucred, devvp, VREAD | VWRITE); in fuse_getdevice()
183 err = VOP_ACCESS(devvp, VREAD | VWRITE, td->td_ucred, td); in fuse_getdevice()
H A Dfuse_vnops.c814 va.va_gid, VWRITE, cred); in fuse_vnop_close()
1572 err = fuse_internal_access(dvp, VWRITE, td, in fuse_vnop_lookup()
1636 err = fuse_internal_access(dvp, VWRITE, td, in fuse_vnop_lookup()
2170 err = fuse_internal_access(fvp, VWRITE, in fuse_vnop_rename()
2339 accmode |= VWRITE; in fuse_vnop_setattr()
2742 VWRITE); in fuse_vnop_setextattr()
3132 VWRITE); in fuse_vnop_deleteextattr()
/freebsd-14.2/sys/fs/ext2fs/
H A Dext2_vnops.c327 if (accmode & VWRITE) { in ext2_access()
341 if ((accmode & VWRITE) && (ip->i_flags & SF_IMMUTABLE)) in ext2_access()
490 (error = VOP_ACCESS(vp, VWRITE, cred, td)))) in ext2_setattr()
899 error = VOP_ACCESS(fvp, VWRITE, tcnp->cn_cred, curthread); in ext2_rename()
1743 ap->a_cred, ap->a_td, VWRITE); in ext2_deleteextattr()
1865 ap->a_cred, ap->a_td, VWRITE); in ext2_setextattr()
H A Dext2_lookup.c487 if ((error = VOP_ACCESS(vdp, VWRITE, cred, curthread)) != 0) in ext2_lookup_ino()
563 if ((error = VOP_ACCESS(vdp, VWRITE, cred, curthread)) != 0) in ext2_lookup_ino()
615 if ((error = VOP_ACCESS(vdp, VWRITE, cred, curthread)) != 0) in ext2_lookup_ino()
H A Dext2_vfsops.c195 error = VOP_ACCESS(devvp, VREAD | VWRITE, in ext2_mount()
261 accmode |= VWRITE; in ext2_mount()
/freebsd-14.2/sys/ufs/ffs/
H A Dffs_suspend.c195 error = VOP_ACCESS(ump->um_odevvp, VREAD | VWRITE, in ffs_susp_suspend()
/freebsd-14.2/sys/fs/tarfs/
H A Dtarfs_vnops.c109 if ((accmode & VWRITE) != 0) in tarfs_access()
120 if ((accmode & VWRITE) != 0) in tarfs_access()
/freebsd-14.2/sys/fs/nullfs/
H A Dnull_vnops.c579 if (accmode & VWRITE) { in null_access()
605 if (accmode & VWRITE) { in null_accessx()
/freebsd-14.2/sys/fs/unionfs/
H A Dunion_vnops.c696 if (accmode & VWRITE) in unionfs_check_corrected_access()
707 if (accmode & VWRITE) in unionfs_check_corrected_access()
717 if (accmode & VWRITE) in unionfs_check_corrected_access()
747 if ((accmode & VWRITE) && in unionfs_access()
768 if (accmode & VWRITE) { in unionfs_access()
793 accmode &= ~(VWRITE | VAPPEND); in unionfs_access()
/freebsd-14.2/sys/nlm/
H A Dnlm_prot_impl.c1782 if (error != 0 && accmode != VWRITE) in nlm_get_vfs_state()
1783 error = VOP_ACCESS(vs->vs_vp, VWRITE, cred, curthread); in nlm_get_vfs_state()
1861 accmode = argp->exclusive ? VWRITE : VREAD; in nlm_do_test()
1968 accmode = argp->exclusive ? VWRITE : VREAD; in nlm_do_lock()
/freebsd-14.2/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-14.2/sys/security/mac_bsdextended/
H A Dmac_bsdextended.c474 if (accmode & VWRITE) in ugidfw_accmode2mbi()
/freebsd-14.2/sys/sys/
H A Dvnode.h343 #define VWRITE 000000000200 /* write permission */ macro
382 #define VMODIFY_PERMS (VWRITE | VAPPEND | VADMIN_PERMS | VDELETE_CHILD | \
/freebsd-14.2/sys/security/mac_veriexec/
H A Dmac_veriexec.c542 if (accmode & VWRITE) { in mac_veriexec_check_vp()

12