BSD-Jail

 view release on metacpan or  search on metacpan

Jail.pm  view on Meta::CPAN

  # Get a list of current prisons
  my @jids = get_jids();

  # Get information on a prision
  my ($pr_version, $pr_id, $pr_path, $pr_host, $pr_ipaddr) =
      get_xprison($jid);

  # Attach to a prison
  jattach($jid);

  # Create a new prision and get locked into it
  jail($path, $hostname, $ipaddr);


=head1 DESCRIPTION

  The BSD::Jail module is an interface to the jail(2) system call found in
  FreeBSD.  It can get information on current prisons, attach to current
  prisons and create new prisons.

  To create or attach to a prison, the process must be running as root.



( run in 0.769 second using v1.01-cache-2.11-cpan-49f99fa48dc )