Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2249631rwa; Mon, 22 Aug 2022 04:57:43 -0700 (PDT) X-Google-Smtp-Source: AA6agR45Aj1JKw0gfnS0NhjaSO7HVtqFARMOccE8UxrIUvBm42rmCCLHQmQpOxKwJqUGPYfg0MvV X-Received: by 2002:a17:906:5d08:b0:734:bf6a:6309 with SMTP id g8-20020a1709065d0800b00734bf6a6309mr12362199ejt.516.1661169463334; Mon, 22 Aug 2022 04:57:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661169463; cv=none; d=google.com; s=arc-20160816; b=W/vtAWTEYvNvWJ4K6tebqRp0rRotPf7D4BW8sYSQIDY4V9jIIvYLWNQ/jJh2WTbnUR DEzu70CBBkq9O2dFyaDqgAlbJkMFKFlFBq/i3l7xTUndMacb6wnFoGKOH+hk13uhDGFD NJUMtxg7eOJiFqBWxqsnqZ9kiYigA6bEUFwg0WChGU7zuOyvDEbyIxJv4tPnDae3kGaD xdqYdpSY4mMFXe55GV/pOYX8Jz0uJv2aLe1GUThPTZCbxXnCwA5fw0wucnTuAlHZoGji kNNur3AYZJbrMvAOvUUhjKbF5E/69G9ShkxpImECbVOaxRiSXsFgXFBeEWRjrMd96RI3 C9ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=IKvQZhUIPx2jMI2YmDtWmJvGkoNXz7PrCMHWIF4vdHw=; b=N4I8mpZS/OikpkVt3xjH0B3fPpSVYb5cxU9f2pdUWjSK2P6ZFCJIbbvuVVyDI+u5wX NZI7BJYgNsh3mENcqoikkisWRITDHUL7BSXKle0SCxr6hNZB015PPehY3avyqy95jl6n 1HIePZPTd0ndJvc99jsOPPg+PX35o1qi/fRIfjj/WbJTGqOvE/NiaA9GaajgwXef3ETz O6/i6L2QQaSQ5gCE0oV9hBfn8xI7RDRXiOpas3pafsSTGWLlO2ZZUa61Td7ywBUGFR1V il7ZEDEx/F38MJiR7v9FM2I3x7nZcXENl1WdVzKzZdwuNpq20o1jfOF4ecicdpsaQmd5 hYMA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y20-20020a50e614000000b0043bfc5f6a21si8679011edm.260.2022.08.22.04.57.17; Mon, 22 Aug 2022 04:57:43 -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; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234156AbiHVLvn (ORCPT + 99 others); Mon, 22 Aug 2022 07:51:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234858AbiHVLuO (ORCPT ); Mon, 22 Aug 2022 07:50:14 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FBA01145B; Mon, 22 Aug 2022 04:50:12 -0700 (PDT) Received: from dggpeml500023.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MB9Yv2LcjzkWgq; Mon, 22 Aug 2022 19:46:43 +0800 (CST) Received: from ubuntu1804.huawei.com (10.67.174.58) by dggpeml500023.china.huawei.com (7.185.36.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Mon, 22 Aug 2022 19:50:11 +0800 From: Xiu Jianfeng To: , , , , , CC: , , , Subject: [PATCH -next 0/5] landlock: add chmod and chown support Date: Mon, 22 Aug 2022 19:46:56 +0800 Message-ID: <20220822114701.26975-1-xiujianfeng@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.174.58] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpeml500023.china.huawei.com (7.185.36.114) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 hi, this patchset adds chmod and chown support for landlock Xiu Jianfeng (5): landlock: expand access_mask_t to u32 type 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 | 8 +- include/uapi/linux/landlock.h | 8 +- samples/landlock/sandboxer.c | 12 +- security/landlock/fs.c | 16 +- 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 | 234 ++++++++++++++++++- 9 files changed, 274 insertions(+), 12 deletions(-) -- 2.17.1