Searched refs:accmode (Results 1 - 25 of 48) sorted by relevance

12

/freebsd-11-stable/sys/kern/
H A Dsubr_acl_posix1e.c58 struct acl *acl, accmode_t accmode, struct ucred *cred, int *privused)
66 KASSERT((accmode & ~(VEXEC | VWRITE | VREAD | VADMIN | VAPPEND)) == 0,
67 ("invalid bit in accmode"));
68 KASSERT((accmode & VAPPEND) == 0 || (accmode & VWRITE),
91 if ((accmode & VEXEC) && !priv_check_cred(cred,
100 if ((accmode & VEXEC) && (acl_posix1e_acl_to_mode(acl) &
106 if ((accmode & VREAD) && !priv_check_cred(cred, PRIV_VFS_READ, 0))
109 if (((accmode & VWRITE) || (accmode
57 vaccess_acl_posix1e(enum vtype type, uid_t file_uid, gid_t file_gid, struct acl *acl, accmode_t accmode, struct ucred *cred, int *privused) argument
[all...]
H A Dsubr_acl_nfs4.c68 accmode_t accmode; member in struct:__anon12115
87 _access_mask_from_accmode(accmode_t accmode) argument
91 for (i = 0; accmode2mask[i].accmode != 0; i++) {
92 if (accmode & accmode2mask[i].accmode)
173 struct acl *aclp, accmode_t accmode, struct ucred *cred, int *privused)
180 KASSERT((accmode & ~(VEXEC | VWRITE | VREAD | VADMIN | VAPPEND |
184 ("invalid bit in accmode"));
185 KASSERT((accmode & VAPPEND) == 0 || (accmode
172 vaccess_acl_nfs4(enum vtype type, uid_t file_uid, gid_t file_gid, struct acl *aclp, accmode_t accmode, struct ucred *cred, int *privused) argument
[all...]
H A Dvfs_subr.c4376 accmode_t accmode, struct ucred *cred, int *privused)
4381 KASSERT((accmode & ~(VEXEC | VWRITE | VREAD | VADMIN | VAPPEND)) == 0,
4382 ("invalid bit in accmode"));
4383 KASSERT((accmode & VAPPEND) == 0 || (accmode & VWRITE),
4406 if ((accmode & dac_granted) == accmode)
4421 if ((accmode & dac_granted) == accmode)
4434 if ((accmode
4375 vaccess(enum vtype type, mode_t file_mode, uid_t file_uid, gid_t file_gid, accmode_t accmode, struct ucred *cred, int *privused) argument
4493 extattr_check_cred(struct vnode *vp, int attrnamespace, struct ucred *cred, struct thread *td, accmode_t accmode) argument
5249 vfs_unixify_accmode(accmode_t *accmode) argument
[all...]
H A Dvfs_vnops.c307 accmode_t accmode; local
317 accmode = 0;
321 accmode |= VWRITE;
324 accmode |= VREAD;
326 accmode |= VEXEC;
328 accmode |= VAPPEND;
331 accmode |= VCREAT;
333 accmode |= VVERIFY;
334 error = mac_vnode_check_open(cred, vp, accmode);
338 accmode
[all...]
H A Duipc_shm.c584 accmode_t accmode; local
587 accmode = 0;
589 accmode |= VREAD;
591 accmode |= VWRITE;
594 accmode, ucred, NULL);
H A Dvfs_default.c378 VAPPEND)) == 0, ("invalid bit in accmode"));
387 accmode_t accmode = ap->a_accmode; local
389 error = vfs_unixify_accmode(&accmode);
393 if (accmode == 0)
396 return (VOP_ACCESS(ap->a_vp, accmode, ap->a_cred, ap->a_td));
/freebsd-11-stable/sys/security/mac_bsdextended/
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);
H A Dugidfw_vnode.c65 struct label *vplabel, accmode_t accmode)
68 return (ugidfw_check_vp(cred, vp, ugidfw_accmode2mbi(accmode)));
170 struct label *vplabel, accmode_t accmode)
173 return (ugidfw_check_vp(cred, vp, ugidfw_accmode2mbi(accmode)));
64 ugidfw_vnode_check_access(struct ucred *cred, struct vnode *vp, struct label *vplabel, accmode_t accmode) argument
169 ugidfw_vnode_check_open(struct ucred *cred, struct vnode *vp, struct label *vplabel, accmode_t accmode) argument
H A Dmac_bsdextended.c470 ugidfw_accmode2mbi(accmode_t accmode) argument
475 if (accmode & VEXEC)
477 if (accmode & VWRITE)
479 if (accmode & VREAD)
481 if (accmode & VADMIN_PERMS)
483 if (accmode & VSTAT_PERMS)
485 if (accmode & VAPPEND)
/freebsd-11-stable/sys/sys/
H A Dextattr.h68 struct ucred *cred, struct thread *td, accmode_t accmode);
H A Dvnode.h656 gid_t file_gid, accmode_t accmode, struct ucred *cred,
659 struct acl *aclp, accmode_t accmode, struct ucred *cred,
662 gid_t file_gid, struct acl *acl, accmode_t accmode,
889 int vfs_unixify_accmode(accmode_t *accmode);
/freebsd-11-stable/sys/cddl/compat/opensolaris/kern/
H A Dopensolaris_policy.c120 secpolicy_vnode_access(cred_t *cr, vnode_t *vp, uid_t owner, accmode_t accmode) argument
126 if ((accmode & VREAD) && priv_check_cred(cr, PRIV_VFS_READ, 0) != 0)
128 if ((accmode & VWRITE) &&
132 if (accmode & VEXEC) {
/freebsd-11-stable/sys/cddl/compat/opensolaris/sys/
H A Dpolicy.h52 accmode_t accmode);
/freebsd-11-stable/sys/security/mac/
H A Dmac_posix_shm.c139 accmode_t accmode)
144 shmfd->shm_label, accmode);
145 MAC_CHECK_PROBE3(posixshm_check_open, error, cred, shmfd, accmode);
138 mac_posixshm_check_open(struct ucred *cred, struct shmfd *shmfd, accmode_t accmode) argument
H A Dmac_vfs.c375 mac_vnode_check_access(struct ucred *cred, struct vnode *vp, accmode_t accmode) argument
381 MAC_POLICY_CHECK(vnode_check_access, cred, vp, vp->v_label, accmode);
382 MAC_CHECK_PROBE3(vnode_check_access, error, cred, vp, accmode);
632 mac_vnode_check_open(struct ucred *cred, struct vnode *vp, accmode_t accmode) argument
638 MAC_POLICY_CHECK(vnode_check_open, cred, vp, vp->v_label, accmode);
639 MAC_CHECK_PROBE3(vnode_check_open, error, cred, vp, accmode);
H A Dmac_framework.h243 accmode_t accmode);
377 accmode_t accmode);
403 accmode_t accmode);
/freebsd-11-stable/lib/libutil/
H A Dquotafile.c52 int accmode; /* access mode */ member in struct:quotafile
149 qf->accmode = openflags & O_ACCMODE;
150 if ((qf->fd = open(qf->qfname, qf->accmode|O_CLOEXEC)) < 0 &&
418 if ((qf->accmode & O_RDWR) != O_RDWR) {
466 if ((qf->accmode & O_RDWR) != O_RDWR) {
527 if ((qf->accmode & O_RDWR) != O_RDWR || qf->fd == -1) {
/freebsd-11-stable/sys/fs/unionfs/
H A Dunion_vnops.c620 unionfs_check_corrected_access(accmode_t accmode, argument
637 if (accmode & VEXEC)
639 if (accmode & VREAD)
641 if (accmode & VWRITE)
649 if (accmode & VEXEC)
651 if (accmode & VREAD)
653 if (accmode & VWRITE)
659 if (accmode & VEXEC)
661 if (accmode & VREAD)
663 if (accmode
678 accmode_t accmode; local
[all...]
/freebsd-11-stable/sys/fs/nullfs/
H A Dnull_vnops.c511 accmode_t accmode = ap->a_accmode; local
518 if (accmode & VWRITE) {
537 accmode_t accmode = ap->a_accmode; local
544 if (accmode & VWRITE) {
/freebsd-11-stable/sys/fs/smbfs/
H A Dsmbfs_vnops.c126 accmode_t accmode = ap->a_accmode; local
131 if ((accmode & VWRITE) && (vp->v_mount->mnt_flag & MNT_RDONLY)) {
159 int error, accmode; local
197 accmode = SMB_SM_DENYNONE|SMB_AM_OPENREAD;
199 accmode = SMB_SM_DENYNONE|SMB_AM_OPENRW;
202 error = smbfs_smb_open(np, accmode, scred);
207 accmode = SMB_SM_DENYNONE|SMB_AM_OPENREAD;
208 error = smbfs_smb_open(np, accmode, scred);
H A Dsmbfs_subr.h148 int smbfs_smb_open(struct smbnode *np, int accmode, struct smb_cred *scred);
/freebsd-11-stable/sys/nlm/
H A Dnlm_prot_impl.c1754 fhandle_t *fhp, struct vfs_state *vs, accmode_t accmode)
1766 /* accmode == 0 means don't check, since it is an unlock. */
1767 if (accmode != 0) {
1786 if (accmode != 0) {
1800 error = VOP_ACCESS(vs->vs_vp, accmode, cred, curthread);
1802 * If this failed and accmode != VWRITE, try again with
1806 if (error != 0 && accmode != VWRITE)
1863 accmode_t accmode; local
1889 accmode = argp->exclusive ? VWRITE : VREAD;
1890 error = nlm_get_vfs_state(host, rqstp, &fh, &vs, accmode);
1753 nlm_get_vfs_state(struct nlm_host *host, struct svc_req *rqstp, fhandle_t *fhp, struct vfs_state *vs, accmode_t accmode) argument
1961 accmode_t accmode; local
[all...]
/freebsd-11-stable/sys/fs/msdosfs/
H A Dmsdosfs_vfsops.c232 accmode_t accmode; local
352 accmode = VREAD;
354 accmode |= VWRITE;
355 error = VOP_ACCESS(devvp, accmode, td->td_ucred, td);
/freebsd-11-stable/sys/fs/ext2fs/
H A Dext2_vfsops.c118 accmode_t accmode; local
242 accmode = VREAD;
244 accmode |= VWRITE;
245 error = VOP_ACCESS(devvp, accmode, td->td_ucred, td);
/freebsd-11-stable/sys/ufs/ufs/
H A Dufs_vnops.c324 accmode_t accmode = ap->a_accmode; local
336 if (accmode & VMODIFY_PERMS) {
367 if ((accmode & (VMODIFY_PERMS & ~VADMIN_PERMS)) &&
387 ip->i_gid, acl, accmode, ap->a_cred, NULL);
389 error = vfs_unixify_accmode(&accmode);
392 ip->i_gid, acl, accmode, ap->a_cred, NULL);
405 error = vfs_unixify_accmode(&accmode);
408 ip->i_gid, accmode, ap->a_cred, NULL);
415 error = vfs_unixify_accmode(&accmode);
418 accmode, a
[all...]

Completed in 194 milliseconds

12