Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp2751300rwb; Mon, 7 Aug 2023 02:56:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGJxXb6vXyQALHdBhskZ1wxjxcfXbVoJvagiCMgzrZHgPuY68hO5ejyyfc9b9puO0IJu1EA X-Received: by 2002:a17:907:2c75:b0:99c:331:4194 with SMTP id ib21-20020a1709072c7500b0099c03314194mr6833453ejc.45.1691402210667; Mon, 07 Aug 2023 02:56:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691402210; cv=none; d=google.com; s=arc-20160816; b=mF5XCuEJcKoXTIekFCoQd4mNXhipLaQEegg0umXtDyo9u8x7czC1EwAMW6zo21G6/s aKqLV40/p0Hajs5TunBZ1oDZvYZhOdsDiKOUvGwCD7RMNqee/vozhwlcJtH7Eo7OzM3D uF3ApeAx5sM7OUFL5acVRKdkacVBaH0JLjB7bFM4o2kIn5UWqmj7f+SATvm6kTJRHrDv HTuURmneCBS7Aef1PVsOwalQ+xZ7XElFW4zX6aT/UyEkdWC7cEzl4cmtP9I7f+oDawwB 4FHzRUvI5DxpKvh/S2ZWfVJ+xOP/gMXTd+cGlSz2R5ajxT0TRgf/wtKCgGlXYl+9I8qD rAmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=loav0Wd9cKIqpPte0oZl1gCGLJatE3xX2FXMpdFU1mA=; fh=qS69LMAhd/M02z00gwBoEeknvS0gDaBg37jKNfjBJbA=; b=YR7bXBxomJxSuSWwmKVtCgyR1o14JieBdy1HqmeBcsUOdAPCmol83Nhyf0GHzSQRd4 F9AxL3K4zN0lFBBRYvZHYMzaK+qJtAbRGwl3avY3BCfMPyZgZqabpLmvlbVjlojf0f8G ZqvurvoEsfGr6qy5Ta4z7Z4xyjgXiP2tc34WejaLUDQSTR3Bm3qx1TOvcaPjBjrTfT6d bm9+dJzzNTU+k7lbxnUa1eHAitWrPeyHOe2zMMUdJ2IjJoxfRRx9/uqaorYURWZHQtpj mOU9gUqgrI7ftCN3dT5r4m7pjWOzu1FWMWmrw4Kg0n1W+Z5UjXh4UMavaqqTkB0wocZB J8nw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jr9-20020a170906a98900b0099bdfd4cc50si5915933ejb.830.2023.08.07.02.56.25; Mon, 07 Aug 2023 02:56:50 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231587AbjHGJek (ORCPT + 99 others); Mon, 7 Aug 2023 05:34:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjHGJei (ORCPT ); Mon, 7 Aug 2023 05:34:38 -0400 Received: from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A1D610C0; Mon, 7 Aug 2023 02:34:37 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4RKB3p0Gtqz4f3q30; Mon, 7 Aug 2023 17:34:30 +0800 (CST) Received: from ubuntu20.huawei.com (unknown [10.67.174.33]) by APP2 (Coremail) with SMTP id Syh0CgCnyGyfutBkuLyOAA--.13731S2; Mon, 07 Aug 2023 17:34:30 +0800 (CST) From: "GONG, Ruiqi" To: John Johansen , Paul Moore , James Morris , "Serge E . Hallyn" Cc: apparmor@lists.ubuntu.com, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Xiu Jianfeng , Wang Weiyang , gongruiqi@huaweicloud.com Subject: [PATCH] apparmor: remove unused PROF_* macros Date: Mon, 7 Aug 2023 17:39:04 +0800 Message-Id: <20230807093904.565766-1-gongruiqi@huaweicloud.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: Syh0CgCnyGyfutBkuLyOAA--.13731S2 X-Coremail-Antispam: 1UD129KBjvdXoW7XF4UuF17GFy3Cw4UJF13urg_yoWfZrb_C3 Wj9w1xurs3ZF1fXa40va48uF97u3y8JFZ09a4Fqr9rAryDKw4rWa4jyryxWrW3uws7GrWU CFyfKrW5AF1xWjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbxxFF20E14v26r4j6ryUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_Ar0_tr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr1j 6F4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwVC2z280aVCY1x0267AKxVW0oV Cq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0 I7IYx2IY67AKxVWUGVWUXwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r 4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwACI402YVCY1x02628v n2kIc2xKxwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F4 0E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jw0_GFyl IxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxV AFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6rW3Jr0E3s1lIxAIcVC2z280aVAFwI0_ Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjfUF9 a9DUUUU X-CM-SenderInfo: pjrqw2pxltxq5kxd4v5lfo033gof0z/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE 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 From: "GONG, Ruiqi" The last usage of PROF_{ADD,REPLACE} were removed by commit 18e99f191a8e ("apparmor: provide finer control over policy management"). So remove these two unused macros. Signed-off-by: GONG, Ruiqi --- security/apparmor/include/policy.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/security/apparmor/include/policy.h b/security/apparmor/include/policy.h index 545f791cabda..ed9a8669af80 100644 --- a/security/apparmor/include/policy.h +++ b/security/apparmor/include/policy.h @@ -254,9 +254,6 @@ ssize_t aa_remove_profiles(struct aa_ns *view, struct aa_label *label, char *name, size_t size); void __aa_profile_list_release(struct list_head *head); -#define PROF_ADD 1 -#define PROF_REPLACE 0 - #define profile_unconfined(X) ((X)->mode == APPARMOR_UNCONFINED) /** -- 2.25.1