/kernel/linux/common_modules/xpm/core/ |
H A D | xpm_security_hooks.c | 220 static int xpm_check_code_segment(bool is_exec, struct vm_area_struct *vma, in xpm_check_code_segment() argument 228 if (!is_exec) in xpm_check_code_segment() 254 bool is_exec; in xpm_check_signature() local 258 is_exec = !xpm_is_anonymous_vma(vma) && (prot & PROT_EXEC); in xpm_check_signature() 259 if (!((vma->vm_flags & VM_XPM) || is_exec)) in xpm_check_signature() 267 ret = get_exec_file_signature_info(vma->vm_file, is_exec, &info); in xpm_check_signature() 269 report_mmap_event(GET_SIGN_FAIL, is_exec ? TYPE_ELF : TYPE_ABC, in xpm_check_signature() 278 is_exec ? TYPE_ELF : TYPE_ABC, vma, prot); in xpm_check_signature() 282 ret = xpm_check_code_segment(is_exec, vma, info); in xpm_check_signature() 285 is_exec in xpm_check_signature() [all...] |
/kernel/linux/linux-5.10/arch/powerpc/mm/ |
H A D | fault.c | 199 int is_exec = TRAP(regs) == 0x400; in bad_kernel_fault() local 201 if (is_exec) { in bad_kernel_fault() 211 if (!is_exec && address < TASK_SIZE && (error_code & DSISR_PROTFAULT) && in bad_kernel_fault() 237 static bool access_pkey_error(bool is_write, bool is_exec, bool is_pkey, in access_pkey_error() argument 245 if (!arch_vma_access_permitted(vma, is_write, is_exec, 0)) in access_pkey_error() 252 static bool access_error(bool is_write, bool is_exec, struct vm_area_struct *vma) in access_error() argument 264 if (is_exec) { in access_error() 395 int is_exec = TRAP(regs) == 0x400; in __do_page_fault() local 451 if (is_exec) in __do_page_fault() 497 if (unlikely(access_pkey_error(is_write, is_exec, in __do_page_fault() [all...] |
/kernel/linux/linux-6.6/arch/powerpc/mm/ |
H A D | fault.c | 195 int is_exec = TRAP(regs) == INTERRUPT_INST_STORAGE; in bad_kernel_fault() local 197 if (is_exec) { in bad_kernel_fault() 230 static bool access_pkey_error(bool is_write, bool is_exec, bool is_pkey, in access_pkey_error() argument 238 if (!arch_vma_access_permitted(vma, is_write, is_exec, 0)) in access_pkey_error() 244 static bool access_error(bool is_write, bool is_exec, struct vm_area_struct *vma) in access_error() argument 256 if (is_exec) { in access_error() 411 int is_exec = TRAP(regs) == INTERRUPT_INST_STORAGE; in ___do_page_fault() local 469 if (is_exec) in ___do_page_fault() 479 if (unlikely(access_pkey_error(is_write, is_exec, in ___do_page_fault() 485 if (unlikely(access_error(is_write, is_exec, vm in ___do_page_fault() [all...] |
/kernel/linux/linux-6.6/arch/xtensa/mm/ |
H A D | fault.c | 96 int is_write, is_exec; in do_page_fault() local 119 is_exec = (exccause == EXCCAUSE_ITLB_PRIVILEGE || in do_page_fault() 126 is_write ? "w" : "", is_exec ? "x" : ""); in do_page_fault() 148 } else if (is_exec) { in do_page_fault()
|
/kernel/linux/common_modules/xpm/validator/ |
H A D | exec_signature_info.c | 275 static int check_exec_file_is_verity(struct file *file, bool is_exec) in check_exec_file_is_verity() argument 286 if (is_exec && !elf_file_enable_fs_verity(file)) in check_exec_file_is_verity() 505 static int get_elf_code_segment_info(struct file *file, bool is_exec, int type, in get_elf_code_segment_info() argument 525 if (is_exec && old_info->code_segments == NULL) in get_elf_code_segment_info() 535 if (!is_exec) { in get_elf_code_segment_info() 559 int get_exec_file_signature_info(struct file *file, bool is_exec, in get_exec_file_signature_info() argument 567 type = check_exec_file_is_verity(file, is_exec); in get_exec_file_signature_info() 568 return get_elf_code_segment_info(file, is_exec, type, info_ptr); in get_exec_file_signature_info()
|
H A D | exec_signature_info.h | 55 int get_exec_file_signature_info(struct file *file, bool is_exec, struct exec_file_signature_info **info_ptr);
|
/kernel/linux/linux-5.10/arch/xtensa/mm/ |
H A D | fault.c | 43 int is_write, is_exec; in do_page_fault() local 64 is_exec = (exccause == EXCCAUSE_ITLB_PRIVILEGE || in do_page_fault() 71 is_write ? "w" : "", is_exec ? "x" : ""); in do_page_fault() 102 } else if (is_exec) { in do_page_fault()
|
/kernel/linux/linux-5.10/arch/powerpc/mm/book3s64/ |
H A D | hash_utils.c | 1583 bool is_exec, unsigned long trap) in hash_preload() 1588 unsigned long access = _PAGE_PRESENT | _PAGE_READ | (is_exec ? _PAGE_EXEC : 0); in hash_preload() 1687 bool is_exec; in update_mmu_cache() local 1708 is_exec = false; in update_mmu_cache() 1711 is_exec = true; in update_mmu_cache() 1717 hash_preload(vma->vm_mm, ptep, address, is_exec, trap); in update_mmu_cache() 1582 hash_preload(struct mm_struct *mm, pte_t *ptep, unsigned long ea, bool is_exec, unsigned long trap) hash_preload() argument
|
/kernel/linux/linux-6.6/tools/lib/bpf/ |
H A D | usdt.c | 389 bool is_exec; member 438 seg->is_exec = phdr.p_flags & PF_X; in parse_elf_segs() 523 seg->is_exec = true; in parse_vma_segs() 677 if (!seg->is_exec) { in collect_usdt_targets() 749 if (seg->is_exec) { in collect_usdt_targets()
|
/kernel/linux/linux-6.6/arch/powerpc/mm/book3s64/ |
H A D | hash_utils.c | 1756 bool is_exec, unsigned long trap) in hash_preload() 1761 unsigned long access = _PAGE_PRESENT | _PAGE_READ | (is_exec ? _PAGE_EXEC : 0); in hash_preload() 1852 bool is_exec; in __update_mmu_cache() local 1870 is_exec = false; in __update_mmu_cache() 1873 is_exec = true; in __update_mmu_cache() 1879 hash_preload(vma->vm_mm, ptep, address, is_exec, trap); in __update_mmu_cache() 1755 hash_preload(struct mm_struct *mm, pte_t *ptep, unsigned long ea, bool is_exec, unsigned long trap) hash_preload() argument
|
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | unwind-libunwind-local.c | 409 int is_exec = elf_is_exec(fd, map->dso->name); in find_proc_info() local 410 unw_word_t base = is_exec ? 0 : map->start; in find_proc_info()
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | unwind-libunwind-local.c | 470 int is_exec = elf_is_exec(fd, dso->name); in find_proc_info() local 472 unw_word_t base = is_exec ? 0 : start; in find_proc_info()
|
/kernel/linux/linux-5.10/fs/fat/ |
H A D | inode.c | 469 static int is_exec(unsigned char *extension) in is_exec() function 547 ((sbi->options.showexec && !is_exec(de->name + 8)) in fat_fill_inode()
|
/kernel/linux/linux-6.6/fs/fat/ |
H A D | inode.c | 466 static int is_exec(unsigned char *extension) in is_exec() function 544 ((sbi->options.showexec && !is_exec(de->name + 8)) in fat_fill_inode()
|