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

123

/freebsd-10.1-release/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:__anon10218
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.c3794 accmode_t accmode, struct ucred *cred, int *privused)
3799 KASSERT((accmode & ~(VEXEC | VWRITE | VREAD | VADMIN | VAPPEND)) == 0,
3800 ("invalid bit in accmode"));
3801 KASSERT((accmode & VAPPEND) == 0 || (accmode & VWRITE),
3824 if ((accmode & dac_granted) == accmode)
3839 if ((accmode & dac_granted) == accmode)
3852 if ((accmode
3793 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
3911 extattr_check_cred(struct vnode *vp, int attrnamespace, struct ucred *cred, struct thread *td, accmode_t accmode) argument
4603 vfs_unixify_accmode(accmode_t *accmode) argument
[all...]
H A Duipc_shm.c612 accmode_t accmode; local
615 accmode = 0;
617 accmode |= VREAD;
619 accmode |= VWRITE;
622 accmode, ucred, NULL);
H A Dvfs_vnops.c278 accmode_t accmode; local
288 accmode = 0;
292 accmode |= VWRITE;
295 accmode |= VREAD;
297 accmode |= VEXEC;
299 accmode |= VAPPEND;
301 error = mac_vnode_check_open(cred, vp, accmode);
306 if (accmode & VWRITE) {
311 if (accmode) {
312 error = VOP_ACCESS(vp, accmode, cre
[all...]
/freebsd-10.1-release/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.c471 ugidfw_accmode2mbi(accmode_t accmode) argument
476 if (accmode & VEXEC)
478 if (accmode & VWRITE)
480 if (accmode & VREAD)
482 if (accmode & VADMIN_PERMS)
484 if (accmode & VSTAT_PERMS)
486 if (accmode & VAPPEND)
/freebsd-10.1-release/sys/sys/
H A Dextattr.h68 struct ucred *cred, struct thread *td, accmode_t accmode);
/freebsd-10.1-release/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-10.1-release/sys/cddl/compat/opensolaris/sys/
H A Dpolicy.h52 accmode_t accmode);
/freebsd-10.1-release/sys/security/mac/
H A Dmac_posix_shm.c140 accmode_t accmode)
145 shmfd->shm_label, accmode);
146 MAC_CHECK_PROBE3(posixshm_check_open, error, cred, shmfd, accmode);
139 mac_posixshm_check_open(struct ucred *cred, struct shmfd *shmfd, accmode_t accmode) argument
H A Dmac_vfs.c376 mac_vnode_check_access(struct ucred *cred, struct vnode *vp, accmode_t accmode) argument
382 MAC_POLICY_CHECK(vnode_check_access, cred, vp, vp->v_label, accmode);
383 MAC_CHECK_PROBE3(vnode_check_access, error, cred, vp, accmode);
633 mac_vnode_check_open(struct ucred *cred, struct vnode *vp, accmode_t accmode) argument
639 MAC_POLICY_CHECK(vnode_check_open, cred, vp, vp->v_label, accmode);
640 MAC_CHECK_PROBE3(vnode_check_open, error, cred, vp, accmode);
H A Dmac_framework.h245 accmode_t accmode);
379 accmode_t accmode);
405 accmode_t accmode);
/freebsd-10.1-release/lib/libutil/
H A Dquotafile.c52 int accmode; /* access mode */ member in struct:quotafile
139 qf->accmode = openflags & O_ACCMODE;
140 if ((qf->fd = open(qf->qfname, qf->accmode|O_CLOEXEC)) < 0 &&
408 if ((qf->accmode & O_RDWR) != O_RDWR) {
456 if ((qf->accmode & O_RDWR) != O_RDWR) {
517 if ((qf->accmode & O_RDWR) != O_RDWR || qf->fd == -1) {
/freebsd-10.1-release/sys/compat/linux/
H A Dlinux_getcwd.c302 accmode_t accmode = VEXEC; local
347 error = VOP_ACCESS(lvp, accmode, td->td_ucred, td);
350 accmode = VEXEC|VREAD;
/freebsd-10.1-release/sys/gnu/fs/reiserfs/
H A Dreiserfs_vnops.c60 accmode_t accmode = ap->a_accmode; local
67 if (accmode & VWRITE) {
84 if ((accmode & VWRITE) && (ip->i_flags & (IMMUTABLE | SF_SNAPSHOT))) {
H A Dreiserfs_vfsops.c79 accmode_t accmode; local
131 accmode = VREAD;
133 accmode |= VWRITE;
134 error = VOP_ACCESS(devvp, accmode, td->td_ucred, td);
/freebsd-10.1-release/sys/fs/unionfs/
H A Dunion_vnops.c621 unionfs_check_corrected_access(accmode_t accmode, argument
638 if (accmode & VEXEC)
640 if (accmode & VREAD)
642 if (accmode & VWRITE)
650 if (accmode & VEXEC)
652 if (accmode & VREAD)
654 if (accmode & VWRITE)
660 if (accmode & VEXEC)
662 if (accmode & VREAD)
664 if (accmode
679 accmode_t accmode; local
[all...]
/freebsd-10.1-release/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-10.1-release/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.h147 int smbfs_smb_open(struct smbnode *np, int accmode, struct smb_cred *scred);
/freebsd-10.1-release/sys/nlm/
H A Dnlm_prot_impl.c1746 fhandle_t *fhp, struct vfs_state *vs, accmode_t accmode)
1758 /* accmode == 0 means don't check, since it is an unlock. */
1759 if (accmode != 0) {
1778 if (accmode != 0) {
1792 error = VOP_ACCESS(vs->vs_vp, accmode, cred, curthread);
1794 * If this failed and accmode != VWRITE, try again with
1798 if (error != 0 && accmode != VWRITE)
1855 accmode_t accmode; local
1881 accmode = argp->exclusive ? VWRITE : VREAD;
1882 error = nlm_get_vfs_state(host, rqstp, &fh, &vs, accmode);
1745 nlm_get_vfs_state(struct nlm_host *host, struct svc_req *rqstp, fhandle_t *fhp, struct vfs_state *vs, accmode_t accmode) argument
1953 accmode_t accmode; local
[all...]
/freebsd-10.1-release/sys/fs/ext2fs/
H A Dext2_vfsops.c118 accmode_t accmode; local
246 accmode = VREAD;
248 accmode |= VWRITE;
249 error = VOP_ACCESS(devvp, accmode, td->td_ucred, td);
/freebsd-10.1-release/sys/fs/msdosfs/
H A Dmsdosfs_vfsops.c248 accmode_t accmode; local
372 accmode = VREAD;
374 accmode |= VWRITE;
375 error = VOP_ACCESS(devvp, accmode, td->td_ucred, td);

Completed in 174 milliseconds

123