MAY_WRITE 2847 drivers/staging/exfat/exfat_super.c if (allow_utime & MAY_WRITE) MAY_WRITE 447 fs/afs/security.c if (mask & MAY_WRITE) { MAY_WRITE 462 fs/afs/security.c } else if (mask & MAY_WRITE) { MAY_WRITE 247 fs/attr.c error = inode_permission(inode, MAY_WRITE); MAY_WRITE 1543 fs/block_dev.c perm |= MAY_WRITE; MAY_WRITE 10637 fs/btrfs/inode.c if (mask & MAY_WRITE && MAY_WRITE 917 fs/btrfs/ioctl.c error = inode_permission(dir, MAY_WRITE | MAY_EXEC); MAY_WRITE 946 fs/btrfs/ioctl.c return inode_permission(dir, MAY_WRITE | MAY_EXEC); MAY_WRITE 2918 fs/btrfs/ioctl.c err = inode_permission(inode, MAY_WRITE | MAY_EXEC); MAY_WRITE 2983 fs/btrfs/ioctl.c inode_permission(inode, MAY_WRITE)) { MAY_WRITE 83 fs/coda/dir.c mask &= MAY_READ | MAY_WRITE | MAY_EXEC; MAY_WRITE 200 fs/configfs/symlink.c ret = inode_permission(dir, MAY_WRITE | MAY_EXEC); MAY_WRITE 468 fs/fat/file.c if (allow_utime & MAY_WRITE) MAY_WRITE 1116 fs/fuse/dir.c inarg.mask = mask & (MAY_READ | MAY_WRITE | MAY_EXEC); MAY_WRITE 259 fs/gfs2/file.c error = gfs2_permission(inode, MAY_WRITE); MAY_WRITE 334 fs/gfs2/inode.c error = gfs2_permission(&dip->i_inode, MAY_WRITE | MAY_EXEC); MAY_WRITE 927 fs/gfs2/inode.c error = gfs2_permission(dir, MAY_WRITE | MAY_EXEC); MAY_WRITE 1043 fs/gfs2/inode.c error = gfs2_permission(&dip->i_inode, MAY_WRITE | MAY_EXEC); MAY_WRITE 1465 fs/gfs2/inode.c error = gfs2_permission(ndir, MAY_WRITE | MAY_EXEC); MAY_WRITE 1500 fs/gfs2/inode.c error = gfs2_permission(d_inode(odentry), MAY_WRITE); MAY_WRITE 1662 fs/gfs2/inode.c error = gfs2_permission(odentry->d_inode, MAY_WRITE); MAY_WRITE 1667 fs/gfs2/inode.c error = gfs2_permission(ndentry->d_inode, MAY_WRITE); MAY_WRITE 1823 fs/gfs2/inode.c if ((mask & MAY_WRITE) && IS_IMMUTABLE(inode)) MAY_WRITE 771 fs/hostfs/hostfs_kern.c if (desired & MAY_WRITE) w = 1; MAY_WRITE 313 fs/namei.c if ((mask & ~mode & (MAY_READ | MAY_WRITE | MAY_EXEC)) == 0) MAY_WRITE 345 fs/namei.c if (!(mask & MAY_WRITE)) MAY_WRITE 357 fs/namei.c mask &= MAY_READ | MAY_WRITE | MAY_EXEC; MAY_WRITE 404 fs/namei.c if (unlikely(mask & MAY_WRITE)) { MAY_WRITE 433 fs/namei.c if (unlikely(mask & MAY_WRITE)) { MAY_WRITE 961 fs/namei.c if (inode_permission(inode, MAY_READ | MAY_WRITE)) MAY_WRITE 2798 fs/namei.c error = inode_permission(dir, MAY_WRITE | MAY_EXEC); MAY_WRITE 2842 fs/namei.c return inode_permission(dir, MAY_WRITE | MAY_EXEC); MAY_WRITE 2950 fs/namei.c if (acc_mode & MAY_WRITE) MAY_WRITE 3026 fs/namei.c error = inode_permission(dir->dentry->d_inode, MAY_WRITE | MAY_EXEC); MAY_WRITE 3436 fs/namei.c error = inode_permission(dir, MAY_WRITE | MAY_EXEC); MAY_WRITE 4427 fs/namei.c error = inode_permission(source, MAY_WRITE); MAY_WRITE 4432 fs/namei.c error = inode_permission(target, MAY_WRITE); MAY_WRITE 2477 fs/nfs/dir.c mask |= MAY_WRITE; MAY_WRITE 2482 fs/nfs/dir.c mask |= MAY_WRITE; MAY_WRITE 2486 fs/nfs/dir.c mask |= MAY_WRITE; MAY_WRITE 2536 fs/nfs/dir.c if ((mask & ~cache_mask & (MAY_READ | MAY_WRITE | MAY_EXEC)) != 0) MAY_WRITE 2554 fs/nfs/dir.c mask |= MAY_WRITE; MAY_WRITE 2590 fs/nfs/dir.c if ((mask & (MAY_READ | MAY_WRITE | MAY_EXEC)) == 0) MAY_WRITE 2609 fs/nfs/dir.c if ((mask & MAY_WRITE) && !(mask & MAY_READ)) MAY_WRITE 2084 fs/nfsd/vfs.c err = inode_permission(inode, acc & (MAY_READ|MAY_WRITE|MAY_EXEC)); MAY_WRITE 858 fs/nilfs2/inode.c if ((mask & MAY_WRITE) && root && MAY_WRITE 4347 fs/ocfs2/refcounttree.c return inode_permission(dir, MAY_WRITE | MAY_EXEC); MAY_WRITE 86 fs/open.c error = inode_permission(inode, MAY_WRITE); MAY_WRITE 288 fs/open.c ret = security_file_permission(file, MAY_WRITE); MAY_WRITE 986 fs/open.c if (!(acc_mode & MAY_WRITE)) MAY_WRITE 1001 fs/open.c acc_mode |= MAY_WRITE; MAY_WRITE 294 fs/overlayfs/inode.c !special_file(realinode->i_mode) && mask & MAY_WRITE) { MAY_WRITE 295 fs/overlayfs/inode.c mask &= ~(MAY_WRITE | MAY_APPEND); MAY_WRITE 353 fs/posix_acl.c want &= MAY_READ | MAY_WRITE | MAY_EXEC | MAY_NOT_BLOCK; MAY_WRITE 445 fs/proc/proc_sysctl.c if ((op & ~mode & (MAY_READ|MAY_WRITE|MAY_EXEC)) == 0) MAY_WRITE 592 fs/proc/proc_sysctl.c if (sysctl_perm(head, table, write ? MAY_WRITE : MAY_READ)) MAY_WRITE 827 fs/proc/proc_sysctl.c error = mask & MAY_WRITE ? -EACCES : 0; MAY_WRITE 400 fs/read_write.c read_write == READ ? MAY_READ : MAY_WRITE); MAY_WRITE 1773 fs/read_write.c return security_file_permission(file, write ? MAY_WRITE : MAY_READ); MAY_WRITE 2093 fs/read_write.c if (!inode_permission(file_inode(file), MAY_WRITE)) MAY_WRITE 331 fs/verity/enable.c err = inode_permission(inode, MAY_WRITE); MAY_WRITE 92 fs/xattr.c if (mask & MAY_WRITE) { MAY_WRITE 117 fs/xattr.c return (mask & MAY_WRITE) ? -EPERM : -ENODATA; MAY_WRITE 128 fs/xattr.c return (mask & MAY_WRITE) ? -EPERM : -ENODATA; MAY_WRITE 130 fs/xattr.c (mask & MAY_WRITE) && !inode_owner_or_capable(inode)) MAY_WRITE 215 fs/xattr.c error = xattr_permission(inode, name, MAY_WRITE); MAY_WRITE 387 fs/xattr.c error = xattr_permission(inode, name, MAY_WRITE); MAY_WRITE 49 include/linux/device_cgroup.h if (mask & MAY_WRITE) MAY_WRITE 792 ipc/mqueue.c static const int oflag2acc[O_ACCMODE] = { MAY_READ, MAY_WRITE, MAY_WRITE 793 ipc/mqueue.c MAY_READ | MAY_WRITE }; MAY_WRITE 4749 kernel/cgroup/cgroup.c ret = inode_permission(inode, MAY_WRITE); MAY_WRITE 537 mm/madvise.c inode_permission(file_inode(vma->vm_file), MAY_WRITE) == 0; MAY_WRITE 193 mm/mincore.c inode_permission(file_inode(vma->vm_file), MAY_WRITE) == 0; MAY_WRITE 925 net/unix/af_unix.c err = inode_permission(inode, MAY_WRITE); MAY_WRITE 32 security/apparmor/file.c m |= MAY_WRITE; MAY_WRITE 197 security/apparmor/file.c if (old & MAY_WRITE) MAY_WRITE 658 security/apparmor/file.c if (aa_file_perm(OP_INHERIT, label, file, MAY_READ | MAY_WRITE)) MAY_WRITE 23 security/apparmor/include/file.h #define mask_mode_t(X) (X & (MAY_EXEC | MAY_WRITE | MAY_READ | MAY_APPEND)) MAY_WRITE 25 security/apparmor/include/file.h #define AA_AUDIT_FILE_MASK (MAY_READ | MAY_WRITE | MAY_EXEC | MAY_APPEND |\ MAY_WRITE 222 security/apparmor/include/file.h perms |= MAY_WRITE; MAY_WRITE 226 security/apparmor/include/file.h if ((flags & O_APPEND) && (perms & MAY_WRITE)) MAY_WRITE 227 security/apparmor/include/file.h perms = (perms & ~MAY_WRITE) | MAY_APPEND; MAY_WRITE 230 security/apparmor/include/file.h perms |= MAY_WRITE; MAY_WRITE 18 security/apparmor/include/ipc.h #define AA_PTRACE_TRACE MAY_WRITE MAY_WRITE 26 security/apparmor/include/ipc.h #define AA_SIGNAL_PERM_MASK (MAY_READ | MAY_WRITE) MAY_WRITE 17 security/apparmor/include/perms.h #define AA_MAY_WRITE MAY_WRITE MAY_WRITE 52 security/apparmor/include/perms.h #define PERMS_CHRS_MASK (MAY_READ | MAY_WRITE | AA_MAY_CREATE | \ MAY_WRITE 32 security/apparmor/ipc.c case MAY_WRITE: MAY_WRITE 153 security/apparmor/ipc.c if (mask & MAY_WRITE) MAY_WRITE 216 security/apparmor/ipc.c profile_signal_perm(profile, target, MAY_WRITE, &sa), MAY_WRITE 316 security/apparmor/lsm.c return common_perm_cond(OP_TRUNC, path, MAY_WRITE | AA_MAY_SETATTR); MAY_WRITE 363 security/apparmor/lsm.c MAY_READ | AA_MAY_GETATTR | MAY_WRITE | MAY_WRITE 368 security/apparmor/lsm.c 0, MAY_WRITE | AA_MAY_SETATTR | MAY_WRITE 476 security/apparmor/lsm.c mask |= MAY_WRITE; MAY_WRITE 496 security/apparmor/lsm.c mask |= MAY_WRITE; MAY_WRITE 352 security/integrity/ima/ima_main.c if ((mask & MAY_WRITE) && test_bit(IMA_DIGSIG, &iint->atomic_flags) && MAY_WRITE 439 security/integrity/ima/ima_main.c mask & (MAY_READ | MAY_WRITE | MAY_EXEC | MAY_WRITE 1025 security/integrity/ima/ima_policy.c entry->mask = MAY_WRITE; MAY_WRITE 1408 security/integrity/ima/ima_policy.c if (entry->mask & MAY_WRITE) MAY_WRITE 1989 security/selinux/hooks.c else if (mask & MAY_WRITE) MAY_WRITE 1995 security/selinux/hooks.c if (mask & MAY_WRITE) MAY_WRITE 3056 security/selinux/hooks.c mask &= (MAY_READ|MAY_WRITE|MAY_EXEC|MAY_APPEND); MAY_WRITE 3528 security/selinux/hooks.c if ((file->f_flags & O_APPEND) && (mask & MAY_WRITE)) MAY_WRITE 253 security/smack/smack.h #define MAY_DELIVER MAY_WRITE /* Signal delivery requires write */ MAY_WRITE 264 security/smack/smack.h #define MAY_READWRITE (MAY_READ | MAY_WRITE) MAY_WRITE 98 security/smack/smack_access.c if ((may & MAY_WRITE) == MAY_WRITE) MAY_WRITE 293 security/smack/smack_access.c if (access & MAY_WRITE) MAY_WRITE 101 security/smack/smack_lsm.c if (mode & MAY_WRITE) MAY_WRITE 197 security/smack/smack_lsm.c (mode & (MAY_WRITE | MAY_APPEND))) MAY_WRITE 1041 security/smack/smack_lsm.c rc = smk_curacc(isp, MAY_WRITE, &ad); MAY_WRITE 1042 security/smack/smack_lsm.c rc = smk_bu_inode(d_backing_inode(old_dentry), MAY_WRITE, rc); MAY_WRITE 1047 security/smack/smack_lsm.c rc = smk_curacc(isp, MAY_WRITE, &ad); MAY_WRITE 1048 security/smack/smack_lsm.c rc = smk_bu_inode(d_backing_inode(new_dentry), MAY_WRITE, rc); MAY_WRITE 1074 security/smack/smack_lsm.c rc = smk_curacc(smk_of_inode(ip), MAY_WRITE, &ad); MAY_WRITE 1075 security/smack/smack_lsm.c rc = smk_bu_inode(ip, MAY_WRITE, rc); MAY_WRITE 1082 security/smack/smack_lsm.c rc = smk_curacc(smk_of_inode(dir), MAY_WRITE, &ad); MAY_WRITE 1083 security/smack/smack_lsm.c rc = smk_bu_inode(dir, MAY_WRITE, rc); MAY_WRITE 1107 security/smack/smack_lsm.c rc = smk_curacc(smk_of_inode(d_backing_inode(dentry)), MAY_WRITE, &ad); MAY_WRITE 1108 security/smack/smack_lsm.c rc = smk_bu_inode(d_backing_inode(dentry), MAY_WRITE, rc); MAY_WRITE 1115 security/smack/smack_lsm.c rc = smk_curacc(smk_of_inode(dir), MAY_WRITE, &ad); MAY_WRITE 1116 security/smack/smack_lsm.c rc = smk_bu_inode(dir, MAY_WRITE, rc); MAY_WRITE 1175 security/smack/smack_lsm.c mask &= (MAY_READ|MAY_WRITE|MAY_EXEC|MAY_APPEND); MAY_WRITE 1217 security/smack/smack_lsm.c rc = smk_curacc(smk_of_inode(d_backing_inode(dentry)), MAY_WRITE, &ad); MAY_WRITE 1218 security/smack/smack_lsm.c rc = smk_bu_inode(d_backing_inode(dentry), MAY_WRITE, rc); MAY_WRITE 1300 security/smack/smack_lsm.c rc = smk_curacc(smk_of_inode(d_backing_inode(dentry)), MAY_WRITE, &ad); MAY_WRITE 1301 security/smack/smack_lsm.c rc = smk_bu_inode(d_backing_inode(dentry), MAY_WRITE, rc); MAY_WRITE 1398 security/smack/smack_lsm.c rc = smk_curacc(smk_of_inode(d_backing_inode(dentry)), MAY_WRITE, &ad); MAY_WRITE 1399 security/smack/smack_lsm.c rc = smk_bu_inode(d_backing_inode(dentry), MAY_WRITE, rc); MAY_WRITE 1565 security/smack/smack_lsm.c rc = smk_curacc(smk_of_inode(inode), MAY_WRITE, &ad); MAY_WRITE 1566 security/smack/smack_lsm.c rc = smk_bu_file(file, MAY_WRITE, rc); MAY_WRITE 1636 security/smack/smack_lsm.c rc = smk_curacc(smk_of_inode(inode), MAY_WRITE, &ad); MAY_WRITE 1637 security/smack/smack_lsm.c rc = smk_bu_file(file, MAY_WRITE, rc); MAY_WRITE 1847 security/smack/smack_lsm.c rc = smk_access(tsp->smk_task, ssp->smk_out, MAY_WRITE, &ad); MAY_WRITE 1851 security/smack/smack_lsm.c rc = smk_access(ssp->smk_in, tsp->smk_task, MAY_WRITE, &ad); MAY_WRITE 1861 security/smack/smack_lsm.c may |= MAY_WRITE; MAY_WRITE 2063 security/smack/smack_lsm.c return smk_curacc_on_task(p, MAY_WRITE, __func__); MAY_WRITE 2111 security/smack/smack_lsm.c return smk_curacc_on_task(p, MAY_WRITE, __func__); MAY_WRITE 2123 security/smack/smack_lsm.c return smk_curacc_on_task(p, MAY_WRITE, __func__); MAY_WRITE 2145 security/smack/smack_lsm.c return smk_curacc_on_task(p, MAY_WRITE, __func__); MAY_WRITE 2167 security/smack/smack_lsm.c return smk_curacc_on_task(p, MAY_WRITE, __func__); MAY_WRITE 2469 security/smack/smack_lsm.c rc = smk_access(skp, hkp, MAY_WRITE, &ad); MAY_WRITE 2470 security/smack/smack_lsm.c rc = smk_bu_note("IPv4 host check", skp, hkp, MAY_WRITE, rc); MAY_WRITE 2510 security/smack/smack_lsm.c rc = smk_access(subject, object, MAY_WRITE, &ad); MAY_WRITE 2511 security/smack/smack_lsm.c rc = smk_bu_note("IPv6 check", subject, object, MAY_WRITE, rc); MAY_WRITE 2875 security/smack/smack_lsm.c may |= MAY_WRITE; MAY_WRITE 3593 security/smack/smack_lsm.c rc = smk_access(skp, okp, MAY_WRITE, &ad); MAY_WRITE 3594 security/smack/smack_lsm.c rc = smk_bu_note("UDS connect", skp, okp, MAY_WRITE, rc); MAY_WRITE 3598 security/smack/smack_lsm.c rc = smk_access(okp, skp, MAY_WRITE, &ad); MAY_WRITE 3600 security/smack/smack_lsm.c MAY_WRITE, rc); MAY_WRITE 3640 security/smack/smack_lsm.c rc = smk_access(ssp->smk_out, osp->smk_in, MAY_WRITE, &ad); MAY_WRITE 3641 security/smack/smack_lsm.c rc = smk_bu_note("UDS send", ssp->smk_out, osp->smk_in, MAY_WRITE, rc); MAY_WRITE 3893 security/smack/smack_lsm.c rc = smk_access(skp, ssp->smk_in, MAY_WRITE, &ad); MAY_WRITE 3895 security/smack/smack_lsm.c MAY_WRITE, rc); MAY_WRITE 3922 security/smack/smack_lsm.c rc = smk_access(skp, ssp->smk_in, MAY_WRITE, &ad); MAY_WRITE 3924 security/smack/smack_lsm.c MAY_WRITE, rc); MAY_WRITE 4137 security/smack/smack_lsm.c rc = smk_access(skp, ssp->smk_in, MAY_WRITE, &ad); MAY_WRITE 4138 security/smack/smack_lsm.c rc = smk_bu_note("IPv4 connect", skp, ssp->smk_in, MAY_WRITE, rc); MAY_WRITE 4276 security/smack/smack_lsm.c request |= MAY_WRITE; MAY_WRITE 275 security/smack/smackfs.c perm |= MAY_WRITE; MAY_WRITE 587 security/smack/smackfs.c if (srp->smk_access & MAY_WRITE) MAY_WRITE 779 security/tomoyo/file.c if (!error && (acc_mode & MAY_WRITE))