Page MenuHomeFreeBSD

jail: separate "statically valid allow flags" from "prison0 allow flags"
ClosedPublic

Authored by kevans on Jul 31 2025, 5:22 PM.
Tags
None
Referenced Files
F160521669: D51656.id159502.diff
Thu, Jun 25, 8:02 AM
F160518278: D51656.diff
Thu, Jun 25, 7:25 AM
Unknown Object (File)
Tue, Jun 23, 12:05 AM
Unknown Object (File)
Mon, Jun 22, 3:31 AM
Unknown Object (File)
May 17 2026, 8:21 PM
Unknown Object (File)
May 17 2026, 8:17 PM
Unknown Object (File)
May 17 2026, 4:53 PM
Unknown Object (File)
May 17 2026, 4:18 AM
Subscribers

Details

Summary

The current setup means that we can't add an allow flag in sys/jail.h
that's disabled by default without removing it from the pr_flags
assignment in kern_jail.c. That's technically fine, but I think it's
better to make it more prevalent at the PR_ALLOW_* definition site so
that it's top-of-mind when adding a new flag.

This is a preparatory change for adding an allow flag that prison0 will
also have disabled by default, but with an allow.* knob and sysctl to
enable it.

Diff Detail

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