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)
Tue, Mar 3, 9:21 PM
Unknown Object (File)
Mon, Mar 2, 1:24 PM
Unknown Object (File)
Sat, Feb 28, 1:05 PM
Unknown Object (File)
Mon, Feb 23, 4:12 PM
Unknown Object (File)
Sat, Feb 21, 10:29 AM
Unknown Object (File)
Fri, Feb 20, 2:34 PM
Unknown Object (File)
Wed, Feb 18, 5:12 PM
Unknown Object (File)
Wed, Feb 18, 4:00 PM

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