/linux-4.4.14/security/apparmor/ |
D | file.c | 106 int aa_audit_file(struct aa_profile *profile, struct file_perms *perms, in aa_audit_file() argument 124 u32 mask = perms->audit; in aa_audit_file() 137 sa.aad->fs.request = sa.aad->fs.request & ~perms->allow; in aa_audit_file() 139 if (sa.aad->fs.request & perms->kill) in aa_audit_file() 143 if ((sa.aad->fs.request & perms->quiet) && in aa_audit_file() 146 sa.aad->fs.request &= ~perms->quiet; in aa_audit_file() 152 sa.aad->fs.denied = sa.aad->fs.request & ~perms->allow; in aa_audit_file() 197 struct file_perms perms; in compute_perms() local 204 perms.kill = 0; in compute_perms() 207 perms.allow = map_old_perms(dfa_user_allow(dfa, state)); in compute_perms() [all …]
|
D | domain.c | 100 struct file_perms perms; in change_profile_perms() local 105 perms.allow = AA_MAY_CHANGE_PROFILE | AA_MAY_ONEXEC; in change_profile_perms() 106 perms.audit = perms.quiet = perms.kill = 0; in change_profile_perms() 107 return perms; in change_profile_perms() 112 aa_str_perms(profile->file.dfa, start, name, &cond, &perms); in change_profile_perms() 113 if (COMBINED_PERM_MASK(perms) & request) in change_profile_perms() 114 return perms; in change_profile_perms() 120 aa_str_perms(profile->file.dfa, state, name, &cond, &perms); in change_profile_perms() 122 return perms; in change_profile_perms() 344 struct file_perms perms = {}; in apparmor_bprm_set_creds() local [all …]
|
/linux-4.4.14/security/apparmor/include/ |
D | file.h | 147 int aa_audit_file(struct aa_profile *profile, struct file_perms *perms, 172 struct file_perms *perms); 198 u32 perms = 0; in aa_map_file_to_perms() local 201 perms |= MAY_WRITE; in aa_map_file_to_perms() 203 perms |= MAY_READ; in aa_map_file_to_perms() 205 if ((flags & O_APPEND) && (perms & MAY_WRITE)) in aa_map_file_to_perms() 206 perms = (perms & ~MAY_WRITE) | MAY_APPEND; in aa_map_file_to_perms() 209 perms |= MAY_WRITE; in aa_map_file_to_perms() 211 perms |= AA_MAY_CREATE; in aa_map_file_to_perms() 213 return perms; in aa_map_file_to_perms()
|
/linux-4.4.14/scripts/selinux/genheaders/ |
D | genheaders.c | 10 const char *perms[sizeof(unsigned) * 8 + 1]; member 64 for (j = 0; map->perms[j]; j++) in main() 65 map->perms[j] = stoupperx(map->perms[j]); in main() 126 for (j = 0; map->perms[j]; j++) { in main() 128 map->perms[j]); in main() 129 for (k = 0; k < max(1, 40 - strlen(map->name) - strlen(map->perms[j])); k++) in main()
|
/linux-4.4.14/arch/arm/mm/ |
D | init.c | 658 void set_section_perms(struct section_perm *perms, int n, bool set, in set_section_perms() argument 668 if (!IS_ALIGNED(perms[i].start, SECTION_SIZE) || in set_section_perms() 669 !IS_ALIGNED(perms[i].end, SECTION_SIZE)) { in set_section_perms() 671 perms[i].start, perms[i].end, in set_section_perms() 676 for (addr = perms[i].start; in set_section_perms() 677 addr < perms[i].end; in set_section_perms() 679 section_update(addr, perms[i].mask, in set_section_perms() 680 set ? perms[i].prot : perms[i].clear, mm); in set_section_perms() 685 static void update_sections_early(struct section_perm perms[], int n) in update_sections_early() argument 694 set_section_perms(perms, n, true, s->mm); in update_sections_early() [all …]
|
/linux-4.4.14/fs/nfsd/ |
D | nfs4acl.c | 431 struct posix_ace_state perms; member 526 low_mode_from_nfs4(state->users->aces[i].perms.allow, in posix_state_to_acl() 529 add_to_mask(state, &state->users->aces[i].perms); in posix_state_to_acl() 540 low_mode_from_nfs4(state->groups->aces[i].perms.allow, in posix_state_to_acl() 543 add_to_mask(state, &state->groups->aces[i].perms); in posix_state_to_acl() 582 a->aces[i].perms.allow = state->everyone.allow; in find_uid() 583 a->aces[i].perms.deny = state->everyone.deny; in find_uid() 599 a->aces[i].perms.allow = state->everyone.allow; in find_gid() 600 a->aces[i].perms.deny = state->everyone.deny; in find_gid() 610 deny_bits(&a->aces[i].perms, mask); in deny_bits_array() [all …]
|
/linux-4.4.14/fs/hfsplus/ |
D | catalog.c | 80 void hfsplus_cat_set_perms(struct inode *inode, struct hfsplus_perm *perms) in hfsplus_cat_set_perms() argument 83 perms->rootflags |= HFSPLUS_FLG_IMMUTABLE; in hfsplus_cat_set_perms() 85 perms->rootflags &= ~HFSPLUS_FLG_IMMUTABLE; in hfsplus_cat_set_perms() 87 perms->rootflags |= HFSPLUS_FLG_APPEND; in hfsplus_cat_set_perms() 89 perms->rootflags &= ~HFSPLUS_FLG_APPEND; in hfsplus_cat_set_perms() 91 perms->userflags = HFSPLUS_I(inode)->userflags; in hfsplus_cat_set_perms() 92 perms->mode = cpu_to_be16(inode->i_mode); in hfsplus_cat_set_perms() 93 perms->owner = cpu_to_be32(i_uid_read(inode)); in hfsplus_cat_set_perms() 94 perms->group = cpu_to_be32(i_gid_read(inode)); in hfsplus_cat_set_perms() 97 perms->dev = cpu_to_be32(inode->i_nlink); in hfsplus_cat_set_perms() [all …]
|
D | inode.c | 182 struct hfsplus_perm *perms, int dir) in hfsplus_get_perms() argument 187 mode = be16_to_cpu(perms->mode); in hfsplus_get_perms() 189 i_uid_write(inode, be32_to_cpu(perms->owner)); in hfsplus_get_perms() 193 i_gid_write(inode, be32_to_cpu(perms->group)); in hfsplus_get_perms() 204 HFSPLUS_I(inode)->userflags = perms->userflags; in hfsplus_get_perms() 205 if (perms->rootflags & HFSPLUS_FLG_IMMUTABLE) in hfsplus_get_perms() 209 if (perms->rootflags & HFSPLUS_FLG_APPEND) in hfsplus_get_perms()
|
D | hfsplus_fs.h | 450 void hfsplus_cat_set_perms(struct inode *inode, struct hfsplus_perm *perms);
|
/linux-4.4.14/include/linux/ |
D | kernel.h | 822 #define VERIFY_OCTAL_PERMISSIONS(perms) \ argument 823 (BUILD_BUG_ON_ZERO((perms) < 0) + \ 824 BUILD_BUG_ON_ZERO((perms) > 0777) + \ 826 BUILD_BUG_ON_ZERO((((perms) >> 6) & 4) < (((perms) >> 3) & 4)) + \ 827 BUILD_BUG_ON_ZERO((((perms) >> 3) & 4) < ((perms) & 4)) + \ 829 BUILD_BUG_ON_ZERO((((perms) >> 6) & 2) < (((perms) >> 3) & 2)) + \ 831 BUILD_BUG_ON_ZERO((perms) & 2) + \ 832 (perms))
|
/linux-4.4.14/security/selinux/include/ |
D | security.h | 117 #define security_xperm_set(perms, x) (perms[x >> 5] |= 1 << (x & 0x1f)) argument 118 #define security_xperm_test(perms, x) (1 & (perms[x >> 5] >> (x & 0x1f))) argument 199 int security_get_permissions(char *class, char ***perms, int *nperms);
|
D | avc_ss.h | 16 const char *perms[sizeof(u32) * 8 + 1]; member
|
/linux-4.4.14/scripts/selinux/mdp/ |
D | mdp.c | 41 const char *perms[sizeof(unsigned) * 8 + 1]; member 87 for (j = 0; map->perms[j]; j++) in main() 88 fprintf(fout, "\t%s\n", map->perms[j]); in main()
|
/linux-4.4.14/security/selinux/ss/ |
D | services.c | 104 u32 perms[sizeof(u32) * 8]; member 158 while (p_in->perms && p_in->perms[k]) { in selinux_set_mapping() 160 if (!*p_in->perms[k]) { in selinux_set_mapping() 164 p_out->perms[k] = string_to_av_perm(pol, p_out->value, in selinux_set_mapping() 165 p_in->perms[k]); in selinux_set_mapping() 166 if (!p_out->perms[k]) { in selinux_set_mapping() 169 p_in->perms[k], p_in->name); in selinux_set_mapping() 227 if (avd->allowed & current_mapping[tclass].perms[i]) in map_decision() 229 if (allow_unknown && !current_mapping[tclass].perms[i]) in map_decision() 235 if (avd->auditallow & current_mapping[tclass].perms[i]) in map_decision() [all …]
|
D | avtab.c | 400 __le32 buf32[ARRAY_SIZE(xperms.perms.p)]; in avtab_read_item() 526 rc = next_entry(buf32, fp, sizeof(u32)*ARRAY_SIZE(xperms.perms.p)); in avtab_read_item() 531 for (i = 0; i < ARRAY_SIZE(xperms.perms.p); i++) in avtab_read_item() 532 xperms.perms.p[i] = le32_to_cpu(buf32[i]); in avtab_read_item() 603 __le32 buf32[ARRAY_SIZE(cur->datum.u.xperms->perms.p)]; in avtab_write_item() 622 for (i = 0; i < ARRAY_SIZE(cur->datum.u.xperms->perms.p); i++) in avtab_write_item() 623 buf32[i] = cpu_to_le32(cur->datum.u.xperms->perms.p[i]); in avtab_write_item() 625 ARRAY_SIZE(cur->datum.u.xperms->perms.p), fp); in avtab_write_item()
|
D | avtab.h | 70 struct extended_perms_data perms; member
|
/linux-4.4.14/security/selinux/ |
D | avc.c | 111 const char **perms; in avc_dump_av() local 120 perms = secclass_map[tclass-1].perms; in avc_dump_av() 126 if ((perm & av) && perms[i]) { in avc_dump_av() 127 audit_log_format(ab, " %s", perms[i]); in avc_dump_av() 820 static int avc_update_node(u32 event, u32 perms, u8 driver, u8 xperm, u32 ssid, in avc_update_node() argument 877 node->ae.avd.allowed |= perms; in avc_update_node() 883 node->ae.avd.allowed &= ~perms; in avc_update_node() 886 node->ae.avd.auditallow |= perms; in avc_update_node() 889 node->ae.avd.auditallow &= ~perms; in avc_update_node() 892 node->ae.avd.auditdeny |= perms; in avc_update_node() [all …]
|
D | hooks.c | 1515 u32 perms) in cred_has_perm() argument 1519 return avc_has_perm(asid, tsid, SECCLASS_PROCESS, perms, NULL); in cred_has_perm() 1530 u32 perms) in task_has_perm() argument 1539 return avc_has_perm(sid1, sid2, SECCLASS_PROCESS, perms, NULL); in task_has_perm() 1549 u32 perms) in current_has_perm() argument 1555 return avc_has_perm(sid, tsid, SECCLASS_PROCESS, perms, NULL); in current_has_perm() 1601 u32 perms) in task_has_system() argument 1606 SECCLASS_SYSTEM, perms, NULL); in task_has_system() 1614 u32 perms, in inode_has_perm() argument 1628 return avc_has_perm(sid, isec->sid, isec->sclass, perms, adp); in inode_has_perm() [all …]
|
D | selinuxfs.c | 82 u32 perms) in task_has_security() argument 96 SECCLASS_SECURITY, perms, NULL); in task_has_security() 1580 char **perms; in sel_make_perm_files() local 1582 rc = security_get_permissions(objclass, &perms, &nperms); in sel_make_perm_files() 1591 dentry = d_alloc_name(dir, perms[i]); in sel_make_perm_files() 1608 kfree(perms[i]); in sel_make_perm_files() 1609 kfree(perms); in sel_make_perm_files()
|
/linux-4.4.14/tools/testing/selftests/mqueue/ |
D | mq_open_tests.c | 200 int perms = DEFFILEMODE; in test_queue() local 202 if ((queue = mq_open(queue_path, flags, perms, attr)) == -1) in test_queue() 222 int perms = DEFFILEMODE; in test_queue_fail() local 224 if ((queue = mq_open(queue_path, flags, perms, attr)) == -1) in test_queue_fail()
|
D | mq_perf_tests.c | 290 int perms = DEFFILEMODE; in open_queue() local 292 queue = mq_open(queue_path, flags, perms, attr); in open_queue()
|
/linux-4.4.14/drivers/net/wireless/rsi/ |
D | rsi_debugfs.h | 36 umode_t perms; member
|
D | rsi_91x_debugfs.c | 311 files->perms, in rsi_init_dbgfs()
|
/linux-4.4.14/arch/x86/platform/uv/ |
D | bios_uv.c | 142 uv_bios_change_memprotect(u64 paddr, u64 len, enum uv_memprotect perms) in uv_bios_change_memprotect() argument 145 perms, 0, 0); in uv_bios_change_memprotect()
|
/linux-4.4.14/drivers/infiniband/hw/cxgb3/ |
D | iwch_mem.c | 63 mhp->attr.perms, in iwch_register_mem() 93 mhp->attr.perms, in iwch_reregister_mem()
|
D | iwch_provider.h | 60 enum tpt_mem_perm perms; member
|
D | iwch_provider.c | 538 mhp->attr.perms = iwch_ib_to_tpt_access(acc); in iwch_register_phys_mem() 595 mh.attr.perms = iwch_ib_to_tpt_access(acc); in iwch_reregister_phys_mem() 613 mhp->attr.perms = iwch_ib_to_tpt_access(acc); in iwch_reregister_phys_mem() 696 mhp->attr.perms = iwch_ib_to_tpt_access(acc); in iwch_reg_user_mr()
|
D | cxio_wr.h | 259 u8 perms; member
|
D | iwch_qp.c | 578 wqe->bind.perms = iwch_ib_to_tpt_bind_access( in iwch_bind_mw()
|
/linux-4.4.14/drivers/infiniband/hw/cxgb4/ |
D | mem.c | 380 mhp->attr.perms : 0, in register_mem() 406 FW_RI_STAG_NSMR, mhp->attr.perms, in reregister_mem() 535 mh.attr.perms = c4iw_ib_to_tpt_access(acc); in c4iw_reregister_phys_mem() 560 mhp->attr.perms = c4iw_ib_to_tpt_access(acc); in c4iw_reregister_phys_mem() 634 mhp->attr.perms = c4iw_ib_to_tpt_access(acc); in c4iw_register_phys_mem() 674 mhp->attr.perms = c4iw_ib_to_tpt_access(acc); in c4iw_get_dma_mr() 683 FW_RI_STAG_NSMR, mhp->attr.perms, in c4iw_get_dma_mr() 782 mhp->attr.perms = c4iw_ib_to_tpt_access(acc); in c4iw_reg_user_mr()
|
D | iw_cxgb4.h | 368 enum fw_ri_mem_perms perms; member
|
/linux-4.4.14/drivers/usb/gadget/function/ |
D | f_fs.c | 1082 struct ffs_file_perms *perms) in ffs_sb_make_inode() argument 1094 inode->i_mode = perms->mode; in ffs_sb_make_inode() 1095 inode->i_uid = perms->uid; in ffs_sb_make_inode() 1096 inode->i_gid = perms->gid; in ffs_sb_make_inode() 1142 struct ffs_file_perms perms; member 1167 data->perms.mode = data->root_mode; in ffs_sb_fill() 1171 &data->perms); in ffs_sb_fill() 1226 data->perms.mode = (value & 0666) | S_IFREG; in ffs_fs_parse_opts() 1234 data->perms.mode = (value & 0666) | S_IFREG; in ffs_fs_parse_opts() 1242 data->perms.uid = make_kuid(current_user_ns(), value); in ffs_fs_parse_opts() [all …]
|
/linux-4.4.14/tools/testing/selftests/vm/ |
D | mlock2-tests.c | 147 char perms[5]; in seek_to_smaps_entry() local 161 &start, &end, perms, &offset, dev, &inode, path) < 6) in seek_to_smaps_entry()
|
/linux-4.4.14/drivers/scsi/cxlflash/ |
D | superpipe.c | 758 u32 perms) in create_context() argument 784 ctxi->rht_perms = perms; in create_context() 1300 u32 perms; in cxlflash_disk_attach() local 1397 perms = SISL_RHT_PERM(attach->hdr.flags + 1); in cxlflash_disk_attach() 1399 ctxi = create_context(cfg, ctx, ctxid, fd, file, perms); in cxlflash_disk_attach()
|
D | vlun.c | 1131 u32 perms; in cxlflash_disk_clone() local 1211 perms = ctxi_dst->rht_perms; in cxlflash_disk_clone() 1234 SISL_RHT_FP_CLONE(ctxi_src->rht_start[i].fp, perms); in cxlflash_disk_clone()
|
/linux-4.4.14/arch/ia64/include/asm/sn/ |
D | sn_sal.h | 732 sn_change_memprotect(u64 paddr, u64 len, u64 perms, u64 *nasid_array) in sn_change_memprotect() argument 737 (u64)nasid_array, perms, 0, 0, 0); in sn_change_memprotect()
|
/linux-4.4.14/arch/blackfin/kernel/ |
D | debug-mmrs.c | 31 #define _d(name, bits, addr, perms) debugfs_create_x##bits(name, perms, parent, (u##bits *)(addr)) argument 469 #define _D_SPORT(name, perms, fops) \ argument 472 debugfs_create_file(buf, perms, parent, (void *)(base + SPORT_OFF(name)), fops); \
|
/linux-4.4.14/Documentation/DocBook/ |
D | kernel-api.xml.db | 284 API-ipc-check-perms
|
/linux-4.4.14/Documentation/filesystems/cifs/ |
D | CHANGES | 1042 3) default file perms are now 2767 (indicating support for mandatory locks) instead of 777 for dire… 1043 in most cases. Eventually will offer optional ability to query server for the correct perms.
|
/linux-4.4.14/Documentation/filesystems/ |
D | proc.txt | 341 address perms offset dev inode pathname 364 where "address" is the address space in the process that it occupies, "perms"
|