aboutsummaryrefslogtreecommitdiff
path: root/packages/examples/Makefile
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2026-09-09 21:24:18 +0000
committerKyle Evans <kevans@FreeBSD.org>2026-09-09 21:24:18 +0000
commitb2a270da9fbf0fb58fb7c1bf1006ae675e14a5e3 (patch)
treee227f71c425963aec3abf4ca75e72adca48b56df /packages/examples/Makefile
parentf2a2e02ae54b836d1e23648756a050406f65111e (diff)
libjail: fix fetching mac.label for multiple jailsHEADmain
When doing a basic `jls -n`, jls(8) will jailparam_get() the mac.label for every jail on the system using the same set of jailparams, and thus the same jp_value. We only init the mac_t the first time, so the first jail would populate it with `?` from /etc/mac.conf and the resulting jail_get(2) would clobber it with the empty string, then a second jail would try to pass the empty string to the kernel and fail because it must have a non-zero length. Fix it by invoking jps_get() every time. Drop some comments to note that jps_get() will be invoked with zero || garbage from previous call, and be sure that we don't leak our previous mac_t. There aren't any other jps_get implementations at this time, so this shouldn't cause any unexpected problems. Reported by: ivy Reviewed by: jamie Differential Revision: https://reviews.freebsd.org/D57280
Diffstat (limited to 'packages/examples/Makefile')
0 files changed, 0 insertions, 0 deletions