/freebsd-10.1-release/sys/kern/ |
H A D | subr_acl_posix1e.c | 58 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 D | subr_acl_nfs4.c | 68 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 D | vfs_subr.c | 3794 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 D | uipc_shm.c | 612 accmode_t accmode; local 615 accmode = 0; 617 accmode |= VREAD; 619 accmode |= VWRITE; 622 accmode, ucred, NULL);
|
H A D | vfs_vnops.c | 278 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 D | ugidfw_internal.h | 37 int ugidfw_accmode2mbi(accmode_t accmode); 56 struct label *vplabel, accmode_t accmode); 84 struct label *vplabel, accmode_t accmode);
|
H A D | ugidfw_vnode.c | 65 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 D | mac_bsdextended.c | 471 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 D | extattr.h | 68 struct ucred *cred, struct thread *td, accmode_t accmode);
|
/freebsd-10.1-release/sys/cddl/compat/opensolaris/kern/ |
H A D | opensolaris_policy.c | 120 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 D | policy.h | 52 accmode_t accmode);
|
/freebsd-10.1-release/sys/security/mac/ |
H A D | mac_posix_shm.c | 140 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 D | mac_vfs.c | 376 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 D | mac_framework.h | 245 accmode_t accmode); 379 accmode_t accmode); 405 accmode_t accmode);
|
/freebsd-10.1-release/lib/libutil/ |
H A D | quotafile.c | 52 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 D | linux_getcwd.c | 302 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 D | reiserfs_vnops.c | 60 accmode_t accmode = ap->a_accmode; local 67 if (accmode & VWRITE) { 84 if ((accmode & VWRITE) && (ip->i_flags & (IMMUTABLE | SF_SNAPSHOT))) {
|
H A D | reiserfs_vfsops.c | 79 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 D | union_vnops.c | 621 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 D | null_vnops.c | 511 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 D | smbfs_vnops.c | 126 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 D | smbfs_subr.h | 147 int smbfs_smb_open(struct smbnode *np, int accmode, struct smb_cred *scred);
|
/freebsd-10.1-release/sys/nlm/ |
H A D | nlm_prot_impl.c | 1746 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 D | ext2_vfsops.c | 118 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 D | msdosfs_vfsops.c | 248 accmode_t accmode; local 372 accmode = VREAD; 374 accmode |= VWRITE; 375 error = VOP_ACCESS(devvp, accmode, td->td_ucred, td);
|