Skip to content

Add config defaults for the mlock and fusefs mount jail params - #775

Merged
gronke merged 3 commits into
mainfrom
pr-671-salvage
Jul 9, 2026
Merged

gronke merged 3 commits into
mainfrom
pr-671-salvage

Conversation

@gronke

@gronke gronke commented Jul 8, 2026

Copy link
Copy Markdown
Member
  • Thank you @himrock922 for the original contribution in add config with no exists config #671
  • Adds allow_mlock and allow_mount_fusefs, which map to jail(8) parameters and reach a started jail through the launch parameters.
  • Adds mount_linprocfs, completing the iocage mount_* property set.
  • Removes a duplicated priority key from the defaults dict, guarded by a new AST test.
  • allow_mlock defaults to 0 instead of the proposed None, because the iovec launch path treats a parameter without a value as a set flag.
  • The remaining keys of the original pull request stay out, since they describe read-only ZFS dataset facts or features libioc does not implement and would be silently accepted but ignored.
  • The CI guest now loads fusefs persistently, because allow.mount.* jail params register only while the filesystem module is loaded; the new test skips on hosts without it.

himrock922 and others added 3 commits July 8, 2026 10:25
Extracted from the defaults added in #671.
The allow_mlock and allow_mount_fusefs properties map to jail(8) parameters that the launch parameters forward on hosts providing them, mount_linprocfs completes the iocage mount_* property set, and the duplicated priority key is removed.
allow_mlock defaults to 0, because the iovec launch path treats a parameter without a value as a set flag, which would enable mlock in every jail.
The AST test fails on the duplicated priority key that the previous commit removes, because a repeated key in a dict literal silently drops the earlier value.
The jail param tests prove that allow_mlock and allow_mount_fusefs travel from the config defaults through the launch parameters into a running jail.
The allow.mount.fusefs jail param registers only while the module is loaded, so the guest loads it persistently to run the fusefs mount param test without skipping.
@gronke
gronke merged commit 5de899b into main Jul 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants