Page MenuHomeFreeBSD

mac_set_fd(3): add support for jail descriptors
ClosedPublic

Authored by kevans on Nov 27 2025, 6:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 2, 6:17 PM
Unknown Object (File)
Fri, Oct 2, 8:57 AM
Unknown Object (File)
Fri, Oct 2, 2:56 AM
Unknown Object (File)
Thu, Oct 1, 4:28 PM
Unknown Object (File)
Wed, Sep 30, 11:17 AM
Unknown Object (File)
Tue, Sep 29, 1:53 PM
Unknown Object (File)
Wed, Sep 16, 3:42 PM
Unknown Object (File)
Wed, Sep 16, 9:11 AM
Subscribers

Details

Summary

We'll still add an old-fashioned jail param to configure jail MAC
labels, but for testing it's really easy to grab a jaildesc and use
that.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Dec 2 2025, 4:17 AM

There is an alloc/free mismatch, see inline comment. Else seems good.

sys/security/mac/mac_syscalls.c
591–592