From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=113.46.200.222 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794315360; b=k5przkMykF/8nFpF1fGsR5ErrtGlx/KzLMAZbUQo3LVE7vlsVV2UjwzsiOVZqHxdEM9Q 1wPnRiOPHC1Ywbjpwc6DRVsn3cijoh8OOPC/iJhrjuzKxyf0jvQODd+jnCUWFYH1GHjgv 40bNlHQevONRrmh9HG3yqgW0LAxRkG4XhCOPl9gvNVWJr/cJtytC2qkGfHhaMwtdgidoT 8VDm2TVGwd6dRJpz9B88/cNuIIJoSrzmJ/6M+SqRBC1BhHP2JmIwbIf+ehzfVOcaWjeZ/ lt2xyRaWvOHfHXaifGPWRH+Ofq/7lU+nYueyc58dFnlMwnCm8gMIkjbLpCVKqmRGPRQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794315360; 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=whOPXAhmuyoqQssML4ZFu0H8T+s7JMuYpqdJcIs4gvs=; b=TXuSr37XDoDxmTXamFSY8v6LxLuXnW2jvIdUDHItYplzwYTYlVtXxhthz2KRt9MJkLO6 gaViG4ZfS3r4OHEbqsCD+deY7MTRCCKjozuViP1M0dqXiaam0Vat+epyawtLX7mZbC4xz 8SmrYJUFus1WlWzdlJLsUmleSMMrp9dtrTezyvm1EnDjhh3QEvlP5OH5f/MEewU+070vM PNCvEQTPhVZdsx2aGLgMO+kecqMoYkUPlY8qyGwkIloxMdtibOSfYMrSJJkmlDP4T1BNQ nqUnTFzJeO8RI5l4eFjaIahudX9BycX7dbhr0VE6dvl5FmAYravjkchWJD+bq+Klyjw== 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=K1ntj93S; arc=none smtp.remote-ip=113.46.200.222 Received: from canpmsgout07.his.huawei.com (canpmsgout07.his.huawei.com [113.46.200.222]) (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 F09C060A3823; Tue, 10 Nov 2026 12:55:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F09C060A3823 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=K1ntj93S dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=whOPXAhmuyoqQssML4ZFu0H8T+s7JMuYpqdJcIs4gvs=; b=K1ntj93SuOFBbZMZ5wjY2n/9aYDuGCFApbIcYDMOZsDHw3LP0cc6pA997a+7mSYvtkIuywbrH Qw/lBcnVa0Gy5QEDROFwj8AUvSKPZHUhka6xoXRMWtByD3RmtOy5L94dk0wAAYC9cf9aWQzVG01 bQPYB4LD2sXsqByX/wDj7Q8= Received: from mail.maildlp.com (unknown [172.19.162.92]) by canpmsgout07.his.huawei.com (SkyGuard) with ESMTPS id 4jP68D2dkHzLlVP; Tue, 10 Nov 2026 20:55:40 +0800 (CST) Received: from whupemk100010.china.huawei.com (unknown [7.152.184.41]) by mail.maildlp.com (Postfix) with ESMTPS id 0CE8240565; Tue, 10 Nov 2026 20:55:55 +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.45; Tue, 10 Nov 2026 20:55:53 +0800 From: Cai Xinchen To: , , , , , , , CC: , , , , Subject: [PATCH -next -v2 4/8] lsm: remove unused lockdown audit data Date: Tue, 10 Nov 2026 21:28:14 +0800 Message-ID: <20261110132818.2231593-5-caixinchen1@huawei.com> X-Mailer: git-send-email 2.18.0.huawei.25 In-Reply-To: <20261110132818.2231593-1-caixinchen1@huawei.com> References: <20261110132818.2231593-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: kwepems100001.china.huawei.com (7.221.188.238) 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. 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