0.9.28 — rootless: set/clear_loginclass_rctl verbs (umbrella primitives)#186
Merged
Conversation
Twenty-ninth 0.9.x release. Two new verbs that apply RCTL rules at the loginclass scope (umbrella) instead of per-jail. The 0.9.11 crate-<uid> loginclass infrastructure is now addressable end-to-end. set_loginclass_rctl wraps: rctl -a loginclass:<name>:<key>:deny=<value> clear_loginclass_rctl wraps: rctl -r loginclass:<name>:<key>:deny Validators: PerUserRctlPure::validateLoginclassName (must be crate-<uid> shape) + RetunePure key/value whitelist (same gate as set_rctl). Use case: alice spawning 3 jails of 2G each = 6G total previously slipped per-jail caps. Umbrella enforces aggregate. Per-jail + umbrella apply simultaneously (kernel takes more restrictive). CLI wiring intentionally NONE for 0.9.28 — primitive only. Operator scripts call directly or wait for 0.9.29 which auto-applies from crated.conf at jail-create time (needs config-schema design). Wire-up: same pattern as 0.9.23-0.9.27 verb expansion. 2 new ATF tests + verb_token_roundtrips updated. Suite: 1301 -> 1303.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Twenty-ninth 0.9.x release. Two new privops verbs that apply RCTL rules at the loginclass scope (umbrella) instead of per-jail. The 0.9.11
crate-<uid>loginclass infrastructure is now addressable end-to-end.What lands
set_loginclass_rctl— wrapsrctl -a loginclass:<name>:<key>:deny=<value>. Fields:loginclass,key,value. Validates loginclass viaPerUserRctlPure::validateLoginclassName(must becrate-<uid>shape); key/value via the existingRetunePurewhitelist (same gate asset_rctlfrom 0.9.0).clear_loginclass_rctl— symmetric remove.Use case
Per-jail and umbrella rules apply simultaneously — kernel takes the more restrictive of the two.
Wire-up
Same files as previous verb-expansion releases.
privops_pure.cppgains#include "per_user_rctl_pure.h"to reusevalidateLoginclassName.CLI wiring (intentionally none)
The verbs are primitives — no automatic invocation from
crate run. Operators call them directly (e.g., from a startup script) or wait for 0.9.29 which auto-applies fromcrated.confat jail-create time. This split keeps 0.9.28 small; auto-application needs a config-schema decision worth its own PR.Test plan
set_loginclass_rctl_validates,clear_loginclass_rctl_validates) — happy path + bad loginclass + bad key + out-of-range valueverb_token_roundtrips_for_every_verbupdatedSeries state
12+ CLI call-sites wired. All host-side verbs needed for
crate runexist. RCTL umbrella primitives now exist; auto-application coming in 0.9.29.Remaining:
crated.confat jail-createrootless_per_user: true)Generated by Claude Code