Page MenuHomeFreeBSD

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

Authored by markj on Sep 16 2025, 1:18 PM.
Tags
None
Referenced Files
F139793785: D52572.id162144.diff
Tue, Dec 16, 7:20 AM
F139759068: D52572.id162144.diff
Mon, Dec 15, 8:38 PM
Unknown Object (File)
Fri, Dec 12, 11:55 AM
Unknown Object (File)
Wed, Dec 10, 4:25 AM
Unknown Object (File)
Thu, Dec 4, 1:10 AM
Unknown Object (File)
Sat, Nov 29, 10:09 AM
Unknown Object (File)
Thu, Nov 27, 10:11 AM
Unknown Object (File)
Thu, Nov 27, 2:36 AM

Details

Reviewers
kevans
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