Page MenuHomeFreeBSD

Jail sysctls: deprecated a generic sysctl in favour of allow-flags
ClosedPublic

Authored by netchild on Jul 3 2025, 3:44 PM.
Tags
None
Referenced Files
F150375856: D51150.diff
Tue, Mar 31, 4:32 PM
Unknown Object (File)
Thu, Mar 19, 5:40 AM
Unknown Object (File)
Jan 10 2026, 9:36 PM
Unknown Object (File)
Dec 9 2025, 9:49 AM
Unknown Object (File)
Oct 25 2025, 4:33 AM
Unknown Object (File)
Oct 22 2025, 1:35 AM
Unknown Object (File)
Oct 22 2025, 1:35 AM
Unknown Object (File)
Oct 21 2025, 2:00 PM

Details

Summary
  • add the missing sysctl to the deprecated list
  • add a comment to not add new generic sysctls and point to SYSCTL_JAIL_PARAM instead

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

jamie added a subscriber: jamie.

Yes, anything that makes these things more obviously deprecated is better.

Is this waiting on anything before commit?

Yes, it waits for me to remember that this is not committed...

I was wrong. It is committed. It just needs to be closed here. I do not see a way to close. Maybe I'm blind... the only thing I found was abandoning this revision.

I don't see it committed?

9fd978680db649 (Baptiste Daroussin      2024-01-04 15:09:44 +0100 5015) SYSCTL_PROC(_security_jail, OID_AUTO, mlock_allowed,
9fd978680db649 (Baptiste Daroussin      2024-01-04 15:09:44 +0100 5016)     CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE,
9fd978680db649 (Baptiste Daroussin      2024-01-04 15:09:44 +0100 5017)     NULL, PR_ALLOW_MLOCK, sysctl_jail_default_allow, "I",
9fd978680db649 (Baptiste Daroussin      2024-01-04 15:09:44 +0100 5018)     "Processes in jail can lock/unlock physical pages in memory");

Very strange. First "patch" told me it is already applied (it was a pristine src tree). Now I do a git diff and it is showing up. Pffft.

This revision was not accepted when it landed; it landed in state Needs Review.Tue, Mar 31, 5:24 PM
This revision was automatically updated to reflect the committed changes.