home | help
KASSIBER(1)		     General Commands Manual		     KASSIBER(1)

NAME
     kassiber -- Inject an executable from the FreeBSD host into a jail

SYNOPSIS
     kassiber [-h] [-a] [-A] [-n] [-r rtld] [-p path] [-l lib] [-j jail]
	      [-c chroot] cmd [arg ...]

DESCRIPTION
     The  kassiber command opens the runtime loader and an executable, loads the
     required libraries, attaches itself to a jail and/or chroot  directory  be-
     fore executing the loaded command.

     The following options are available:

     -h    Print the usage message and exit.

     -a    Infer  the required libraries using the runtime loader's tracing sup-
	   port.  Put inferred libraries before manually specified libraries.

     -A    Infer the required libraries using the runtime loader's tracing  sup-
	   port.  Put inferred libraries after manually specified libraries.

     -n    Don't infer the required libraries. Only manually specified libraries
	   will be loaded.

     -r rtld
	   Override the the default runtime loader path.

     -l lib
	   Manually  specify  a  library  to preload. Can be specified more than
	   once.

     -j jail
	   Specify the jail to attach to.  The command attaches to the jail  be-
	   fore it chroots itself.

     -c chroot
	   Set	the  chroot directory path.  The command chroots itself after it
	   attached to the jail.

CAVEATS
     Many programs rely on access to further files besides just their linked li-
     braries so will be unable to function usefully from within the jail.

EXIT STATUS
     The kassiber command exits with EX_NOINPUT, EX_OSERR, or EX_CONFIG  on  er-
     rors otherwise it replaces itself with the invoked executable.

SEE ALSO
     rtld(1), jexec(8), chroot(8)

AUTHORS
     This manual page was written by Jan Bramkamp <crest+kassiber@rlwinm.de>.

FreeBSD ports 15.quarterly	  Jul 12, 2025			     KASSIBER(1)

home | help