From: Li Zefan <lizf-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
To: Li Zefan <lizf-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
Cc: Linux Containers
<containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>,
Andrew Morton
<akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>,
Paul Menage <menage-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>,
LKML <linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: [PATCH 1/4] cgroup debug: show correct file mode
Date: Mon, 02 Mar 2009 10:13:50 +0800 [thread overview]
Message-ID: <49AB40DE.4090704@cn.fujitsu.com> (raw)
In-Reply-To: <49AB40BF.4030706-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
All control files in debug subsystem are read-only.
Signed-off-by: Li Zefan <lizf-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
---
kernel/cgroup_debug.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/kernel/cgroup_debug.c b/kernel/cgroup_debug.c
index daca620..2ba54c6 100644
--- a/kernel/cgroup_debug.c
+++ b/kernel/cgroup_debug.c
@@ -71,25 +71,30 @@ static struct cftype files[] = {
{
.name = "cgroup_refcount",
.read_u64 = cgroup_refcount_read,
+ .mode = 0444,
},
{
.name = "taskcount",
.read_u64 = taskcount_read,
+ .mode = 0444,
},
{
.name = "current_css_set",
.read_u64 = current_css_set_read,
+ .mode = 0444,
},
{
.name = "current_css_set_refcount",
.read_u64 = current_css_set_refcount_read,
+ .mode = 0444,
},
{
.name = "releasable",
.read_u64 = releasable_read,
+ .mode = 0444,
},
};
-- 1.5.4.rc3
WARNING: multiple messages have this Message-ID (diff)
From: Li Zefan <lizf@cn.fujitsu.com>
To: Li Zefan <lizf@cn.fujitsu.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Paul Menage <menage@google.com>,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
LKML <linux-kernel@vger.kernel.org>,
Linux Containers <containers@lists.linux-foundation.org>
Subject: [PATCH 1/4] cgroup debug: show correct file mode
Date: Mon, 02 Mar 2009 10:13:50 +0800 [thread overview]
Message-ID: <49AB40DE.4090704@cn.fujitsu.com> (raw)
In-Reply-To: <49AB40BF.4030706@cn.fujitsu.com>
All control files in debug subsystem are read-only.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
---
kernel/cgroup_debug.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/kernel/cgroup_debug.c b/kernel/cgroup_debug.c
index daca620..2ba54c6 100644
--- a/kernel/cgroup_debug.c
+++ b/kernel/cgroup_debug.c
@@ -71,25 +71,30 @@ static struct cftype files[] = {
{
.name = "cgroup_refcount",
.read_u64 = cgroup_refcount_read,
+ .mode = 0444,
},
{
.name = "taskcount",
.read_u64 = taskcount_read,
+ .mode = 0444,
},
{
.name = "current_css_set",
.read_u64 = current_css_set_read,
+ .mode = 0444,
},
{
.name = "current_css_set_refcount",
.read_u64 = current_css_set_refcount_read,
+ .mode = 0444,
},
{
.name = "releasable",
.read_u64 = releasable_read,
+ .mode = 0444,
},
};
-- 1.5.4.rc3
next prev parent reply other threads:[~2009-03-02 2:13 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-02 2:13 [PATCH 0/4] cgroups: show correct file mode Li Zefan
[not found] ` <49AB40BF.4030706-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2009-03-02 2:13 ` Li Zefan [this message]
2009-03-02 2:13 ` [PATCH 1/4] cgroup debug: " Li Zefan
2009-03-02 2:14 ` [PATCH 2/4] cpuacct: " Li Zefan
2009-03-02 2:14 ` Li Zefan
2009-03-02 2:15 ` [PATCH 3/4] devcgroup: " Li Zefan
2009-03-02 2:16 ` [PATCH 4/4] cpuset: " Li Zefan
2009-03-02 18:19 ` [PATCH 0/4] cgroups: " Paul Menage
2009-03-02 2:15 ` [PATCH 3/4] devcgroup: " Li Zefan
2009-03-02 13:06 ` Serge E. Hallyn
[not found] ` <49AB4143.9050704-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2009-03-02 13:06 ` Serge E. Hallyn
2009-03-02 2:16 ` [PATCH 4/4] cpuset: " Li Zefan
2009-03-02 18:19 ` [PATCH 0/4] cgroups: " Paul Menage
[not found] ` <6599ad830903021019p3b29c173oc7772af6679d90e0-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-03-03 0:09 ` KAMEZAWA Hiroyuki
2009-03-03 1:08 ` Li Zefan
2009-03-03 1:08 ` Li Zefan
2009-03-03 1:08 ` KAMEZAWA Hiroyuki
2009-03-03 1:15 ` Li Zefan
2009-03-03 1:19 ` KAMEZAWA Hiroyuki
[not found] ` <49AC84BE.5020501-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2009-03-03 1:19 ` KAMEZAWA Hiroyuki
[not found] ` <20090303100827.43d82c3a.kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2009-03-03 1:15 ` Li Zefan
[not found] ` <49AC8307.7090008-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2009-03-03 1:08 ` KAMEZAWA Hiroyuki
2009-03-03 1:16 ` Paul Menage
2009-03-03 1:16 ` Paul Menage
2009-03-03 0:09 ` KAMEZAWA Hiroyuki
2009-03-03 0:15 ` Paul Menage
[not found] ` <6599ad830903021615j6e1380e2l1544b67b187c1f5e-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-03-03 0:20 ` KAMEZAWA Hiroyuki
2009-03-03 0:20 ` KAMEZAWA Hiroyuki
[not found] ` <20090303092021.93e69b96.kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2009-03-03 0:23 ` Paul Menage
2009-03-03 0:23 ` Mike Waychison
2009-03-03 0:23 ` Paul Menage
2009-03-03 0:23 ` Mike Waychison
[not found] ` <49AC789D.5050209-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2009-03-03 0:26 ` Paul Menage
2009-03-03 0:26 ` Paul Menage
[not found] ` <20090303090950.60cea53a.kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2009-03-03 0:15 ` Paul Menage
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49AB40DE.4090704@cn.fujitsu.com \
--to=lizf-bthxqxjhjhxqfuhtdcdx3a@public.gmane.org \
--cc=akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org \
--cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=menage-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.