diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-21 22:18:14 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-21 22:18:14 -0500 |
commit | 3eaded86ac3e7f00fb3eeb8162d89e9a34e42fb0 (patch) | |
tree | 4c48b9f1739dcb034186956bf39908803b524154 /fs/exec.c | |
parent | 527d1511310a89650000081869260394e20c7013 (diff) | |
parent | 9175c9d2aed528800175ef81c90569d00d23f9be (diff) |
Merge git://git.infradead.org/users/eparis/audit
Pull audit updates from Eric Paris:
"Nothing amazing. Formatting, small bug fixes, couple of fixes where
we didn't get records due to some old VFS changes, and a change to how
we collect execve info..."
Fixed conflict in fs/exec.c as per Eric and linux-next.
* git://git.infradead.org/users/eparis/audit: (28 commits)
audit: fix type of sessionid in audit_set_loginuid()
audit: call audit_bprm() only once to add AUDIT_EXECVE information
audit: move audit_aux_data_execve contents into audit_context union
audit: remove unused envc member of audit_aux_data_execve
audit: Kill the unused struct audit_aux_data_capset
audit: do not reject all AUDIT_INODE filter types
audit: suppress stock memalloc failure warnings since already managed
audit: log the audit_names record type
audit: add child record before the create to handle case where create fails
audit: use given values in tty_audit enable api
audit: use nlmsg_len() to get message payload length
audit: use memset instead of trying to initialize field by field
audit: fix info leak in AUDIT_GET requests
audit: update AUDIT_INODE filter rule to comparator function
audit: audit feature to set loginuid immutable
audit: audit feature to only allow unsetting the loginuid
audit: allow unsetting the loginuid (with priv)
audit: remove CONFIG_AUDIT_LOGINUID_IMMUTABLE
audit: loginuid functions coding style
selinux: apply selinux checks on new audit message types
...
Diffstat (limited to 'fs/exec.c')
-rw-r--r-- | fs/exec.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -1380,10 +1380,6 @@ int search_binary_handler(struct linux_binprm *bprm) | |||
1380 | if (retval) | 1380 | if (retval) |
1381 | return retval; | 1381 | return retval; |
1382 | 1382 | ||
1383 | retval = audit_bprm(bprm); | ||
1384 | if (retval) | ||
1385 | return retval; | ||
1386 | |||
1387 | retval = -ENOENT; | 1383 | retval = -ENOENT; |
1388 | retry: | 1384 | retry: |
1389 | read_lock(&binfmt_lock); | 1385 | read_lock(&binfmt_lock); |
@@ -1431,6 +1427,7 @@ static int exec_binprm(struct linux_binprm *bprm) | |||
1431 | 1427 | ||
1432 | ret = search_binary_handler(bprm); | 1428 | ret = search_binary_handler(bprm); |
1433 | if (ret >= 0) { | 1429 | if (ret >= 0) { |
1430 | audit_bprm(bprm); | ||
1434 | trace_sched_process_exec(current, old_pid, bprm); | 1431 | trace_sched_process_exec(current, old_pid, bprm); |
1435 | ptrace_event(PTRACE_EVENT_EXEC, old_vpid); | 1432 | ptrace_event(PTRACE_EVENT_EXEC, old_vpid); |
1436 | current->did_exec = 1; | 1433 | current->did_exec = 1; |