Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2308055rwa; Mon, 22 Aug 2022 05:51:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR7WrlI/tVv5k0cVY7RP4ylWnCEnwzirt9peywfC2aEXk3IztkItDVHOngYNFb0QoDdmVp0i X-Received: by 2002:a05:6402:3714:b0:445:d91b:b0aa with SMTP id ek20-20020a056402371400b00445d91bb0aamr15490623edb.313.1661172681647; Mon, 22 Aug 2022 05:51:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661172681; cv=none; d=google.com; s=arc-20160816; b=khFYAD1axn/XCENrQ4XdoXhfXvfmMjy7+JqFIFjwNeC+GfHkLK/aA+9KeqMbcRrIdk BHgxNik9ILiIq9/EuSV8xaL4wj/9UeqOFEtRnkU/aWwB1uNLmrEJ6KrC1AtF4q54N971 IA9GF/n6ppWYtNbsDnCVhPVIHny9j15LS/KqXIdWLr4DmVUegXEt8bnyFs4hZ24Wvu3s TngJht//a7rVUNIBaNvctMQCdDAGHV4zjGXbhjZVsM3PlaMKSxMy5bON0vs/5c35ZYUP Nk9g9rd7z/5oR7NFPfx790ZY0v3rUnWHAS3wh3hTHXFVLZc7TTJpmrEXDGoLcip866Fd UQWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=8jDDk7ND6O0UJhiAmXcYq6frmzKQzWRYSBCGBU5S8wI=; b=HcAP3TrrEw0optsu4IfIBccxtPwqCrg4EC8dNE/jIdPgVVLxHkeHEyEgMwICW55gXW bUlNjLyn1TzMAAvUIj2T7V5FumNhQJ7qstj39Ka18k15A6WxR3KYFN/QuDVI6aknQhgA CYVPNfTxXCGTOXUPux+9fcQed6DNu7tyht3p8A9pwrhHqs0p3Cimtt7cP+bvtGIrfm3W U0bahrX589Li8Uu172cEHEjzcNv4A0LUDTJ39yDEddg+vv+BeDgOzYUSl02hrnWJ9kau BjRn1vPALYy9hsjwV0+owN1bTIvKh8J2r37lfDIG/nppmGiur8AM1OD84T+bh4U/Dfzc aGIQ== 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 gj20-20020a170907741400b007305f8cc1d8si6567534ejc.819.2022.08.22.05.50.55; Mon, 22 Aug 2022 05:51:21 -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 S232613AbiHVLvi (ORCPT + 99 others); Mon, 22 Aug 2022 07:51:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234860AbiHVLuP (ORCPT ); Mon, 22 Aug 2022 07:50:15 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBB5C1408A; Mon, 22 Aug 2022 04:50:13 -0700 (PDT) Received: from dggpeml500023.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MB9ZD4818zlWK1; Mon, 22 Aug 2022 19:47:00 +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 1/5] landlock: expand access_mask_t to u32 type Date: Mon, 22 Aug 2022 19:46:57 +0800 Message-ID: <20220822114701.26975-2-xiujianfeng@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220822114701.26975-1-xiujianfeng@huawei.com> References: <20220822114701.26975-1-xiujianfeng@huawei.com> 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 u16 is not enough to add more types of restritions, so expand it to u32 Signed-off-by: Xiu Jianfeng --- security/landlock/ruleset.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/landlock/ruleset.h b/security/landlock/ruleset.h index d43231b783e4..607b3dc0ef19 100644 --- a/security/landlock/ruleset.h +++ b/security/landlock/ruleset.h @@ -19,7 +19,7 @@ #include "limits.h" #include "object.h" -typedef u16 access_mask_t; +typedef u32 access_mask_t; /* Makes sure all filesystem access rights can be stored. */ static_assert(BITS_PER_TYPE(access_mask_t) >= LANDLOCK_NUM_ACCESS_FS); /* Makes sure for_each_set_bit() and for_each_clear_bit() calls are OK. */ -- 2.17.1