Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp4136355rwe; Tue, 30 Aug 2022 05:22:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR4TqcIDngf8jxk/N2quStqpcxP+OqGHfATK8+XoPcewcv7bTlaZD9NdW6n8YIn7jb+3vu5T X-Received: by 2002:a63:914a:0:b0:42b:4eaf:7c75 with SMTP id l71-20020a63914a000000b0042b4eaf7c75mr17797958pge.306.1661862157567; Tue, 30 Aug 2022 05:22:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661862157; cv=none; d=google.com; s=arc-20160816; b=S0xqnRObUkOaTrYflT0D9r+3qbxTNNDOpYwovDcjFrPA4pVRStHUc36m/Wg5Bm7QkT D3QczGV1BMbMz3fFFp9q78hHlg2JpRxyDeS/H2nWgP2/aDHE+ZTR5M5tJ/8mO93G4E3K l3jz3NRBpySk/YHwp6UlPc3nZaJVpYQnjDzi5LyJfVTtxCYGJr6PIriVYHL4LPkZQI9y 6SFGr6MgSTXvCcJ6ThJeHY019oWlLO70zAlrIAEAtULhQL5cDPZ3BFfuk+fUutgMGw+o Ac3vr3EX6Jiintf4+DXp+joVgQ/e4+LsGENE2Qx2xaOuLRk6Di6pnnW7YNKZSTEoz2ms DMUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=gqpauVRUO1Pp3PLKsn4fw8VkVgXAqy3lGr1d4SqmXKY=; b=BRTjpGvtJlp5e5/j/BF3Qb3R05XLk6PK8qiiPy0TqxDYNbbaH6dbPNpOR6u8iesy+o SBbyBzNp3ZCWB2Xe9ttkqzdQnltIfZnx2SnOvne5cASeH2NWCjeRvU3vqf+xVWL46uWN 5PxgqHWESog7lrKSaDrc9k8eBpT7WlF1fVjiW3mmxyOm9kjtmcrVgWF89Q2+Crn15atx neQwrvzTzQLFeGG5wmxuP89JR0cbLEn+3LrUeQ/KDqp7frjQNcPzqstRJgnsbf9B+fnT E5cxL3RxbEnRnlorTuvHSE9tPY7Hs/XFxKajwAia5lFdWr+wiQ0WvFXXmYr8wLUtpmxO BlcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=H76gWaKN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o9-20020a17090a678900b001f335a72172si11345039pjj.62.2022.08.30.05.22.25; Tue, 30 Aug 2022 05:22:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=H76gWaKN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229866AbiH3LWg (ORCPT + 99 others); Tue, 30 Aug 2022 07:22:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229908AbiH3LWc (ORCPT ); Tue, 30 Aug 2022 07:22:32 -0400 Received: from smtp-42a9.mail.infomaniak.ch (smtp-42a9.mail.infomaniak.ch [IPv6:2001:1600:3:17::42a9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 558AEAD9AE for ; Tue, 30 Aug 2022 04:22:31 -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 4MH4fC4m5wzMqJT0; Tue, 30 Aug 2022 13:22:27 +0200 (CEST) Received: from ns3096276.ip-94-23-54.eu (unknown [23.97.221.149]) by smtp-3-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4MH4fB03k7zlh8TF; Tue, 30 Aug 2022 13:22:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=digikod.net; s=20191114; t=1661858547; bh=VRsf1Wd8Vv3G5MDmh8RBWHIdTuSCowSnujkVCmhBQK0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=H76gWaKNdSZh20vELtEQWYecxd3svm/aauuwqOvursL/QabjaoS5FSrQjVaS4SJe4 gDmoIRSszixQ4TmnhKb6c1SaTMC7UzjfJ4mBPQGttWye0kdSQOZE8bdHJktGHVJkMf KderlZWhS64b0y/GXMaPCt+IkVK27Zwf5oKXRKLU= Message-ID: <4142d01a-7362-0865-f199-7a49b2c1a5ea@digikod.net> Date: Tue, 30 Aug 2022 13:22:25 +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: Xiu Jianfeng , 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 References: <20220827111215.131442-1-xiujianfeng@huawei.com> From: =?UTF-8?Q?Micka=c3=abl_Sala=c3=bcn?= In-Reply-To: <20220827111215.131442-1-xiujianfeng@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Please add a description and include links to the previous versions. On 27/08/2022 13: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(-) >