LSM Audit: rename LSM_AUDIT_NO_AUDIT to LSM_AUDIT_DATA_NONE
Subsystems (2)
PATCH 1/1 LSM Audit: rename LSM_AUDIT_NO_AUDIT to LSM_AUDIT_DATA_NONE
Most of the LSM common audit work uses LSM_AUDIT_DATA_* for the naming. This was not so for LSM_AUDIT_NO_AUDIT which means the generic initializer cannot be used. This patch just renames the flag so the generic initializer can be used.
---
include/linux/lsm_audit.h | 2 +- security/lsm_audit.c | 2 +- security/selinux/avc.c | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-)
include/linux/lsm_audit.h +1 -1
@@ -33,7 +33,7 @@ struct common_audit_data {#define LSM_AUDIT_DATA_IPC 4#define LSM_AUDIT_DATA_TASK 5#define LSM_AUDIT_DATA_KEY 6 -#define LSM_AUDIT_NO_AUDIT 7 +#define LSM_AUDIT_DATA_NONE 7#define LSM_AUDIT_DATA_KMOD 8struct task_struct *tsk;union {
security/lsm_audit.c +1 -1
@@ -221,7 +221,7 @@ static void dump_common_audit_data(struct audit_buffer *ab, }switch (a->type) { -case LSM_AUDIT_NO_AUDIT : +case LSM_AUDIT_DATA_NONE :return ;case LSM_AUDIT_DATA_IPC :audit_log_format (ab," key=%d " , a->u.ipc_id);
security/selinux/avc.c +1 -2
@@ -510,8 +510,7 @@ void avc_audit(u32 ssid, u32 tsid,return ;if (!a) { a = &stack_data; -memset (a,0 ,sizeof (*a)); - a->type =LSM_AUDIT_NO_AUDIT ; +COMMON_AUDIT_DATA_INIT (a,NONE ); } a->selinux_audit_data.tclass = tclass; a->selinux_audit_data.requested = requested;
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 6 lines · Eric Paris
Most of the LSM common audit work uses LSM_AUDIT_DATA_* for the naming. This was not so for
LSM_AUDIT_NO_AUDITwhich means the generic initializer cannot be used. This patch just renames the flag so the generic initializer can be used.Signed-off-by Eric Paris <[email protected]>
Quoted 53 lines
---
include/linux/lsm_audit.h | 2 +- security/lsm_audit.c | 2 +- security/selinux/avc.c | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-)include/linux/lsm_audit.h +1
-1@@ -33,7 +33,7 @@ struct common_audit_data {#define LSM_AUDIT_DATA_IPC 4#define LSM_AUDIT_DATA_TASK 5#define LSM_AUDIT_DATA_KEY 6 -#define LSM_AUDIT_NO_AUDIT 7 +#define LSM_AUDIT_DATA_NONE 7#define LSM_AUDIT_DATA_KMOD 8struct task_struct *tsk;union {security/lsm_audit.c +1
-1@@ -221,7 +221,7 @@ static void dump_common_audit_data(struct audit_buffer *ab, }switch (a->type) { -case LSM_AUDIT_NO_AUDIT : +case LSM_AUDIT_DATA_NONE :return ;case LSM_AUDIT_DATA_IPC :audit_log_format (ab," key=%d " , a->u.ipc_id);security/selinux/avc.c +1
-3@@ -510,8 +510,7 @@ void avc_audit(u32 ssid, u32 tsid,return ;if (!a) { a = &stack_data; -memset (a,0 ,sizeof (*a)); - a->type =LSM_AUDIT_NO_AUDIT ; +COMMON_AUDIT_DATA_INIT (a,NONE ); } a->selinux_audit_data.tclass = tclass; a->selinux_audit_data.requested = requested; --This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Signature · 8 lines
Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.