Page MenuHomeFreeBSD

jail(3lua): add jail.attach()/jail.remove() methods
ClosedPublic

Authored by kevans on Oct 24 2020, 3:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Mar 30, 5:57 PM
Unknown Object (File)
Mar 16 2024, 1:39 PM
Unknown Object (File)
Mar 16 2024, 1:39 PM
Unknown Object (File)
Mar 16 2024, 1:39 PM
Unknown Object (File)
Mar 13 2024, 9:14 PM
Unknown Object (File)
Mar 10 2024, 1:58 PM
Unknown Object (File)
Jan 27 2024, 4:51 PM
Unknown Object (File)
Jan 14 2024, 6:52 AM

Details

Summary

These aren't a part of or use libjail(3), but rather are direct syscalls. Still, they seem like good additions, allowing us to attach to already-running jails.

Diff Detail

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

Event Timeline

Rebase... I reparented it to the jail.list() review because that's, unfortunately, how I've worked on it locally... if it's easier to work with a git branch, I've got it published here: https://github.com/kevans91/freebsd/tree/kbsd/lua-libs

lib/flua/libjail/lua_jail.c
682

It could also be the name as a string. Likewise below for remove.

Apart from the comment nit this looks good. Tested it a bit with io.popen("ps ax") to verify we do get jailed.

This revision is now accepted and ready to land.Mar 5 2021, 1:13 AM