P5-bsd-jail-object

Jul 20, 2023

Object oriented perl interface to jail(2)

This is an object oriented perl interface to the FreeBSD jail subsystem.

Here’s a replica of the ‘jls’ utility in just a few lines of perl

use BSDJailObject ‘jids’;

print “ JID IP Address Hostname Path\n”; printf “6d -15.15s -29.29s .74s\n”, $->jid, $->ip, $->hostname, $->path foreach jids instantiate => 1 ;

And here’s ‘jexec’

my $j = BSDJailObject->new $ARGV[0] or die $@; $j->attach && chdir’/’ && exec $ARGV[1] or exit;

For more info please use ‘perldoc’ on the module.



Checkout these related ports:
  • Zxfer - Easily and reliably transfer ZFS filesystems
  • Ztop - Display ZFS dataset I/O in real time
  • Zsm - ZFS Snapshot Manager
  • Zsd - Destroys ZFS snapshots
  • Zrepl - ZFS dataset replication tool
  • Zrep - ZFS based replication and failover solution
  • Zpool-iostat-viz - ZFS pool I/O latency statistics
  • Zoxide - Fast cd alternative that learns your habits
  • Zogftw - Creates redundant backups on encrypted ZFS pools
  • Znapzend - ZFS-centric backup tool
  • Zisofs-tools - User utilities for zisofs
  • Zidrav - File corruption detection and repair program
  • Zfstools - OpenSolaris-compatible auto snapshotting for ZFS
  • Zfsnap2 - Portable performant script to make rolling ZFS snapshots easy
  • Zfsnap - Simple sh script to make zfs rolling snaphosts with cron