More user space subject labels
PATCH 12/14 More user space subject labels
From: Steve Grubb <[email protected]>
Date: Sat Apr 1 18:29:34 2006 -0500
Hi,
The patch below builds upon the patch sent earlier and adds subject label to all audit events generated via the netlink interface. It also cleans up a few other minor things.
Signed-off-by Steve Grubb <[email protected]>
Signed-off-by Al Viro <[email protected]>
---
include/linux/audit.h | 2 - kernel/audit.c | 132 ++++++++++++++++++++++++++++++++++++++----------- kernel/auditfilter.c | 44 ++++++++++++++-- kernel/auditsc.c | 4 + 4 files changed, 142 insertions(+), 40 deletions(-)
ce29b682e228c70cdc91a1b2935c5adb2087bab8
include/linux/audit.h +1 -1
@@ -371,7 +371,7 @@ extern void audit_log_d_path(structextern int audit_filter_user (struct netlink_skb_parms *cb,int type);extern int audit_filter_type (int type);extern int audit_receive_filter (int type,int pid,int uid,int seq, -void *data,size_t datasz,uid_t loginuid); +void *data,size_t datasz,uid_t loginuid,u32 sid);#else #define audit_log (c,g,t,f,...) do { ; } while (0)#define audit_log_start (c,g,t) ({ NULL; })
kernel/audit.c +102 -30
197 lines not on this page · raw message
kernel/auditfilter.c +37 -7
64 lines not on this page · raw message
kernel/auditsc.c +2 -2
@@ -637,7 +637,7 @@ static void audit_log_exit(struct audit_u32 len;if (selinux_ctxid_to_string ( axi->osid, &ctx, &len)) { -audit_log_format (ab," obj=%u" , +audit_log_format (ab," osid=%u" , axi->osid); call_panic =1 ; }else
@@ -712,7 +712,7 @@ static void audit_log_exit(struct audit_u32 len;if (selinux_ctxid_to_string ( context->names[i].osid, &ctx, &len)) { -audit_log_format (ab," obj=%u" , +audit_log_format (ab," osid=%u" , context->names[i].osid); call_panic =2 ; }else
Signature · 1 line
1.3.0.g0080f