diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-10-04 17:21:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-10-04 17:21:41 -0400 |
commit | 3cd013ab79e8e5c58fbd50fc09fceb6260a92a68 (patch) | |
tree | 74ed773b1314592c7778e70b5223ebfd9f756b29 /security | |
parent | e46cae441824999c858d482ca1f661cf4292c02f (diff) | |
parent | 7ff89ac608d9e856cae6fa651553fa0709bf9c50 (diff) |
Merge branch 'stable-4.9' of git://git.infradead.org/users/pcmoore/audit
Pull audit updates from Paul Moore:
"Another relatively small pull request for v4.9 with just two patches.
The patch from Richard updates the list of features we support and
report back to userspace; this should have been sent earlier with the
rest of the v4.8 patches but it got lost in my inbox.
The second patch fixes a problem reported by our Android friends where
we weren't very consistent in recording PIDs"
* 'stable-4.9' of git://git.infradead.org/users/pcmoore/audit:
audit: add exclude filter extension to feature bitmap
audit: consistently record PIDs with task_tgid_nr()
Diffstat (limited to 'security')
-rw-r--r-- | security/lsm_audit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/lsm_audit.c b/security/lsm_audit.c index cccbf3068cdc..45d927ab807d 100644 --- a/security/lsm_audit.c +++ b/security/lsm_audit.c | |||
@@ -220,7 +220,7 @@ static void dump_common_audit_data(struct audit_buffer *ab, | |||
220 | */ | 220 | */ |
221 | BUILD_BUG_ON(sizeof(a->u) > sizeof(void *)*2); | 221 | BUILD_BUG_ON(sizeof(a->u) > sizeof(void *)*2); |
222 | 222 | ||
223 | audit_log_format(ab, " pid=%d comm=", task_pid_nr(current)); | 223 | audit_log_format(ab, " pid=%d comm=", task_tgid_nr(current)); |
224 | audit_log_untrustedstring(ab, memcpy(comm, current->comm, sizeof(comm))); | 224 | audit_log_untrustedstring(ab, memcpy(comm, current->comm, sizeof(comm))); |
225 | 225 | ||
226 | switch (a->type) { | 226 | switch (a->type) { |
@@ -294,7 +294,7 @@ static void dump_common_audit_data(struct audit_buffer *ab, | |||
294 | case LSM_AUDIT_DATA_TASK: { | 294 | case LSM_AUDIT_DATA_TASK: { |
295 | struct task_struct *tsk = a->u.tsk; | 295 | struct task_struct *tsk = a->u.tsk; |
296 | if (tsk) { | 296 | if (tsk) { |
297 | pid_t pid = task_pid_nr(tsk); | 297 | pid_t pid = task_tgid_nr(tsk); |
298 | if (pid) { | 298 | if (pid) { |
299 | char comm[sizeof(tsk->comm)]; | 299 | char comm[sizeof(tsk->comm)]; |
300 | audit_log_format(ab, " opid=%d ocomm=", pid); | 300 | audit_log_format(ab, " opid=%d ocomm=", pid); |