From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amos Kong Subject: Re: [PATCH] cgroup: fix device deny of DEV_ALL Date: Tue, 22 May 2012 10:23:11 +0800 Message-ID: <4FBAF88F.1040103@redhat.com> References: <20120518081912.16779.21065.stgit@t> <20120521140324.GA5091@sergelap> <4FBADF1A.6040303@huawei.com> <20120522015426.GA10344@mail.hallyn.com> <20120522020857.GA10499@mail.hallyn.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20120522020857.GA10499-7LNsyQBKDXoIagZqoN9o3w@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: "Serge E. Hallyn" Cc: Li Zefan , Serge Hallyn , containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, mtosatti-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On 22/05/12 10:08, Serge E. Hallyn wrote: > At line 135, there is > > if (walk->type == DEV_ALL) > goto remove; > > I wonder if that was meant to be 'if (wh->type == DEV_ALL)'. That > seems to fit better with what I would have meant to have happen. > But it's already handled by line 342. So I think deleting lines > 135-136 might be best. What do you think? Hi Serge, If we expect nothing changed ('a *:* rwm' doesn't change), delete 135-136 will be ok. But I have explained my patch in another email, I also think it's unnecessary to remove 'a *:* rwm' before executing: @ echo 'b 253:3 rw'> devices.deny -- Amos.