diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-09 03:02:35 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-09 03:02:35 -0400 |
commit | 1236d6bb6e19fc72ffc6bbcdeb1bfefe450e54ee (patch) | |
tree | 47da3feee8e263e8c9352c85cf518e624be3c211 /include/linux/audit.h | |
parent | 750b1a6894ecc9b178c6e3d0a1170122971b2036 (diff) | |
parent | 8a5776a5f49812d29fe4b2d0a2d71675c3facf3f (diff) |
Merge 4.14-rc4 into staging-next
We want the staging/iio fixes in here as well to handle merge issues.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/audit.h')
-rw-r--r-- | include/linux/audit.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h index 74d4d4e8e3db..cb708eb8accc 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h | |||
@@ -314,11 +314,7 @@ void audit_core_dumps(long signr); | |||
314 | 314 | ||
315 | static inline void audit_seccomp(unsigned long syscall, long signr, int code) | 315 | static inline void audit_seccomp(unsigned long syscall, long signr, int code) |
316 | { | 316 | { |
317 | if (!audit_enabled) | 317 | if (audit_enabled && unlikely(!audit_dummy_context())) |
318 | return; | ||
319 | |||
320 | /* Force a record to be reported if a signal was delivered. */ | ||
321 | if (signr || unlikely(!audit_dummy_context())) | ||
322 | __audit_seccomp(syscall, signr, code); | 318 | __audit_seccomp(syscall, signr, code); |
323 | } | 319 | } |
324 | 320 | ||