[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4FBAF88F.1040103@redhat.com>
Date: Tue, 22 May 2012 10:23:11 +0800
From: Amos Kong <akong@...hat.com>
To: "Serge E. Hallyn" <serge@...lyn.com>
CC: Li Zefan <lizefan@...wei.com>,
Serge Hallyn <serge.hallyn@...onical.com>,
containers@...ts.linux-foundation.org, mtosatti@...hat.com,
linux-kernel@...r.kernel.org, tj@...nel.org,
cgroups@...r.kernel.org
Subject: Re: [PATCH] cgroup: fix device deny of DEV_ALL
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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists