diff options
author | David Woodhouse <dwmw2@shinybook.infradead.org> | 2005-05-23 16:35:28 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@shinybook.infradead.org> | 2005-05-23 16:35:28 -0400 |
commit | bccf6ae083318ea08094d6ab185fdf7c49906b3a (patch) | |
tree | 0dc4fabe9004aa666e646c69e976fda989c08565 /kernel/audit.c | |
parent | bfb4496e7239c9132d732a65cdcf3d6a7431ad1a (diff) |
AUDIT: Unify auid reporting, put arch before syscall number
These changes make processing of audit logs easier. Based on a patch
from Steve Grubb <sgrubb@redhat.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'kernel/audit.c')
-rw-r--r-- | kernel/audit.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/audit.c b/kernel/audit.c index 35306f4369e7..ef35166fdc29 100644 --- a/kernel/audit.c +++ b/kernel/audit.c | |||
@@ -234,7 +234,7 @@ static int audit_set_rate_limit(int limit, uid_t loginuid) | |||
234 | int old = audit_rate_limit; | 234 | int old = audit_rate_limit; |
235 | audit_rate_limit = limit; | 235 | audit_rate_limit = limit; |
236 | audit_log(NULL, AUDIT_CONFIG_CHANGE, | 236 | audit_log(NULL, AUDIT_CONFIG_CHANGE, |
237 | "audit_rate_limit=%d old=%d by auid %u", | 237 | "audit_rate_limit=%d old=%d by auid=%u", |
238 | audit_rate_limit, old, loginuid); | 238 | audit_rate_limit, old, loginuid); |
239 | return old; | 239 | return old; |
240 | } | 240 | } |
@@ -244,7 +244,7 @@ static int audit_set_backlog_limit(int limit, uid_t loginuid) | |||
244 | int old = audit_backlog_limit; | 244 | int old = audit_backlog_limit; |
245 | audit_backlog_limit = limit; | 245 | audit_backlog_limit = limit; |
246 | audit_log(NULL, AUDIT_CONFIG_CHANGE, | 246 | audit_log(NULL, AUDIT_CONFIG_CHANGE, |
247 | "audit_backlog_limit=%d old=%d by auid %u", | 247 | "audit_backlog_limit=%d old=%d by auid=%u", |
248 | audit_backlog_limit, old, loginuid); | 248 | audit_backlog_limit, old, loginuid); |
249 | return old; | 249 | return old; |
250 | } | 250 | } |
@@ -256,7 +256,7 @@ static int audit_set_enabled(int state, uid_t loginuid) | |||
256 | return -EINVAL; | 256 | return -EINVAL; |
257 | audit_enabled = state; | 257 | audit_enabled = state; |
258 | audit_log(NULL, AUDIT_CONFIG_CHANGE, | 258 | audit_log(NULL, AUDIT_CONFIG_CHANGE, |
259 | "audit_enabled=%d old=%d by auid %u", | 259 | "audit_enabled=%d old=%d by auid=%u", |
260 | audit_enabled, old, loginuid); | 260 | audit_enabled, old, loginuid); |
261 | return old; | 261 | return old; |
262 | } | 262 | } |
@@ -270,7 +270,7 @@ static int audit_set_failure(int state, uid_t loginuid) | |||
270 | return -EINVAL; | 270 | return -EINVAL; |
271 | audit_failure = state; | 271 | audit_failure = state; |
272 | audit_log(NULL, AUDIT_CONFIG_CHANGE, | 272 | audit_log(NULL, AUDIT_CONFIG_CHANGE, |
273 | "audit_failure=%d old=%d by auid %u", | 273 | "audit_failure=%d old=%d by auid=%u", |
274 | audit_failure, old, loginuid); | 274 | audit_failure, old, loginuid); |
275 | return old; | 275 | return old; |
276 | } | 276 | } |
@@ -424,7 +424,7 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh) | |||
424 | int old = audit_pid; | 424 | int old = audit_pid; |
425 | audit_pid = status_get->pid; | 425 | audit_pid = status_get->pid; |
426 | audit_log(NULL, AUDIT_CONFIG_CHANGE, | 426 | audit_log(NULL, AUDIT_CONFIG_CHANGE, |
427 | "audit_pid=%d old=%d by auid %u", | 427 | "audit_pid=%d old=%d by auid=%u", |
428 | audit_pid, old, loginuid); | 428 | audit_pid, old, loginuid); |
429 | } | 429 | } |
430 | if (status_get->mask & AUDIT_STATUS_RATE_LIMIT) | 430 | if (status_get->mask & AUDIT_STATUS_RATE_LIMIT) |