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