diff options
| author | Paul Moore <paul@paul-moore.com> | 2026-10-16 09:36:00 -0400 |
|---|---|---|
| committer | Paul Moore <paul@paul-moore.com> | 2026-10-16 09:36:00 -0400 |
| commit | b9e002df320f19b3425ebbfd1edd2f673c16e551 (patch) | |
| tree | d4dd65686435b4e91cad001a91391450e82a7e8a /include/linux | |
| parent | 7eef953fa66b559f374d0dfc426d7a89fe7f426e (diff) | |
| parent | a8bdcf944504980635c2069b4a4cfcf677b09bbb (diff) | |
| download | linux-b9e002df320f19b3425ebbfd1edd2f673c16e551.tar.gz linux-b9e002df320f19b3425ebbfd1edd2f673c16e551.zip | |
Automated merge of 'audit/dev' into 'stable-7.4'
Manual merge fixup in audit_tree.c:kill_rules() to work around a conflict
with a UAF fix that was merged for v7.3-rc6.
* audit/dev:
audit: separate file and process capability storage
audit: Fix filter rule accounting after automatic removal
audit: use copied skb length in kauditd_send_multicast_skb()
audit: add missing unlikely hint to audit_dummy_context() wrappers
audit: free proctitle in context so it can be re-set by fork on exec_binprm
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/audit.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h index 077b2667180d..767e349d4834 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h @@ -548,7 +548,7 @@ static inline void audit_openat2_how(struct open_how *how) static inline void audit_log_kern_module(const char *name) { - if (!audit_dummy_context()) + if (unlikely(!audit_dummy_context())) __audit_log_kern_module(name); } @@ -564,7 +564,7 @@ static inline void audit_tk_injoffset(struct timespec64 offset) if (offset.tv_sec == 0 && offset.tv_nsec == 0) return; - if (!audit_dummy_context()) + if (unlikely(!audit_dummy_context())) __audit_tk_injoffset(offset); } @@ -587,7 +587,7 @@ static inline void audit_ntp_set_new(struct audit_ntp_data *ad, static inline void audit_ntp_log(const struct audit_ntp_data *ad) { - if (!audit_dummy_context()) + if (unlikely(!audit_dummy_context())) __audit_ntp_log(ad); } |
