Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752589AbZCBNHI (ORCPT ); Mon, 2 Mar 2009 08:07:08 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751234AbZCBNG4 (ORCPT ); Mon, 2 Mar 2009 08:06:56 -0500 Received: from e38.co.us.ibm.com ([32.97.110.159]:59833 "EHLO e38.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751004AbZCBNG4 (ORCPT ); Mon, 2 Mar 2009 08:06:56 -0500 Date: Mon, 2 Mar 2009 07:06:52 -0600 From: "Serge E. Hallyn" To: Li Zefan Cc: Andrew Morton , Paul Menage , KAMEZAWA Hiroyuki , LKML , Linux Containers Subject: Re: [PATCH 3/4] devcgroup: show correct file mode Message-ID: <20090302130652.GA6628@us.ibm.com> References: <49AB40BF.4030706@cn.fujitsu.com> <49AB4143.9050704@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49AB4143.9050704@cn.fujitsu.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1250 Lines: 46 Quoting Li Zefan (lizf@cn.fujitsu.com): > devices.allow and devices.deny are write-only, and devices.list is read-only. > > Signed-off-by: Li Zefan Yup that should be intuitive for people. Acked-by: Serge Hallyn thanks, -serge > --- > security/device_cgroup.c | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/security/device_cgroup.c b/security/device_cgroup.c > index 3aacd0f..b13fbb8 100644 > --- a/security/device_cgroup.c > +++ b/security/device_cgroup.c > @@ -439,16 +439,19 @@ static struct cftype dev_cgroup_files[] = { > .name = "allow", > .write_string = devcgroup_access_write, > .private = DEVCG_ALLOW, > + .mode = 0200, > }, > { > .name = "deny", > .write_string = devcgroup_access_write, > .private = DEVCG_DENY, > + .mode = 0200, > }, > { > .name = "list", > .read_seq_string = devcgroup_seq_read, > .private = DEVCG_LIST, > + .mode = 0444, > }, > }; > > -- 1.5.4.rc3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/