Lines Matching refs:vma
3719 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()
3758 return file_map_prot_check(vma->vm_file, prot, vma->vm_flags&VM_SHARED); in selinux_file_mprotect()