Searched refs:vma (Results 1 – 5 of 5) sorted by relevance
/security/selinux/ |
D | selinuxfs.c | 243 struct vm_area_struct *vma) in sel_mmap_handle_status() argument 246 unsigned long size = vma->vm_end - vma->vm_start; in sel_mmap_handle_status() 251 if (vma->vm_pgoff > 0 || size != PAGE_SIZE) in sel_mmap_handle_status() 254 if (vma->vm_flags & VM_WRITE) in sel_mmap_handle_status() 257 vma->vm_flags &= ~VM_MAYWRITE; in sel_mmap_handle_status() 259 return remap_pfn_range(vma, vma->vm_start, in sel_mmap_handle_status() 261 size, vma->vm_page_prot); in sel_mmap_handle_status() 451 static int sel_mmap_policy_fault(struct vm_area_struct *vma, in sel_mmap_policy_fault() argument 454 struct policy_load_memory *plm = vma->vm_file->private_data; in sel_mmap_policy_fault() 478 static int sel_mmap_policy(struct file *filp, struct vm_area_struct *vma) in sel_mmap_policy() argument [all …]
|
D | hooks.c | 3265 static int selinux_file_mprotect(struct vm_area_struct *vma, in selinux_file_mprotect() argument 3275 (prot & PROT_EXEC) && !(vma->vm_flags & VM_EXEC)) { in selinux_file_mprotect() 3277 if (vma->vm_start >= vma->vm_mm->start_brk && in selinux_file_mprotect() 3278 vma->vm_end <= vma->vm_mm->brk) { in selinux_file_mprotect() 3280 } else if (!vma->vm_file && in selinux_file_mprotect() 3281 vma->vm_start <= vma->vm_mm->start_stack && in selinux_file_mprotect() 3282 vma->vm_end >= vma->vm_mm->start_stack) { in selinux_file_mprotect() 3284 } else if (vma->vm_file && vma->anon_vma) { in selinux_file_mprotect() 3292 rc = file_has_perm(cred, vma->vm_file, FILE__EXECMOD); in selinux_file_mprotect() 3298 return file_map_prot_check(vma->vm_file, prot, vma->vm_flags&VM_SHARED); in selinux_file_mprotect()
|
/security/apparmor/ |
D | lsm.c | 499 static int apparmor_file_mprotect(struct vm_area_struct *vma, in apparmor_file_mprotect() argument 502 return common_mmap(OP_FMPROT, vma->vm_file, prot, in apparmor_file_mprotect() 503 !(vma->vm_flags & VM_SHARED) ? MAP_PRIVATE : 0); in apparmor_file_mprotect()
|
/security/ |
D | security.c | 752 int security_file_mprotect(struct vm_area_struct *vma, unsigned long reqprot, in security_file_mprotect() argument 755 return security_ops->file_mprotect(vma, reqprot, prot); in security_file_mprotect()
|
D | capability.c | 339 static int cap_file_mprotect(struct vm_area_struct *vma, unsigned long reqprot, in cap_file_mprotect() argument
|