[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20100512083929.GC21829@os.inf.tu-dresden.de>
Date: Wed, 12 May 2010 10:39:29 +0200
From: Adam Lackorzynski <adam@...inf.tu-dresden.de>
To: linux-kernel@...r.kernel.org
Subject: [PATCH] sysctl: Allow non-root to read mmap_min_addr value
Although /proc/sys/vm/mmap_min_addr has 644 permissions a read call returns
-EPERM. Allow any user to read the mmap_min_addr value.
Signed-off-by: Adam Lackorzynski <adam@...inf.tu-dresden.de>
---
security/min_addr.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/security/min_addr.c b/security/min_addr.c
index e86f297..f728728 100644
--- 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);
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists