Re: git: 675739153bde - main - sys/security/audit: add kern_ implementations

From: Brooks Davis <brooks_at_freebsd.org>
Date: Fri, 06 Nov 2026 14:08:31 UTC
On Fri, Nov 06, 2026 at 01:58:30PM +0000, Brooks Davis wrote:
> The branch main has been updated by brooks:
> 
> URL: https://cgit.FreeBSD.org/src/commit/?id=675739153bde1d871bd55448b4315f76f1479c57
> 
> commit 675739153bde1d871bd55448b4315f76f1479c57
> Author:     Brooks Davis <brooks@FreeBSD.org>
> AuthorDate: 2026-11-06 13:58:14 +0000
> Commit:     Brooks Davis <brooks@FreeBSD.org>
> CommitDate: 2026-11-06 13:58:14 +0000
> 
>     sys/security/audit: add kern_ implementations
>     
>     Effort:         CHERI upstreaming
>     Sponsored by:   Innovate UK
>     PR:             https://github.com/freebsd/freebsd-src/pull/2284

I've got a pile (40+) of these queue in the PR and I'm going to start
trickling them in.  They don't each explain why becuase it would all be
the same and the changes are fairly mechanical.

The TL;DR is that when doing freebsd32 or freebsd64 in CHERI, we need
a place to construct bounded pointers from integer pointer arguments to
syscalls so the kernel can use them to access userspace.  The changes are
generally trivial, just adding a shim function (usually kern_<syscall>, but
sometimes user_<syscall> if a kern function already exists and has complex
consumers).

Actual compat layer changes will follow later.

-- Brooks