mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 00:21:17 +00:00
[PATCH] More user space subject labels
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 <sgrubb@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
e7c3497013
commit
ce29b682e2
4 changed files with 142 additions and 40 deletions
|
@ -637,7 +637,7 @@ static void audit_log_exit(struct audit_context *context, struct task_struct *ts
|
|||
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_context *context, struct task_struct *ts
|
|||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue