Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 198709 Details for
Bug 278573
selinux_file_mmap always enforce mapping the 0 page
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
patch (text/plain), 1.15 KB, created by
Brayan Arraes (YacK)
on 2009-07-21 14:58:31 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Brayan Arraes (YacK)
Created:
2009-07-21 14:58:31 UTC
Size:
1.15 KB
patch
obsolete
>include/linux/security.h | 1 - > security/selinux/hooks.c | 2 +- > 2 files changed, 1 insertions(+), 2 deletions(-) > > diff --git a/include/linux/security.h b/include/linux/security.h > index f7d198a..de774f7 100644 > --- a/include/linux/security.h > +++ b/include/linux/security.h > @@ -91,7 +91,6 @@ struct seq_file; > extern int cap_netlink_send(struct sock *sk, struct sk_buff *skb); > extern int cap_netlink_recv(struct sk_buff *skb, int cap); > > -extern unsigned long mmap_min_addr; > /* > * Values used in the task_security_ops calls > */ > diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c > index e65677d..7bbac1d 100644 > --- a/security/selinux/hooks.c > +++ b/security/selinux/hooks.c > @@ -3034,7 +3034,7 @@ static int selinux_file_mmap(struct file *file, unsigned long reqprot, > int rc = 0; > u32 sid = current_sid(); > > - if (addr < mmap_min_addr) > + if (addr < PAGE_SIZE) > rc = avc_has_perm(sid, sid, SECCLASS_MEMPROTECT, > MEMPROTECT__MMAP_ZERO, NULL); > if (rc || addr_only)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 278573
: 198709