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)
Sun, May 17, 2:11 PM
Unknown Object (File)
Thu, May 14, 9:12 AM
Unknown Object (File)
Thu, May 14, 9:09 AM
Unknown Object (File)
Thu, May 14, 9:09 AM
Unknown Object (File)
Wed, May 13, 10:44 PM
Unknown Object (File)
Wed, May 13, 10:30 PM
Unknown Object (File)
Wed, May 13, 10:25 PM
Unknown Object (File)
Mon, May 11, 3:41 PM
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