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)
Tue, Jan 7, 11:36 PM
Unknown Object (File)
Dec 5 2024, 1:51 PM
Unknown Object (File)
Dec 5 2024, 12:09 PM
Unknown Object (File)
Dec 5 2024, 4:34 AM
Unknown Object (File)
Dec 3 2024, 1:02 PM
Unknown Object (File)
Nov 25 2024, 1:39 PM
Unknown Object (File)
Nov 23 2024, 6:09 AM
Unknown Object (File)
Nov 22 2024, 2:59 PM

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