From: Tejun Heo Subject: Re: [PATCH] device_cgroup: rework device access check and exception checking Date: Mon, 21 Apr 2014 18:32:53 -0400 Message-ID: <20140421223253.GB22730@htj.dyndns.org> References: <20140421161303.GG29214@redhat.com> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=67k72G5cu/jCWOde0ADZo19e+9yxdCU/Mn+98htkSDg=; b=Qg9T9ZhgMdCWbb373nJU8sWQdCdTvYQIYnBBl8czaXJdJTlu+TVpnYWE/RJaLZpKIy DGFFSvwrLTv6wCI6r5uWlsuO8VNeNhW+XaY1zm3kOfYucnDipRmHoVSyJ6vrM6hcIo+e tX9WnUalKlAtziwBV6cNxzXB2Y3KkTBYqilTfiL5fg0oGnSTqve3EnPYWIvix2bltUxI lNafpvlrwA6F/ojLRpXaZRMKHpK04lue6dvmnJ5qQx+5Ty8sp34/iJgRTG8DVMPcCLBp Png7k0msUAmIU0Q7vVzQviLdWgkkiBw5lBuv0ucTEREZS6e8GxGVLd91J5klCGYHkpxA hhww== Content-Disposition: inline In-Reply-To: <20140421161303.GG29214-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Aristeu Rozanski Cc: cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Serge Hallyn , Li Zefan , stable-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Mon, Apr 21, 2014 at 12:13:03PM -0400, Aristeu Rozanski wrote: > Whenever a device file is opened and checked against current device > cgroup rules, it uses the same function (may_access()) as when a new > exception rule is added by writing devices.{allow,deny}. And in both > cases, the algorithm is the same, doesn't matter the behavior. ... > Cc: cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > Cc: Tejun Heo > Cc: Serge Hallyn > Cc: Li Zefan > Cc: stable-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > Signed-off-by: Aristeu Rozanski Applied to cgroup/for-3.15-fixes. A nit: Can you please prepare a separate patch to reformat the function comments. The usual style is single line at the top for the function name and brief description. The actual description should come after the param list. Thanks. -- tejun