From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=113.46.200.218 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796025490; b=O9NBNBXnr73dRIxT9L8YPPPPPQzKWjqPbpNeqZF1fxFmt/QtutZTSJ1iQ6J2mQqEIqq1 KmsVICwvQjZ4kGyEok9ZQMihwsWV99Xp7PA1t1xqVuB5xrcQsVvOrdbU07Uc4iZzH6Mck snLZlkv+ZMQtKpg2gbS9uSx2GrldNG2b/dr8OVde68/AVi3Aymi/4szYtip+fLINjD65B p82/fezDKbwTI5/FpHKFHzhzapIVHc8rSmov1WFrAaqSgHlG9C7jgxfo5R45ComDaWN2r HU6iJBuOgwz1uQ7u4VKgfvFkR3YZeFynvlRQOLTRemHsnYJeDxQxRornppkTxMt6c0Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796025490; h=DMARC-Filter:dkim-signature:Received:Received:Received:From:To:CC: Subject:Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Type:X-Originating-IP:X-ClientProxiedBy; bh=nSnxn//P7nkzD5YHGOka5Iko+cc4LxZ1KvLMxd0c8ag=; b=pZlikaZz7mEZT0P4pPEBcLffs/J/PFCptjVSmA/8Aow0BPfNx/BPSBQxN6+yP7lagevv m8yDs8HuPrEeVP4jM4qxPlfFhXdqMye2+OOFRC9M0wjoJZEcFN42GT81597+KC+Eoi2pP Zb75C8AVI/GfmsjnbE2G1B9F6PrkDlyT/lxaONa78hfvqnues/AXb50VBs63FZWtK4Hh2 dD9VzDxcRkmzu0atf+RpOJwZtA+x95cl/OqH0rjHB3j5voF5wv6OJ04yI9ZXAtZvsW/0q nebGTu343nkU23OFJaRyjr2G8jrLFw+AAgUVFE98rH/vdr4A2U4vklisWiI1R1WzOqg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; dkim=pass header.d=huawei.com header.i=@huawei.com header.a=rsa-sha256 header.s=dkim header.b=W72csL68; arc=none smtp.remote-ip=113.46.200.218 Received: from canpmsgout03.his.huawei.com (canpmsgout03.his.huawei.com [113.46.200.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 03C0F606A336; Mon, 30 Nov 2026 07:58:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 03C0F606A336 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.a=rsa-sha256 header.s=dkim header.b=W72csL68 dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=nSnxn//P7nkzD5YHGOka5Iko+cc4LxZ1KvLMxd0c8ag=; b=W72csL68OI+kGzYaC0jDk9FpdKy29GDOqhsYhngTP+gkQgCEKjC2u++AcDAmTqC4826p2FoR7 yEajjbwCg0MVgU/1htmNg/OVaXbRthRYunuSNkxqV/bH+zBuXooZYKj0+gxgcjkWc8GF62bNDBl 39G3JQ3GwSFk9CQPs1HuAmk= Received: from mail.maildlp.com (unknown [172.19.162.140]) by canpmsgout03.his.huawei.com (SkyGuard) with ESMTPS id 4jdGZC55ffzpTKW; Mon, 30 Nov 2026 15:56:51 +0800 (CST) Received: from whupemk100010.china.huawei.com (unknown [7.152.184.41]) by mail.maildlp.com (Postfix) with ESMTPS id CE662203AB; Mon, 30 Nov 2026 15:58:02 +0800 (CST) Received: from octopus.huawei.com (10.67.174.191) by whupemk100010.china.huawei.com (7.152.184.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.56; Mon, 30 Nov 2026 15:58:01 +0800 From: Cai Xinchen To: , , , , , , , , CC: , , , , Subject: [PATCH v4 4/8] lsm: remove unused lockdown audit data Date: Mon, 30 Nov 2026 16:29:10 +0800 Message-ID: <20261130082914.129495-5-caixinchen1@huawei.com> X-Mailer: git-send-email 2.18.0.huawei.25 In-Reply-To: <20261130082914.129495-1-caixinchen1@huawei.com> References: <20261130082914.129495-1-caixinchen1@huawei.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain X-ClientProxiedBy: kwepems500002.china.huawei.com (7.221.188.17) To whupemk100010.china.huawei.com (7.152.184.41) Commit f5d0e5e9d72d ("selinux: remove the SELinux lockdown implementation") removed the only producer of LSM_AUDIT_DATA_LOCKDOWN. The type, the u.reason union member and the audit formatting case are now dead, so drop them. Tested-by: Guicai Ma Reviewed-by: Nicolas Bouchinet Signed-off-by: Cai Xinchen --- include/linux/lsm_audit.h | 2 -- security/lsm_audit.c | 4 ---- 2 files changed, 6 deletions(-) diff --git a/include/linux/lsm_audit.h b/include/linux/lsm_audit.h index 5cf0b4795065..51b498c0ec74 100644 --- a/include/linux/lsm_audit.h +++ b/include/linux/lsm_audit.h @@ -74,7 +74,6 @@ struct common_audit_data { #define LSM_AUDIT_DATA_FILE 12 #define LSM_AUDIT_DATA_IBPKEY 13 #define LSM_AUDIT_DATA_IBENDPORT 14 -#define LSM_AUDIT_DATA_LOCKDOWN 15 #define LSM_AUDIT_DATA_NOTIFICATION 16 #define LSM_AUDIT_DATA_ANONINODE 17 #define LSM_AUDIT_DATA_NLMSGTYPE 18 @@ -98,7 +97,6 @@ struct common_audit_data { const struct file *file; struct lsm_ibpkey_audit *ibpkey; struct lsm_ibendport_audit *ibendport; - int reason; const char *anonclass; u16 nlmsg_type; struct { diff --git a/security/lsm_audit.c b/security/lsm_audit.c index 955b2e7b2c8e..4b653edcb77e 100644 --- a/security/lsm_audit.c +++ b/security/lsm_audit.c @@ -393,10 +393,6 @@ void audit_log_lsm_data(struct audit_buffer *ab, a->u.ibendport->dev_name, a->u.ibendport->port); break; - case LSM_AUDIT_DATA_LOCKDOWN: - audit_log_format(ab, " lockdown_reason=\"%s\"", - lockdown_reasons[a->u.reason]); - break; case LSM_AUDIT_DATA_ANONINODE: audit_log_format(ab, " anonclass=%s", a->u.anonclass); break; -- 2.18.0.huawei.25