[PATCH 2/4] cpuacct: show correct file mode

Li Zefan lizf at cn.fujitsu.com
Sun Mar 1 18:14:48 PST 2009


cpuacct.usage_percpu is read-only.

Signed-off-by: Li Zefan <lizf at cn.fujitsu.com>
---
 kernel/sched.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/kernel/sched.c b/kernel/sched.c
index e66f009..638aa4d 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -9734,6 +9734,7 @@ static struct cftype files[] = {
 	{
 		.name = "usage_percpu",
 		.read_seq_string = cpuacct_percpu_seq_read,
+		.mode = 0444,
 	},
 
 };
-- 1.5.4.rc3 


More information about the Containers mailing list