Home
last modified time | relevance | path

Searched refs:accmode (Results 1 – 25 of 50) sorted by relevance

12

/freebsd-13.1/sys/kern/
H A Dsubr_acl_posix1e.c70 KASSERT((accmode & VAPPEND) == 0 || (accmode & VWRITE), in vaccess_acl_posix1e()
108 if (((accmode & VWRITE) || (accmode & VAPPEND)) && in vaccess_acl_posix1e()
135 if ((accmode & dac_granted) == accmode) in vaccess_acl_posix1e()
142 accmode) { in vaccess_acl_posix1e()
210 if ((accmode & dac_granted) == accmode) in vaccess_acl_posix1e()
216 accmode) in vaccess_acl_posix1e()
245 if ((accmode & dac_granted) == accmode) in vaccess_acl_posix1e()
263 if ((accmode & dac_granted) == accmode) in vaccess_acl_posix1e()
297 != accmode) in vaccess_acl_posix1e()
346 if ((accmode & dac_granted) == accmode) in vaccess_acl_posix1e()
[all …]
H A Dsubr_acl_nfs4.c69 accmode_t accmode; member
88 _access_mask_from_accmode(accmode_t accmode) in _access_mask_from_accmode() argument
93 if (accmode & accmode2mask[i].accmode) in _access_mask_from_accmode()
186 KASSERT((accmode & VAPPEND) == 0 || (accmode & VWRITE), in vaccess_acl_nfs4()
189 if (accmode & VADMIN) in vaccess_acl_nfs4()
195 accmode &= ~VSYNCHRONIZE; in vaccess_acl_nfs4()
252 accmode &= ~VEXPLICIT_DENY; in vaccess_acl_nfs4()
266 if ((accmode & VEXEC) && (file_mode & in vaccess_acl_nfs4()
279 if ((accmode & VADMIN_PERMS) && in vaccess_acl_nfs4()
283 if ((accmode & VSTAT_PERMS) && in vaccess_acl_nfs4()
[all …]
H A Dvfs_subr.c5339 KASSERT((accmode & VAPPEND) == 0 || (accmode & VWRITE), in vaccess()
5359 if ((accmode & dac_granted) == accmode) in vaccess()
5374 if ((accmode & dac_granted) == accmode) in vaccess()
5387 if ((accmode & dac_granted) == accmode) in vaccess()
5431 if ((accmode & (priv_granted | dac_granted)) == accmode) { in vaccess()
6544 vfs_unixify_accmode(accmode_t *accmode) in vfs_unixify_accmode() argument
6550 if (*accmode & VEXPLICIT_DENY) { in vfs_unixify_accmode()
6551 *accmode = 0; in vfs_unixify_accmode()
6564 if (*accmode & VADMIN_PERMS) { in vfs_unixify_accmode()
6565 *accmode &= ~VADMIN_PERMS; in vfs_unixify_accmode()
[all …]
H A Dvfs_vnops.c391 accmode_t accmode; in vn_open_vnode() local
401 accmode = 0; in vn_open_vnode()
408 accmode |= VWRITE; in vn_open_vnode()
411 accmode |= VREAD; in vn_open_vnode()
413 accmode |= VAPPEND; in vn_open_vnode()
416 accmode |= VCREAT; in vn_open_vnode()
420 accmode |= VEXEC; in vn_open_vnode()
423 accmode |= VVERIFY; in vn_open_vnode()
428 accmode &= ~(VCREAT | VVERIFY); in vn_open_vnode()
430 if ((fmode & O_CREAT) == 0 && accmode != 0) { in vn_open_vnode()
[all …]
/freebsd-13.1/sys/security/mac_bsdextended/
H A Dmac_bsdextended.c469 ugidfw_accmode2mbi(accmode_t accmode) in ugidfw_accmode2mbi() argument
474 if (accmode & VEXEC) in ugidfw_accmode2mbi()
476 if (accmode & VWRITE) in ugidfw_accmode2mbi()
478 if (accmode & VREAD) in ugidfw_accmode2mbi()
480 if (accmode & VADMIN_PERMS) in ugidfw_accmode2mbi()
482 if (accmode & VSTAT_PERMS) in ugidfw_accmode2mbi()
484 if (accmode & VAPPEND) in ugidfw_accmode2mbi()
H A Dugidfw_vnode.c65 struct label *vplabel, accmode_t accmode) in ugidfw_vnode_check_access() argument
68 return (ugidfw_check_vp(cred, vp, ugidfw_accmode2mbi(accmode))); in ugidfw_vnode_check_access()
170 struct label *vplabel, accmode_t accmode) in ugidfw_vnode_check_open() argument
173 return (ugidfw_check_vp(cred, vp, ugidfw_accmode2mbi(accmode))); in ugidfw_vnode_check_open()
H A Dugidfw_internal.h37 int ugidfw_accmode2mbi(accmode_t accmode);
56 struct label *vplabel, accmode_t accmode);
84 struct label *vplabel, accmode_t accmode);
/freebsd-13.1/sys/security/mac/
H A Dmac_posix_shm.c139 accmode_t accmode) in mac_posixshm_check_open() argument
144 shmfd->shm_label, accmode); in mac_posixshm_check_open()
145 MAC_CHECK_PROBE3(posixshm_check_open, error, cred, shmfd, accmode); in mac_posixshm_check_open()
H A Dmac_framework.h294 accmode_t accmode);
463 accmode_t accmode);
468 accmode_t accmode) in mac_vnode_check_access() argument
473 return (mac_vnode_check_access_impl(cred, dvp, accmode)); in mac_vnode_check_access()
534 accmode_t accmode);
543 accmode_t accmode) in mac_vnode_check_open() argument
548 return (mac_vnode_check_open_impl(cred, vp, accmode)); in mac_vnode_check_open()
H A Dmac_vfs.c375 mac_vnode_check_access_impl(struct ucred *cred, struct vnode *vp, accmode_t accmode) in mac_vnode_check_access_impl() argument
381 MAC_POLICY_CHECK(vnode_check_access, cred, vp, vp->v_label, accmode); in mac_vnode_check_access_impl()
382 MAC_CHECK_PROBE3(vnode_check_access, error, cred, vp, accmode); in mac_vnode_check_access_impl()
634 mac_vnode_check_open_impl(struct ucred *cred, struct vnode *vp, accmode_t accmode) in mac_vnode_check_open_impl() argument
640 MAC_POLICY_CHECK(vnode_check_open, cred, vp, vp->v_label, accmode); in mac_vnode_check_open_impl()
641 MAC_CHECK_PROBE3(vnode_check_open, error, cred, vp, accmode); in mac_vnode_check_open_impl()
/freebsd-13.1/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_policy.c130 secpolicy_vnode_access(cred_t *cr, vnode_t *vp, uid_t owner, accmode_t accmode) in secpolicy_vnode_access() argument
136 if ((accmode & VREAD) && spl_priv_check_cred(cr, PRIV_VFS_READ) != 0) in secpolicy_vnode_access()
138 if ((accmode & VWRITE) && in secpolicy_vnode_access()
142 if (accmode & VEXEC) { in secpolicy_vnode_access()
/freebsd-13.1/sys/security/mac_veriexec/
H A Dmac_veriexec.c482 mac_veriexec_check_vp(struct ucred *cred, struct vnode *vp, accmode_t accmode) in mac_veriexec_check_vp() argument
504 if (accmode & VWRITE) { in mac_veriexec_check_vp()
523 if (accmode & VVERIFY) { in mac_veriexec_check_vp()
559 struct label *label __unused, accmode_t accmode) in mac_veriexec_vnode_check_open() argument
570 error = mac_veriexec_check_vp(cred, vp, accmode); in mac_veriexec_vnode_check_open()
/freebsd-13.1/lib/libutil/
H A Dquotafile.c54 int accmode; /* access mode */ member
151 qf->accmode = openflags & O_ACCMODE; in quota_open()
152 if ((qf->fd = open(qf->qfname, qf->accmode|O_CLOEXEC)) < 0 && in quota_open()
420 if ((qf->accmode & O_RDWR) != O_RDWR) { in quota_write_usage()
468 if ((qf->accmode & O_RDWR) != O_RDWR) { in quota_write_limits()
529 if ((qf->accmode & O_RDWR) != O_RDWR || qf->fd == -1) { in quota_convert()
/freebsd-13.1/sys/fs/unionfs/
H A Dunion_vnops.c639 if (accmode & VEXEC) in unionfs_check_corrected_access()
641 if (accmode & VREAD) in unionfs_check_corrected_access()
643 if (accmode & VWRITE) in unionfs_check_corrected_access()
651 if (accmode & VEXEC) in unionfs_check_corrected_access()
653 if (accmode & VREAD) in unionfs_check_corrected_access()
655 if (accmode & VWRITE) in unionfs_check_corrected_access()
661 if (accmode & VEXEC) in unionfs_check_corrected_access()
663 if (accmode & VREAD) in unionfs_check_corrected_access()
665 if (accmode & VWRITE) in unionfs_check_corrected_access()
680 accmode_t accmode; in unionfs_access() local
[all …]
/freebsd-13.1/sys/fs/smbfs/
H A Dsmbfs_vnops.c128 accmode_t accmode = ap->a_accmode; local
133 if ((accmode & VWRITE) && (vp->v_mount->mnt_flag & MNT_RDONLY)) {
161 int error, accmode; local
199 accmode = SMB_SM_DENYNONE|SMB_AM_OPENREAD;
201 accmode = SMB_SM_DENYNONE|SMB_AM_OPENRW;
204 error = smbfs_smb_open(np, accmode, scred);
209 accmode = SMB_SM_DENYNONE|SMB_AM_OPENREAD;
210 error = smbfs_smb_open(np, accmode, scred);
H A Dsmbfs_subr.h150 int smbfs_smb_open(struct smbnode *np, int accmode, struct smb_cred *scred);
/freebsd-13.1/sys/fs/fuse/
H A Dfuse_vnops.c427 int accmode = ap->a_accmode; in fuse_vnop_access() local
2154 accmode_t accmode = 0; in fuse_vnop_setattr() local
2185 accmode |= VADMIN; in fuse_vnop_setattr()
2188 accmode |= VADMIN; in fuse_vnop_setattr()
2190 accmode |= VADMIN; in fuse_vnop_setattr()
2210 accmode |= VADMIN; in fuse_vnop_setattr()
2212 accmode |= VADMIN; in fuse_vnop_setattr()
2214 accmode |= VADMIN; in fuse_vnop_setattr()
2240 accmode |= VWRITE; in fuse_vnop_setattr()
2242 accmode |= VADMIN; in fuse_vnop_setattr()
[all …]
/freebsd-13.1/sys/nlm/
H A Dnlm_prot_impl.c1731 fhandle_t *fhp, struct vfs_state *vs, accmode_t accmode) in nlm_get_vfs_state() argument
1745 if (accmode != 0) { in nlm_get_vfs_state()
1764 if (accmode != 0) { in nlm_get_vfs_state()
1778 error = VOP_ACCESS(vs->vs_vp, accmode, cred, curthread); in nlm_get_vfs_state()
1784 if (error != 0 && accmode != VWRITE) in nlm_get_vfs_state()
1837 accmode_t accmode; in nlm_do_test() local
1863 accmode = argp->exclusive ? VWRITE : VREAD; in nlm_do_test()
1864 error = nlm_get_vfs_state(host, rqstp, &fh, &vs, accmode); in nlm_do_test()
1935 accmode_t accmode; in nlm_do_lock() local
1970 accmode = argp->exclusive ? VWRITE : VREAD; in nlm_do_lock()
[all …]
/freebsd-13.1/sys/sys/
H A Dextattr.h71 struct ucred *cred, struct thread *td, accmode_t accmode);
/freebsd-13.1/sys/fs/nullfs/
H A Dnull_vnops.c574 accmode_t accmode = ap->a_accmode; in null_access() local
581 if (accmode & VWRITE) { in null_access()
600 accmode_t accmode = ap->a_accmode; in null_accessx() local
607 if (accmode & VWRITE) { in null_accessx()
/freebsd-13.1/sys/cddl/compat/opensolaris/sys/
H A Dpolicy.h52 accmode_t accmode);
/freebsd-13.1/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dpolicy.h51 accmode_t accmode);
/freebsd-13.1/sys/ufs/ufs/
H A Dufs_vnops.c339 accmode_t accmode = ap->a_accmode; local
351 if (accmode & VMODIFY_PERMS) {
382 if ((accmode & (VMODIFY_PERMS & ~VADMIN_PERMS)) &&
402 ip->i_gid, acl, accmode, ap->a_cred);
404 error = vfs_unixify_accmode(&accmode);
407 ip->i_gid, acl, accmode, ap->a_cred);
420 error = vfs_unixify_accmode(&accmode);
423 ip->i_uid, ip->i_gid, accmode, ap->a_cred);
430 error = vfs_unixify_accmode(&accmode);
433 accmode, ap->a_cred);
/freebsd-13.1/sys/fs/msdosfs/
H A Dmsdosfs_vfsops.c240 accmode_t accmode; in msdosfs_mount() local
373 accmode = VREAD; in msdosfs_mount()
375 accmode |= VWRITE; in msdosfs_mount()
376 error = VOP_ACCESS(devvp, accmode, td->td_ucred, td); in msdosfs_mount()
/freebsd-13.1/sys/fs/cd9660/
H A Dcd9660_vfsops.c135 accmode_t accmode; in cd9660_mount() local
177 accmode = VREAD; in cd9660_mount()
178 error = VOP_ACCESS(devvp, accmode, td->td_ucred, td); in cd9660_mount()

12