Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 40A3EC433FE for ; Wed, 9 Feb 2022 05:56:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229975AbiBIFz0 (ORCPT ); Wed, 9 Feb 2022 00:55:26 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:33206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234930AbiBIFyU (ORCPT ); Wed, 9 Feb 2022 00:54:20 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D237C033254 for ; Tue, 8 Feb 2022 21:54:23 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 555B061662 for ; Wed, 9 Feb 2022 05:54:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F13B0C340E7; Wed, 9 Feb 2022 05:54:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1644386062; bh=1EDCIF4OCos9UX91ffAS2dbhuTnIEnpN9LlKoPs05IY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cdgyG1RK8k47mkd3QIANqN7Gie2Srdi3/4bTSlQ3zGVTCOgR8r/MbAtrYSQMA+abV OpMZ+hK2YOHOnNcjVvUJ5UQqxbWNAZPmCb8HfRdynUh1t3+4J1FGRmVnjijEKDVpMT hSppufrx2Nk6qOoLXtpLy0QFXjjpkEHn42e6V7ME= Date: Wed, 9 Feb 2022 06:54:19 +0100 From: Greg KH To: Michal =?iso-8859-1?Q?Koutn=FD?= Cc: stable@vger.kernel.org, Tabitha Sable , "Eric W. Biederman" , Tejun Heo Subject: Re: [PATCH] cgroup-v1: Require capabilities to set release_agent (backport to v4.12) Message-ID: References: <20220208182402.24674-1-mkoutny@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Wed, Feb 09, 2022 at 06:53:32AM +0100, Greg KH wrote: > On Tue, Feb 08, 2022 at 07:24:02PM +0100, Michal Koutný wrote: > > From: "Eric W. Biederman" > > > > The cgroup release_agent is called with call_usermodehelper. The function > > call_usermodehelper starts the release_agent with a full set fo capabilities. > > Therefore require capabilities when setting the release_agaent. > > > > [ Upstream commit 24f6008564183aa120d07c03d9289519c2fe02af ] > > > > Reported-by: Tabitha Sable > > Tested-by: Tabitha Sable > > Fixes: 81a6a5cdd2c5 ("Task Control Groups: automatic userspace notification of idle cgroups") > > Cc: stable@vger.kernel.org # v2.6.24+ > > Signed-off-by: "Eric W. Biederman" > > Signed-off-by: Tejun Heo > > [mkoutny: Adjust for pre-fs_context, duplicate mount/remount check, drop log messages.] > > Acked-by: Michal Koutný > > --- > > > > Hello, > > FWIW, I'm sharing v4.12 backport of the aforementioned patch (v4.12 is not > > actual stable but someone may find it useful). > > What about 4.19 and 4.14 versions? Those would be useful :) Ah, it looks like it works there, many thanks for this! greg k-h