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
F146914307: D51656.id.diff
Fri, Mar 6, 5:32 PM
F146874773: D51656.diff
Fri, Mar 6, 9:40 AM
Unknown Object (File)
Wed, Mar 4, 6:26 PM
Unknown Object (File)
Jan 31 2026, 11:15 AM
Unknown Object (File)
Jan 10 2026, 1:20 PM
Unknown Object (File)
Jan 4 2026, 2:58 PM
Unknown Object (File)
Nov 30 2025, 9:14 PM
Unknown Object (File)
Nov 27 2025, 12:47 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 Not Applicable
Unit
Tests Not Applicable