Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2665604rdb; Mon, 4 Dec 2023 04:22:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IGoZ9LI8eT2192yE7en1QYqe1bXYTozoQmGBLodE+hCmlsl5vptQ/6ksVg7Q/lI8cfwTbac X-Received: by 2002:a17:903:1c5:b0:1d0:6ffd:adf7 with SMTP id e5-20020a17090301c500b001d06ffdadf7mr1495611plh.94.1701692548532; Mon, 04 Dec 2023 04:22:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701692548; cv=none; d=google.com; s=arc-20160816; b=x/wfRFUxGhZBDryo6OFQ0sZzQnUjChWiphah9womU1feoUYh4VRySFnV5rZxZJOuEU H8+W1siVyg0XvGHzcNlY9o51OdrLlZeYzMIt+QtvWNDjuFdsjtzNzfF091gJojH9QP26 imkrUFKCwlGbbrDrNb9gD5E6ysUkMOzfmTzNYvKp2VeToa0S9jPldzsByktruF0EGjIb X7nCf/Iv5MqLbIA9G/b39XaX7/r76lhcJd1sbKgFDfZNVUlKAq225vGdXInEvNh88pQZ 7ef/sDMbkgdS/WAMreISykq7WzF356e2p4qM+42v4HiOabE1UwavzHYsY4h0ISeUTgh/ yqRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=djPQ0CqeCjRVtQwpO6+sHv2aOoYvrT53ePTiYnziI4w=; fh=6riYzEjMeyUIYTrN9F5lwakX+JkiUcBHm1zr2D/K9Rw=; b=cCK+oxRppNJ5JOkJ1fdFADeWcs6nh6R9HJDwR45hnGDvjucektmd4yatFzXoqpdAr7 yMKtmzMNIP+znTqW1VJqM6T8Z1rQJ50PrwJRkYZYnu7hxzY2an40DziGvQxrEX0iXf0Y vNi2G4YiouNxWkbeWmu0au53hllsoVj8VHHmOR5wcnyTy9eWbC9Palxd+Av4Wzq+Y1JN BG441zFXsCbUtTh148Ax/YyWyJWysg3mzna5BVV/PWTCqNBz2RoXL/7ECxFBmDA6teDp /lkTIOFzWUa7e3nqOtDh376uoej5NJn/6gzJ9YW1gcan0RWqNEn5cc13jSwSkSAFSL81 al2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JhjQhDYi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id e3-20020a170902ed8300b001d098c03fe9si1903414plj.361.2023.12.04.04.22.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:22:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JhjQhDYi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id E77A380B90BB; Mon, 4 Dec 2023 04:22:25 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232939AbjLDMWN (ORCPT + 99 others); Mon, 4 Dec 2023 07:22:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229532AbjLDMWM (ORCPT ); Mon, 4 Dec 2023 07:22:12 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA402FF for ; Mon, 4 Dec 2023 04:22:18 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 282F2C433C7; Mon, 4 Dec 2023 12:22:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1701692538; bh=pzjF4BiZqDIILVuK6wtq+QRLEZJMUkFd/A1HbQe9doo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JhjQhDYiq+QfWkSXH7X+Aw3zPQoZ31scwTt/oRP2n9WLBgi7hpxU0qfZ6Jp+K1yUB CgK0nP2oZDFco3kXqGYjDjMkAgwPp+hNOBsuyRTusUnygF0uJf/n2lG1CLGQHcpAOo nzqAeXF+t8eIYDDdg9zsESqeyWQm7JyDjqfn8HGk= Date: Mon, 4 Dec 2023 08:20:59 +0100 From: Greg Kroah-Hartman To: Max Kellermann Cc: Tejun Heo , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] fs/kernfs/dir: obey S_ISGID Message-ID: <2023120424-siren-catlike-eb00@gregkh> References: <20231201125638.1699026-1-max.kellermann@ionos.com> <20231201125638.1699026-2-max.kellermann@ionos.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231201125638.1699026-2-max.kellermann@ionos.com> X-Spam-Status: No, score=0.2 required=5.0 tests=DATE_IN_PAST_03_06, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 04 Dec 2023 04:22:26 -0800 (PST) On Fri, Dec 01, 2023 at 01:56:38PM +0100, Max Kellermann wrote: > Handling of S_ISGID is usually done by inode_init_owner() in all other > filesystems, but kernfs doesn't use that function. In kernfs, struct > kernfs_node is the primary data structure, and struct inode is only > created from it on demand. Therefore, inode_init_owner() can't be > used and we need to imitate its behavior. > > S_ISGID support is useful for the cgroup filesystem; it allows > subtrees managed by an unprivileged process to retain a certain owner > gid, which then enables sharing access to the subtree with another > unprivileged process. > > Signed-off-by: Max Kellermann > --- > fs/kernfs/dir.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) I only see patch 2/2 here, what happened to patch 1/2? Please send them as a full series, otherwise I don't know what to do with just this one. thanks, greg k-h