Page MenuHomeFreeBSD

audit: Return ENOSYS if priv_check fails in audit system calls
ClosedPublic

Authored by markj on Sep 16 2025, 1:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 29, 12:12 PM
Unknown Object (File)
Sun, Mar 29, 10:50 AM
Unknown Object (File)
Mon, Mar 23, 1:11 AM
Unknown Object (File)
Wed, Mar 18, 8:47 AM
Unknown Object (File)
Sun, Mar 15, 12:20 PM
Unknown Object (File)
Sat, Mar 14, 12:19 AM
Unknown Object (File)
Thu, Mar 12, 3:13 PM
Unknown Object (File)
Tue, Mar 10, 5:18 AM

Details

Summary

Prior to commit 246d7e9fc239, we would return a special error number
from these system calls when invoked from a jail. Userspace handles
this specially, so we can't really change it. Add a small translation
layer to restore the old behaviour.

PR: 289645
Fixes: 246d7e9fc239 ("jail: Optionally allow audit session state to be configured in a jail")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 67078
Build 63961: arc lint + arc unit