Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132587
b: refs/heads/master
c: d541bbe
h: refs/heads/master
i:
  132585: d128df0
  132583: 63d69d0
v: v3
  • Loading branch information
James Morris committed Jan 29, 2009
1 parent eda87d0 commit 5936201
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 438add6b32d9295db6e3ecd4d9e137086ec5b5d9
refs/heads/master: d541bbee6902d5ffb8a03d63ac8f4b1364c2ff93
7 changes: 1 addition & 6 deletions trunk/security/selinux/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -3056,18 +3056,13 @@ static int selinux_file_mprotect(struct vm_area_struct *vma,
unsigned long prot)
{
const struct cred *cred = current_cred();
int rc;

rc = secondary_ops->file_mprotect(vma, reqprot, prot);
if (rc)
return rc;

if (selinux_checkreqprot)
prot = reqprot;

#ifndef CONFIG_PPC32
if ((prot & PROT_EXEC) && !(vma->vm_flags & VM_EXEC)) {
rc = 0;
int rc = 0;
if (vma->vm_start >= vma->vm_mm->start_brk &&
vma->vm_end <= vma->vm_mm->brk) {
rc = cred_has_perm(cred, cred, PROCESS__EXECHEAP);
Expand Down

0 comments on commit 5936201

Please sign in to comment.