* [PATCH] sysctl: vm.drop_caches should be writable only
@ 2008-03-19 11:19 Denis Cheng
0 siblings, 0 replies; only message in thread
From: Denis Cheng @ 2008-03-19 11:19 UTC (permalink / raw)
To: Ingo Molnar, Linus Torvalds; +Cc: Dave Jones, linux-kernel
This file's functionality is to tell the system to do a cache reclaiming,
the possible value to write to it is only 1, 2 or 3, reading from it will
get the last value written to it, that's meaingless.
Signed-off-by: Denis Cheng <crquan@gmail.com>
---
Reference to 7e3e0360, which also changed some sysctl value from 0644 to 0200.
kernel/sysctl.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index b2a2d68..f50926a 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -980,7 +980,7 @@ static struct ctl_table vm_table[] = {
.procname = "drop_caches",
.data = &sysctl_drop_caches,
.maxlen = sizeof(int),
- .mode = 0644,
+ .mode = 0200,
.proc_handler = drop_caches_sysctl_handler,
.strategy = &sysctl_intvec,
},
--
1.5.4.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-03-19 21:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-19 11:19 [PATCH] sysctl: vm.drop_caches should be writable only Denis Cheng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®