diff options
| author | Paul Moore <paul@paul-moore.com> | 2026-10-16 09:33:42 -0400 |
|---|---|---|
| committer | Paul Moore <paul@paul-moore.com> | 2026-10-16 09:33:42 -0400 |
| commit | 7eef953fa66b559f374d0dfc426d7a89fe7f426e (patch) | |
| tree | 9c75f8dead83696c7b0bb19f5dca54d35694228a /kernel | |
| parent | a90ee4305c4a5df72c11b31dacfdc76e00fcf78a (diff) | |
| parent | 5d59024a6cc9aa9300da59fbf7e2c29f1f2393c6 (diff) | |
Automated merge of 'audit/topic-7.3-audit_fsopen' into 'stable-7.4'
* audit/topic-7.3-audit_fsopen:
audit: add FSOPEN record to log filesystem name
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/auditsc.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c index 2b9ce0b52511..37933e31ae79 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c @@ -2883,6 +2883,19 @@ void __audit_log_nfcfg(const char *name, u8 af, unsigned int nentries, } EXPORT_SYMBOL_GPL(__audit_log_nfcfg); +void __audit_log_fsopen(const char *fs_name) +{ + struct audit_buffer *ab; + + ab = audit_log_start(audit_context(), GFP_KERNEL, AUDIT_FSOPEN); + if (!ab) + return; + + audit_log_format(ab, "fs_name="); + audit_log_untrustedstring(ab, fs_name); + audit_log_end(ab); +} + static void audit_log_task(struct audit_buffer *ab) { kuid_t auid, uid; |
