aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/auditsc.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/auditsc.c')
-rw-r--r--kernel/auditsc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c
index 74c2ae804ca8..5fc4f52d218f 100644
--- a/kernel/auditsc.c
+++ b/kernel/auditsc.c
@@ -307,7 +307,7 @@ int audit_receive_filter(int type, int pid, int uid, int seq, void *data,
307 if (!err && (flags & AUDIT_AT_EXIT)) 307 if (!err && (flags & AUDIT_AT_EXIT))
308 err = audit_add_rule(entry, &audit_extlist); 308 err = audit_add_rule(entry, &audit_extlist);
309 audit_log(NULL, AUDIT_CONFIG_CHANGE, 309 audit_log(NULL, AUDIT_CONFIG_CHANGE,
310 "auid %u added an audit rule\n", loginuid); 310 "auid=%u added an audit rule\n", loginuid);
311 break; 311 break;
312 case AUDIT_DEL: 312 case AUDIT_DEL:
313 flags =((struct audit_rule *)data)->flags; 313 flags =((struct audit_rule *)data)->flags;
@@ -318,7 +318,7 @@ int audit_receive_filter(int type, int pid, int uid, int seq, void *data,
318 if (!err && (flags & AUDIT_AT_EXIT)) 318 if (!err && (flags & AUDIT_AT_EXIT))
319 err = audit_del_rule(data, &audit_extlist); 319 err = audit_del_rule(data, &audit_extlist);
320 audit_log(NULL, AUDIT_CONFIG_CHANGE, 320 audit_log(NULL, AUDIT_CONFIG_CHANGE,
321 "auid %u removed an audit rule\n", loginuid); 321 "auid=%u removed an audit rule\n", loginuid);
322 break; 322 break;
323 default: 323 default:
324 return -EINVAL; 324 return -EINVAL;
@@ -678,10 +678,10 @@ static void audit_log_exit(struct audit_context *context)
678 ab = audit_log_start(context, AUDIT_SYSCALL); 678 ab = audit_log_start(context, AUDIT_SYSCALL);
679 if (!ab) 679 if (!ab)
680 return; /* audit_panic has been called */ 680 return; /* audit_panic has been called */
681 audit_log_format(ab, "syscall=%d", context->major); 681 audit_log_format(ab, "arch=%x syscall=%d",
682 context->arch, context->major);
682 if (context->personality != PER_LINUX) 683 if (context->personality != PER_LINUX)
683 audit_log_format(ab, " per=%lx", context->personality); 684 audit_log_format(ab, " per=%lx", context->personality);
684 audit_log_format(ab, " arch=%x", context->arch);
685 if (context->return_valid) 685 if (context->return_valid)
686 audit_log_format(ab, " success=%s exit=%ld", 686 audit_log_format(ab, " success=%s exit=%ld",
687 (context->return_valid==AUDITSC_SUCCESS)?"yes":"no", 687 (context->return_valid==AUDITSC_SUCCESS)?"yes":"no",