HomeFreeBSD

libjail: start refactoring struct ioctl support

Description

libjail: start refactoring struct ioctl support

Instead of ad-hoc comparisons against the struct type in a few places,
start to abstract out an interface for dealing with struct types. For
now, this just means that we have some special jailparam_import and
jailparam_export handling for the ip addr types, but in the next commit
we'll extend it further to support MAC labels.

Reviewed by: jamie
Differential Revision: https://reviews.freebsd.org/D53959

Details

Provenance
kevansAuthored on Nov 27 2025, 5:19 AM
Reviewer
jamie
Differential Revision
D53959: libjail: start refactoring struct ioctl support
Parents
rGbd55cbb50c58: kern: add a mac.label jail parameter
Branches
Unknown
Tags
Unknown