DragonFly submit List (threaded) for 2004-03
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: jls(8), jexec(8) and jail_attach(2) port
Great Paul, I've had those floating around in the back of
my mind for a while as I use a lot of jails for different application
testing. I'll most defiantly take a look at your work when I get
to the lab in the morning.
-DR
On Mar 21, 2004, at 6:27 PM, Paul Herman wrote:
Hi,
I've ported jls(8) & jexec(8) from FreeBSD to DragonFly. This
let's you list the active jails and execute commands in them. It
works for me, but I'm sure there is room for improvement. I've
attached two files:
* tar file to be extracted in /usr/src. Sorry it's not a patch(1)
file, I can't get patch(1) to create files. Something like this
should do the trick:
+ cd /usr/src && tar xzf jail.tar.gz
+ cd sys/kern && make sysent
+ cd /usr/src && make world
* a side dish of mdoc patch to update FreeBSD versions and fix a
<tab> character in the DragonFly declaration.
There is one known bug (see "Minor jail bug..." post to bugs@
yesterday) which leaves a jail hanging around upon exit if you
fork/exec a process inside a jail. At the moment I'm not quite
sure how that should be addressed.
I'm also not sure how to lock the prisons structure in critical
sections (crit_enter()/crit_exit() seems kinda harsh) so any
tips/suggestions are welcome. Other than that, enjoy!
-Paul.<jail.tar.gz><mdoc.patch.gz>
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]