From mboxrd@z Thu Jan 1 00:00:00 1970 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 BE97CC77B73 for ; Thu, 20 Apr 2023 17:49:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231128AbjDTRtj (ORCPT ); Thu, 20 Apr 2023 13:49:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229779AbjDTRti (ORCPT ); Thu, 20 Apr 2023 13:49:38 -0400 X-Greylist: delayed 523 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 20 Apr 2023 10:49:32 PDT Received: from smtp-bc09.mail.infomaniak.ch (smtp-bc09.mail.infomaniak.ch [IPv6:2001:1600:3:17::bc09]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD23226BF for ; Thu, 20 Apr 2023 10:49:32 -0700 (PDT) Received: from smtp-3-0001.mail.infomaniak.ch (unknown [10.4.36.108]) by smtp-2-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4Q2Q1C69WSzMqQVD; Thu, 20 Apr 2023 19:40:47 +0200 (CEST) Received: from unknown by smtp-3-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4Q2Q196HmLzMppF8; Thu, 20 Apr 2023 19:40:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=digikod.net; s=20191114; t=1682012447; bh=C42CG0yEhZ3//t6vNF4EAp/UK1VoZRlM/xbyZMTq9sw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Ww1/qKoHdAKBnghB3zJAndSHHtlhWFME+1v84JiiUfZsB7CaOOqVsLbd0uITMgTCt VvjQ/4XR7CHTonbqvGTXfTB8WETF74lCX0tx9l329juYD85bDx6iqcoL0DbZoes+0b o+4McyPqybIf2i8Shqgmo4gSkoEP6pUNjKaAPGJU= Message-ID: Date: Thu, 20 Apr 2023 19:40:44 +0200 MIME-Version: 1.0 User-Agent: Subject: Re: [PATCH -next v2 0/6] landlock: add chmod and chown support Content-Language: en-US To: xiujianfeng , paul@paul-moore.com, jmorris@namei.org, serge@hallyn.com, shuah@kernel.org, corbet@lwn.net Cc: linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-doc@vger.kernel.org, roberto.sassu@huawei.com, Konstantin Meskhidze References: <20220827111215.131442-1-xiujianfeng@huawei.com> From: =?UTF-8?Q?Micka=c3=abl_Sala=c3=bcn?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Infomaniak-Routing: alpha Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org On 18/04/2023 12:53, xiujianfeng wrote: > Hi Mickael, > > Sorry about the long silence on this work, As we known this work depends > on another work about changing argument from struct dentry to struct > path for some attr/xattr related lsm hooks, I'm stuck with this thing, > because IMA/EVM is a special security module which is not LSM-based > currently, and severely coupled with the file system. so I am waiting > for Roberto Sassu' work (Move IMA and EVM to the LSM infrastructure) to > be ready, I think it can make my work more easy. you can find > Roberto'work here, > https://lwn.net/ml/linux-kernel/20230303181842.1087717-1-roberto.sassu@huaweicloud.com/ > > Any good idea are welcome, thanks. Thanks for the update Xiu. Which part would be needed from Roberto's patch series? > > > On 2022/8/27 19:12, Xiu Jianfeng wrote: >> v2: >> * abstract walk_to_visible_parent() helper >> * chmod and chown rights only take affect on directory's context >> * add testcase for fchmodat/lchown/fchownat >> * fix other review issues >> >> Xiu Jianfeng (6): >> landlock: expand access_mask_t to u32 type >> landlock: abstract walk_to_visible_parent() helper >> landlock: add chmod and chown support >> landlock/selftests: add selftests for chmod and chown >> landlock/samples: add chmod and chown support >> landlock: update chmod and chown support in document >> >> Documentation/userspace-api/landlock.rst | 9 +- >> include/uapi/linux/landlock.h | 10 +- >> samples/landlock/sandboxer.c | 13 +- >> security/landlock/fs.c | 110 ++++++-- >> security/landlock/limits.h | 2 +- >> security/landlock/ruleset.h | 2 +- >> security/landlock/syscalls.c | 2 +- >> tools/testing/selftests/landlock/base_test.c | 2 +- >> tools/testing/selftests/landlock/fs_test.c | 267 ++++++++++++++++++- >> 9 files changed, 386 insertions(+), 31 deletions(-) >>