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

123

/freebsd-9.3-release/sys/kern/
H A Dsubr_acl_posix1e.c56 struct acl *acl, accmode_t accmode, struct ucred *cred, int *privused)
64 KASSERT((accmode & ~(VEXEC | VWRITE | VREAD | VADMIN | VAPPEND)) == 0,
65 ("invalid bit in accmode"));
66 KASSERT((accmode & VAPPEND) == 0 || (accmode & VWRITE),
89 if ((accmode & VEXEC) && !priv_check_cred(cred,
98 if ((accmode & VEXEC) && (acl_posix1e_acl_to_mode(acl) &
104 if ((accmode & VREAD) && !priv_check_cred(cred, PRIV_VFS_READ, 0))
107 if (((accmode & VWRITE) || (accmode
55 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.c66 accmode_t accmode; member in struct:__anon9434
85 _access_mask_from_accmode(accmode_t accmode) argument
89 for (i = 0; accmode2mask[i].accmode != 0; i++) {
90 if (accmode & accmode2mask[i].accmode)
171 struct acl *aclp, accmode_t accmode, struct ucred *cred, int *privused)
178 KASSERT((accmode & ~(VEXEC | VWRITE | VREAD | VADMIN | VAPPEND |
182 ("invalid bit in accmode"));
183 KASSERT((accmode & VAPPEND) == 0 || (accmode
170 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.c3872 accmode_t accmode, struct ucred *cred, int *privused)
3877 KASSERT((accmode & ~(VEXEC | VWRITE | VREAD | VADMIN | VAPPEND)) == 0,
3878 ("invalid bit in accmode"));
3879 KASSERT((accmode & VAPPEND) == 0 || (accmode & VWRITE),
3902 if ((accmode & dac_granted) == accmode)
3917 if ((accmode & dac_granted) == accmode)
3930 if ((accmode
3871 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
3989 extattr_check_cred(struct vnode *vp, int attrnamespace, struct ucred *cred, struct thread *td, accmode_t accmode) argument
4682 vfs_unixify_accmode(accmode_t *accmode) argument
[all...]
H A Dvfs_vnops.c133 accmode_t accmode; local
226 accmode = 0;
232 accmode |= VWRITE;
235 accmode |= VREAD;
237 accmode |= VEXEC;
239 accmode |= VAPPEND;
241 error = mac_vnode_check_open(cred, vp, accmode);
246 if (accmode & VWRITE) {
251 if (accmode) {
252 error = VOP_ACCESS(vp, accmode, cre
[all...]
H A Duipc_shm.c417 accmode_t accmode; local
420 accmode = 0;
422 accmode |= VREAD;
424 accmode |= VWRITE;
427 accmode, ucred, NULL);
/freebsd-9.3-release/sys/gnu/fs/xfs/FreeBSD/
H A Dxfs_super.c136 accmode_t accmode; local
154 accmode = VREAD;
156 accmode |= VWRITE;
157 error = VOP_ACCESS(devvp, accmode, td->td_ucred, td);
/freebsd-9.3-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);
375 accmode_t accmode);
401 accmode_t accmode);
/freebsd-9.3-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-9.3-release/sys/sys/
H A Dextattr.h68 struct ucred *cred, struct thread *td, accmode_t accmode);
/freebsd-9.3-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-9.3-release/sys/cddl/compat/opensolaris/sys/
H A Dpolicy.h52 accmode_t accmode);
/freebsd-9.3-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)) < 0 &&
407 if ((qf->accmode & O_RDWR) != O_RDWR) {
455 if ((qf->accmode & O_RDWR) != O_RDWR) {
516 if ((qf->accmode & O_RDWR) != O_RDWR || qf->fd == -1) {
/freebsd-9.3-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-9.3-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))) {
/freebsd-9.3-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-9.3-release/sys/fs/nullfs/
H A Dnull_vnops.c471 accmode_t accmode = ap->a_accmode; local
478 if (accmode & VWRITE) {
497 accmode_t accmode = ap->a_accmode; local
504 if (accmode & VWRITE) {
/freebsd-9.3-release/sys/fs/coda/
H A Dcoda_vnops.c611 accmode_t accmode = ap->a_accmode; local
628 return (((accmode & VREAD) && !(accmode & (VWRITE | VEXEC)))
640 (accmode & cp->c_cached_mode) == accmode) {
644 error = venus_access(vtomi(vp), &cp->c_fid, accmode, cred, td->td_proc);
662 cp->c_cached_mode = accmode;
665 cp->c_cached_mode |= accmode;
/freebsd-9.3-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;
201 error = smbfs_smb_open(np, accmode, &scred);
206 accmode = SMB_SM_DENYNONE|SMB_AM_OPENREAD;
207 error = smbfs_smb_open(np, accmode, &scred);
/freebsd-9.3-release/sys/nlm/
H A Dnlm_prot_impl.c1747 fhandle_t *fhp, struct vfs_state *vs, accmode_t accmode)
1760 /* accmode == 0 means don't check, since it is an unlock. */
1761 if (accmode != 0) {
1780 if (accmode != 0) {
1794 error = VOP_ACCESS(vs->vs_vp, accmode, cred, curthread);
1796 * If this failed and accmode != VWRITE, try again with
1800 if (error != 0 && accmode != VWRITE)
1858 accmode_t accmode; local
1884 accmode = argp->exclusive ? VWRITE : VREAD;
1885 error = nlm_get_vfs_state(host, rqstp, &fh, &vs, accmode);
1746 nlm_get_vfs_state(struct nlm_host *host, struct svc_req *rqstp, fhandle_t *fhp, struct vfs_state *vs, accmode_t accmode) argument
1956 accmode_t accmode; local
[all...]
/freebsd-9.3-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-9.3-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 204 milliseconds

123