Home
last modified time | relevance | path

Searched refs:vma (Results 1 – 4 of 4) sorted by relevance

/security/selinux/
Dselinuxfs.c246 struct vm_area_struct *vma) in sel_mmap_handle_status() argument
249 unsigned long size = vma->vm_end - vma->vm_start; in sel_mmap_handle_status()
254 if (vma->vm_pgoff > 0 || size != PAGE_SIZE) in sel_mmap_handle_status()
257 if (vma->vm_flags & VM_WRITE) in sel_mmap_handle_status()
260 vma->vm_flags &= ~VM_MAYWRITE; in sel_mmap_handle_status()
262 return remap_pfn_range(vma, vma->vm_start, in sel_mmap_handle_status()
264 size, vma->vm_page_prot); in sel_mmap_handle_status()
457 struct policy_load_memory *plm = vmf->vma->vm_file->private_data; in sel_mmap_policy_fault()
481 static int sel_mmap_policy(struct file *filp, struct vm_area_struct *vma) in sel_mmap_policy() argument
483 if (vma->vm_flags & VM_SHARED) { in sel_mmap_policy()
[all …]
Dhooks.c3719 static int selinux_file_mprotect(struct vm_area_struct *vma, in selinux_file_mprotect() argument
3730 (prot & PROT_EXEC) && !(vma->vm_flags & VM_EXEC)) { in selinux_file_mprotect()
3732 if (vma->vm_start >= vma->vm_mm->start_brk && in selinux_file_mprotect()
3733 vma->vm_end <= vma->vm_mm->brk) { in selinux_file_mprotect()
3737 } else if (!vma->vm_file && in selinux_file_mprotect()
3738 ((vma->vm_start <= vma->vm_mm->start_stack && in selinux_file_mprotect()
3739 vma->vm_end >= vma->vm_mm->start_stack) || in selinux_file_mprotect()
3740 vma_is_stack_for_current(vma))) { in selinux_file_mprotect()
3744 } else if (vma->vm_file && vma->anon_vma) { in selinux_file_mprotect()
3752 rc = file_has_perm(cred, vma->vm_file, FILE__EXECMOD); in selinux_file_mprotect()
[all …]
/security/apparmor/
Dlsm.c509 static int apparmor_file_mprotect(struct vm_area_struct *vma, in apparmor_file_mprotect() argument
512 return common_mmap(OP_FMPROT, vma->vm_file, prot, in apparmor_file_mprotect()
513 !(vma->vm_flags & VM_SHARED) ? MAP_PRIVATE : 0); in apparmor_file_mprotect()
/security/
Dsecurity.c1462 int security_file_mprotect(struct vm_area_struct *vma, unsigned long reqprot, in security_file_mprotect() argument
1465 return call_int_hook(file_mprotect, 0, vma, reqprot, prot); in security_file_mprotect()