MAY_WRITE 328 fs/afs/security.c } else if (mask & MAY_WRITE) { MAY_WRITE 342 fs/afs/security.c } else if (mask & MAY_WRITE) { MAY_WRITE 1472 fs/aio.c ret = security_file_permission(file, MAY_WRITE); MAY_WRITE 1500 fs/aio.c ret = security_file_permission(file, MAY_WRITE); MAY_WRITE 1000 fs/block_dev.c perm |= MAY_WRITE; MAY_WRITE 144 fs/coda/dir.c mask &= MAY_READ | MAY_WRITE | MAY_EXEC; MAY_WRITE 308 fs/fat/file.c if (allow_utime & MAY_WRITE) MAY_WRITE 901 fs/fuse/dir.c inarg.mask = mask & (MAY_READ | MAY_WRITE | MAY_EXEC); MAY_WRITE 674 fs/gfs2/inode.c error = gfs2_permission(&dip->i_inode, MAY_WRITE | MAY_EXEC); MAY_WRITE 1134 fs/gfs2/inode.c error = gfs2_permission(&dip->i_inode, MAY_WRITE | MAY_EXEC); MAY_WRITE 242 fs/gfs2/ops_file.c error = gfs2_permission(inode, MAY_WRITE); MAY_WRITE 170 fs/gfs2/ops_inode.c error = gfs2_permission(dir, MAY_WRITE | MAY_EXEC); MAY_WRITE 741 fs/gfs2/ops_inode.c error = gfs2_permission(ndir, MAY_WRITE | MAY_EXEC); MAY_WRITE 776 fs/gfs2/ops_inode.c error = gfs2_permission(odentry->d_inode, MAY_WRITE); MAY_WRITE 977 fs/gfs2/ops_inode.c if ((mask & MAY_WRITE) && IS_IMMUTABLE(inode)) MAY_WRITE 831 fs/hostfs/hostfs_kern.c if (desired & MAY_WRITE) w = 1; MAY_WRITE 418 fs/hpfs/namei.c generic_permission(inode, MAY_WRITE, NULL) || MAY_WRITE 187 fs/namei.c mask &= MAY_READ | MAY_WRITE | MAY_EXEC; MAY_WRITE 223 fs/namei.c if (mask == MAY_READ || (S_ISDIR(inode->i_mode) && !(mask & MAY_WRITE))) MAY_WRITE 234 fs/namei.c if (mask & MAY_WRITE) { MAY_WRITE 277 fs/namei.c mask & (MAY_READ|MAY_WRITE|MAY_EXEC|MAY_APPEND)); MAY_WRITE 1404 fs/namei.c error = inode_permission(dir, MAY_WRITE | MAY_EXEC); MAY_WRITE 1440 fs/namei.c return inode_permission(dir, MAY_WRITE | MAY_EXEC); MAY_WRITE 1537 fs/namei.c if (S_ISDIR(inode->i_mode) && (acc_mode & MAY_WRITE)) MAY_WRITE 1684 fs/namei.c acc_mode |= MAY_WRITE; MAY_WRITE 2522 fs/namei.c error = inode_permission(old_dentry->d_inode, MAY_WRITE); MAY_WRITE 1182 fs/namespace.c if (vfs_permission(nd, MAY_WRITE)) MAY_WRITE 43 fs/ncpfs/ioctl.c if ((file_permission(file, MAY_WRITE) != 0) MAY_WRITE 73 fs/ncpfs/ioctl.c if ((file_permission(file, MAY_WRITE) != 0) MAY_WRITE 144 fs/ncpfs/ioctl.c if ((file_permission(file, MAY_WRITE) != 0) MAY_WRITE 279 fs/ncpfs/ioctl.c if ((file_permission(filp, MAY_WRITE) != 0) MAY_WRITE 458 fs/ncpfs/ioctl.c if ((file_permission(filp, MAY_WRITE) != 0) MAY_WRITE 494 fs/ncpfs/ioctl.c if ((file_permission(filp, MAY_WRITE) != 0) MAY_WRITE 515 fs/ncpfs/ioctl.c if ((file_permission(filp, MAY_WRITE) != 0) MAY_WRITE 797 fs/ncpfs/ioctl.c if ((file_permission(filp, MAY_WRITE) != 0) && MAY_WRITE 1879 fs/nfs/dir.c cache.mask = MAY_EXEC | MAY_WRITE | MAY_READ; MAY_WRITE 1887 fs/nfs/dir.c if ((mask & ~cache.mask & (MAY_READ | MAY_WRITE | MAY_EXEC)) == 0) MAY_WRITE 1899 fs/nfs/dir.c mask |= MAY_WRITE; MAY_WRITE 1917 fs/nfs/dir.c if ((mask & (MAY_READ | MAY_WRITE | MAY_EXEC)) == 0) MAY_WRITE 1937 fs/nfs/dir.c if ((mask & MAY_WRITE) && !(mask & MAY_READ)) MAY_WRITE 202 fs/nfs/nfs3proc.c if (mode & MAY_WRITE) MAY_WRITE 207 fs/nfs/nfs3proc.c if (mode & MAY_WRITE) MAY_WRITE 220 fs/nfs/nfs3proc.c entry->mask |= MAY_WRITE; MAY_WRITE 1771 fs/nfs/nfs4proc.c if (mode & MAY_WRITE) MAY_WRITE 1776 fs/nfs/nfs4proc.c if (mode & MAY_WRITE) MAY_WRITE 1788 fs/nfs/nfs4proc.c entry->mask |= MAY_WRITE; MAY_WRITE 39 fs/nfsctl.c error = may_open(&nd,MAY_READ|MAY_WRITE,FMODE_READ|FMODE_WRITE); MAY_WRITE 41 fs/nfsctl.c error = may_open(&nd, MAY_WRITE, FMODE_WRITE); MAY_WRITE 1955 fs/nfsd/vfs.c err = inode_permission(inode, acc & (MAY_READ|MAY_WRITE|MAY_EXEC)); MAY_WRITE 254 fs/open.c error = inode_permission(inode, MAY_WRITE); MAY_WRITE 387 fs/open.c ret = security_file_permission(file, MAY_WRITE); MAY_WRITE 146 fs/proc/proc_sysctl.c if (sysctl_perm(head->root, table, write ? MAY_WRITE : MAY_READ)) MAY_WRITE 309 fs/proc/proc_sysctl.c error = mask & MAY_WRITE ? -EACCES : 0; MAY_WRITE 201 fs/read_write.c read_write == READ ? MAY_READ : MAY_WRITE); MAY_WRITE 420 fs/smbfs/file.c if (mask & ~mode & (MAY_READ | MAY_WRITE | MAY_EXEC)) MAY_WRITE 99 fs/utimes.c error = inode_permission(inode, MAY_WRITE); MAY_WRITE 35 fs/xattr.c if (mask & MAY_WRITE) { MAY_WRITE 62 fs/xattr.c (mask & MAY_WRITE) && !is_owner_or_cap(inode)) MAY_WRITE 76 fs/xattr.c error = xattr_permission(inode, name, MAY_WRITE); MAY_WRITE 198 fs/xattr.c error = xattr_permission(inode, name, MAY_WRITE); MAY_WRITE 632 ipc/mqueue.c static int oflag2acc[O_ACCMODE] = { MAY_READ, MAY_WRITE, MAY_WRITE 633 ipc/mqueue.c MAY_READ | MAY_WRITE }; MAY_WRITE 1513 kernel/sysctl.c op |= MAY_WRITE; MAY_WRITE 1630 kernel/sysctl.c if ((op & ~mode & (MAY_READ|MAY_WRITE|MAY_EXEC)) == 0) MAY_WRITE 1640 kernel/sysctl.c error = security_sysctl(table, op & (MAY_READ | MAY_WRITE | MAY_EXEC)); MAY_WRITE 721 net/unix/af_unix.c err = vfs_permission(&nd, MAY_WRITE); MAY_WRITE 528 security/device_cgroup.c if ((mask & MAY_WRITE) && !(wh->access & ACC_WRITE)) MAY_WRITE 1674 security/selinux/hooks.c else if (mask & MAY_WRITE) MAY_WRITE 1680 security/selinux/hooks.c if (mask & MAY_WRITE) MAY_WRITE 2909 security/selinux/hooks.c if ((file->f_flags & O_APPEND) && (mask & MAY_WRITE)) MAY_WRITE 3891 security/selinux/hooks.c return selinux_netlbl_inode_permission(SOCK_INODE(sock), MAY_WRITE); MAY_WRITE 387 security/selinux/netlabel.c ((mask & (MAY_WRITE | MAY_APPEND)) == 0)) MAY_WRITE 152 security/smack/smack.h #define MAY_ANY (MAY_READ | MAY_WRITE | MAY_APPEND | MAY_EXEC) MAY_WRITE 154 security/smack/smack.h #define MAY_ANYWRITE (MAY_WRITE | MAY_APPEND) MAY_WRITE 155 security/smack/smack.h #define MAY_READWRITE (MAY_READ | MAY_WRITE) MAY_WRITE 344 security/smack/smack_lsm.c return smk_curacc(sbp->smk_floor, MAY_WRITE); MAY_WRITE 361 security/smack/smack_lsm.c return smk_curacc(sbp->smk_floor, MAY_WRITE); MAY_WRITE 442 security/smack/smack_lsm.c rc = smk_curacc(isp, MAY_WRITE); MAY_WRITE 446 security/smack/smack_lsm.c rc = smk_curacc(isp, MAY_WRITE); MAY_WRITE 468 security/smack/smack_lsm.c rc = smk_curacc(smk_of_inode(ip), MAY_WRITE); MAY_WRITE 473 security/smack/smack_lsm.c rc = smk_curacc(smk_of_inode(dir), MAY_WRITE); MAY_WRITE 493 security/smack/smack_lsm.c rc = smk_curacc(smk_of_inode(dentry->d_inode), MAY_WRITE); MAY_WRITE 498 security/smack/smack_lsm.c rc = smk_curacc(smk_of_inode(dir), MAY_WRITE); MAY_WRITE 570 security/smack/smack_lsm.c return smk_curacc(smk_of_inode(dentry->d_inode), MAY_WRITE); MAY_WRITE 611 security/smack/smack_lsm.c rc = smk_curacc(smk_of_inode(dentry->d_inode), MAY_WRITE); MAY_WRITE 691 security/smack/smack_lsm.c rc = smk_curacc(smk_of_inode(dentry->d_inode), MAY_WRITE); MAY_WRITE 853 security/smack/smack_lsm.c rc = smk_curacc(file->f_security, MAY_WRITE); MAY_WRITE 870 security/smack/smack_lsm.c return smk_curacc(file->f_security, MAY_WRITE); MAY_WRITE 901 security/smack/smack_lsm.c rc = smk_curacc(file->f_security, MAY_WRITE); MAY_WRITE 944 security/smack/smack_lsm.c rc = smk_access(file->f_security, tsk->security, MAY_WRITE); MAY_WRITE 966 security/smack/smack_lsm.c may |= MAY_WRITE; MAY_WRITE 1014 security/smack/smack_lsm.c return smk_curacc(p->security, MAY_WRITE); MAY_WRITE 1064 security/smack/smack_lsm.c rc = smk_curacc(p->security, MAY_WRITE); MAY_WRITE 1081 security/smack/smack_lsm.c rc = smk_curacc(p->security, MAY_WRITE); MAY_WRITE 1111 security/smack/smack_lsm.c rc = smk_curacc(p->security, MAY_WRITE); MAY_WRITE 1134 security/smack/smack_lsm.c return smk_curacc(p->security, MAY_WRITE); MAY_WRITE 1157 security/smack/smack_lsm.c return smk_curacc(p->security, MAY_WRITE); MAY_WRITE 1163 security/smack/smack_lsm.c return smk_access(smack_from_secid(secid), p->security, MAY_WRITE); MAY_WRITE 1176 security/smack/smack_lsm.c rc = smk_access(current->security, p->security, MAY_WRITE); MAY_WRITE 1436 security/smack/smack_lsm.c may |= MAY_WRITE; MAY_WRITE 2093 security/smack/smack_lsm.c return smk_access(smk_of_inode(sp), smk_of_inode(op), MAY_WRITE); MAY_WRITE 2182 security/smack/smack_lsm.c rc = smk_access(smack, ssp->smk_in, MAY_WRITE); MAY_WRITE 2336 security/smack/smack_lsm.c rc = smk_access(smack, ssp->smk_in, MAY_WRITE); MAY_WRITE 142 security/smack/smackfs.c if (srp->smk_access & MAY_WRITE) MAY_WRITE 284 security/smack/smackfs.c rule.smk_access |= MAY_WRITE;