projects
/
linux-flexiantxendom0-natty.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
UBUNTU: Ubuntu-2.6.38-12.51
[linux-flexiantxendom0-natty.git]
/
security
/
min_addr.c
diff --git
a/security/min_addr.c
b/security/min_addr.c
index
e86f297
..
f728728
100644
(file)
--- a/
security/min_addr.c
+++ b/
security/min_addr.c
@@
-33,7
+33,7
@@
int mmap_min_addr_handler(struct ctl_table *table, int write,
{
int ret;
- if (!capable(CAP_SYS_RAWIO))
+ if (write && !capable(CAP_SYS_RAWIO))
return -EPERM;
ret = proc_doulongvec_minmax(table, write, buffer, lenp, ppos);