Home
last modified time | relevance | path

Searched refs:MAY_WRITE (Results 1 – 25 of 51) sorted by relevance

123

/kernel/linux/linux-5.10/security/apparmor/include/
Dfile.h23 #define mask_mode_t(X) (X & (MAY_EXEC | MAY_WRITE | MAY_READ | MAY_APPEND))
25 #define AA_AUDIT_FILE_MASK (MAY_READ | MAY_WRITE | MAY_EXEC | MAY_APPEND |\
222 perms |= MAY_WRITE; in aa_map_file_to_perms()
226 if ((flags & O_APPEND) && (perms & MAY_WRITE)) in aa_map_file_to_perms()
227 perms = (perms & ~MAY_WRITE) | MAY_APPEND; in aa_map_file_to_perms()
230 perms |= MAY_WRITE; in aa_map_file_to_perms()
Dipc.h18 #define AA_PTRACE_TRACE MAY_WRITE
26 #define AA_SIGNAL_PERM_MASK (MAY_READ | MAY_WRITE)
Dperms.h17 #define AA_MAY_WRITE MAY_WRITE
52 #define PERMS_CHRS_MASK (MAY_READ | MAY_WRITE | AA_MAY_CREATE | \
/kernel/linux/linux-5.10/security/smack/
Dsmack_lsm.c100 if (mode & MAY_WRITE) in smk_bu_mode()
196 (mode & (MAY_WRITE | MAY_APPEND))) in smk_bu_inode()
1031 rc = smk_curacc(isp, MAY_WRITE, &ad); in smack_inode_link()
1032 rc = smk_bu_inode(d_backing_inode(old_dentry), MAY_WRITE, rc); in smack_inode_link()
1037 rc = smk_curacc(isp, MAY_WRITE, &ad); in smack_inode_link()
1038 rc = smk_bu_inode(d_backing_inode(new_dentry), MAY_WRITE, rc); in smack_inode_link()
1064 rc = smk_curacc(smk_of_inode(ip), MAY_WRITE, &ad); in smack_inode_unlink()
1065 rc = smk_bu_inode(ip, MAY_WRITE, rc); in smack_inode_unlink()
1072 rc = smk_curacc(smk_of_inode(dir), MAY_WRITE, &ad); in smack_inode_unlink()
1073 rc = smk_bu_inode(dir, MAY_WRITE, rc); in smack_inode_unlink()
[all …]
Dsmack_access.c93 if ((may & MAY_WRITE) == MAY_WRITE) in smk_access_entry()
292 if (access & MAY_WRITE) in smack_str_from_perm()
Dsmack.h243 #define MAY_DELIVER MAY_WRITE /* Signal delivery requires write */
254 #define MAY_READWRITE (MAY_READ | MAY_WRITE)
/kernel/linux/linux-5.10/security/apparmor/
Dipc.c32 case MAY_WRITE: in audit_ptrace_mask()
152 if (mask & MAY_WRITE) in audit_signal_mask()
216 profile_signal_perm(profile, target, MAY_WRITE, &sa), in aa_may_signal()
Dfile.c32 m |= MAY_WRITE; in map_mask_to_chr_mask()
186 if (old & MAY_WRITE) in map_old_perms()
662 if (aa_file_perm(OP_INHERIT, label, file, MAY_READ | MAY_WRITE, in revalidate_tty()
Dlsm.c326 return common_perm_cond(OP_TRUNC, path, MAY_WRITE | AA_MAY_SETATTR); in apparmor_path_truncate()
373 MAY_READ | AA_MAY_GETATTR | MAY_WRITE | in apparmor_path_rename()
378 0, MAY_WRITE | AA_MAY_SETATTR | in apparmor_path_rename()
488 mask |= MAY_WRITE; in apparmor_file_lock()
508 mask |= MAY_WRITE; in common_mmap()
/kernel/linux/linux-5.10/fs/
Dxattr.c92 if (mask & MAY_WRITE) { in xattr_permission()
117 return (mask & MAY_WRITE) ? -EPERM : -ENODATA; in xattr_permission()
128 return (mask & MAY_WRITE) ? -EPERM : -ENODATA; in xattr_permission()
130 (mask & MAY_WRITE) && !inode_owner_or_capable(inode)) in xattr_permission()
254 error = xattr_permission(inode, name, MAY_WRITE); in __vfs_setxattr_locked()
461 error = xattr_permission(inode, name, MAY_WRITE); in __vfs_removexattr_locked()
Dremap_range.c121 return security_file_permission(file, write ? MAY_WRITE : MAY_READ); in remap_verify_area()
442 if (!inode_permission(file_inode(file), MAY_WRITE)) in allow_file_dedupe()
Dopen.c86 error = inode_permission(inode, MAY_WRITE); in vfs_truncate()
288 ret = security_file_permission(file, MAY_WRITE); in vfs_fallocate()
1045 if (!(acc_mode & MAY_WRITE)) in build_open_flags()
1068 acc_mode |= MAY_WRITE; in build_open_flags()
Dnamei.c359 if (!(mask & MAY_WRITE)) in generic_permission()
371 mask &= MAY_READ | MAY_WRITE | MAY_EXEC; in generic_permission()
418 if (unlikely(mask & MAY_WRITE)) { in sb_permission()
447 if (unlikely(mask & MAY_WRITE)) { in inode_permission()
1025 if (inode_permission(inode, MAY_READ | MAY_WRITE)) in safe_hardlink_source()
2717 error = inode_permission(dir, MAY_WRITE | MAY_EXEC); in may_delete()
2761 return inode_permission(dir, MAY_WRITE | MAY_EXEC); in may_create()
2869 if (acc_mode & MAY_WRITE) in may_open()
2953 error = inode_permission(dir->dentry->d_inode, MAY_WRITE | MAY_EXEC); in may_o_create()
3286 error = inode_permission(dir, MAY_WRITE | MAY_EXEC); in vfs_tmpfile()
[all …]
Dattr.c249 error = inode_permission(inode, MAY_WRITE); in notify_change()
/kernel/linux/linux-5.10/include/linux/
Ddevice_cgroup.h31 if (mask & MAY_WRITE) in devcgroup_inode_permission()
/kernel/linux/linux-5.10/fs/sharefs/
Dinode.c112 if ((mask & ~mode & (MAY_READ | MAY_WRITE | MAY_EXEC)) == 0) in sharefs_permission()
/kernel/linux/linux-5.10/fs/gfs2/
Dinode.c354 error = gfs2_permission(&dip->i_inode, MAY_WRITE | MAY_EXEC); in create_ok()
954 error = gfs2_permission(dir, MAY_WRITE | MAY_EXEC); in gfs2_link()
1071 error = gfs2_permission(&dip->i_inode, MAY_WRITE | MAY_EXEC); in gfs2_unlink_ok()
1493 error = gfs2_permission(ndir, MAY_WRITE | MAY_EXEC); in gfs2_rename()
1528 error = gfs2_permission(d_inode(odentry), MAY_WRITE); in gfs2_rename()
1691 error = gfs2_permission(odentry->d_inode, MAY_WRITE); in gfs2_exchange()
1696 error = gfs2_permission(ndentry->d_inode, MAY_WRITE); in gfs2_exchange()
1852 if ((mask & MAY_WRITE) && IS_IMMUTABLE(inode)) in gfs2_permission()
/kernel/linux/linux-5.10/fs/afs/
Dsecurity.c445 if (mask & MAY_WRITE) { in afs_permission()
460 } else if (mask & MAY_WRITE) { in afs_permission()
/kernel/linux/linux-5.10/mm/
Dmincore.c170 inode_permission(file_inode(vma->vm_file), MAY_WRITE) == 0; in can_do_mincore()
/kernel/linux/linux-5.10/fs/configfs/
Dsymlink.c200 ret = inode_permission(dir, MAY_WRITE | MAY_EXEC); in configfs_symlink()
/kernel/linux/linux-5.10/fs/nfs/
Ddir.c2653 mask |= MAY_WRITE; in nfs_access_calc_mask()
2658 mask |= MAY_WRITE; in nfs_access_calc_mask()
2662 mask |= MAY_WRITE; in nfs_access_calc_mask()
2715 if ((mask & ~cache_mask & (MAY_READ | MAY_WRITE | MAY_EXEC)) != 0) in nfs_do_access()
2733 mask |= MAY_WRITE; in nfs_open_permission_mask()
2769 if ((mask & (MAY_READ | MAY_WRITE | MAY_EXEC)) == 0) in nfs_permission()
2788 if ((mask & MAY_WRITE) && !(mask & MAY_READ)) in nfs_permission()
/kernel/linux/linux-5.10/security/integrity/ima/
Dima_main.c360 if ((mask & MAY_WRITE) && test_bit(IMA_DIGSIG, &iint->atomic_flags) && in process_measurement()
499 mask & (MAY_READ | MAY_WRITE | MAY_EXEC | in ima_file_check()
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dima_policy36 mask:= [[^]MAY_READ] [[^]MAY_WRITE] [[^]MAY_APPEND]
/kernel/linux/linux-5.10/fs/verity/
Denable.c372 err = inode_permission(inode, MAY_WRITE); in fsverity_ioctl_enable()
/kernel/linux/linux-5.10/fs/overlayfs/
Dinode.c303 !special_file(realinode->i_mode) && mask & MAY_WRITE) { in ovl_permission()
304 mask &= ~(MAY_WRITE | MAY_APPEND); in ovl_permission()

123