Knowledge for our questions, fun for everyone!
Knowledge for our questions, fun for everyone!
Table of contents
Introduction
How Jail works
Jail internals
Configuring Jail
Setup Entries
Create directories
Adding users
Adding software
Install HOWTO
Download
Top Sections
Libros (160)
Escalada (68)
Outdoor sports (62)
Mountain Bike (58)
Load Balancer (18)
Top project downloads
Jail (20592)
Load Balancer (4084)
eventmonitor (2997)
phptemplater (2478)
Libxml (1447)
Top active projects
Jail (10776)
libnetcomm (10319)
Libxml (9030)
phptemplater (8470)
eventmonitor (7432)
Exits
Jail at Sourceforge
Jail Mailing list
Jail Slashdotted
Jail "Barrapunted"
Jail at Freshmeat
Jail in the WWW
Go back to projects
Poll (101 votes)
What kind of templates you use?
None
String replacements
Smarty
PHPTemplater

Adding software to Jail

Or how to invoke addjailsw
Adding software to Jail
Or how to invoke addjailsw

addjailsw will copy the programs and the dependencies (libraries, auxiliar files, special devices) into the right places in the chrooted environment. addjailsw has been written in perl script. This are the command line arguments:

addjailsw chrootdir [-D] [-P program args]
Argument Description
chrootdir The directory where the chrooted environment will live. It its the home entry in the non-chrooted /etc/passwd file
-P program args (optional) installs the specific program "program" into the chrooted environment. The script uses the "args" parameter to launch the program where doing the strace command, to allows the program exit nicely, so the strace can do its work. If this parameter isn’t specified, the standard programs included in the file will be installed. See addjailsw’s code for in-deep details.

Invocation examples:

addjailsw /var/chroot

addjailsw /var/chroot -D

addjailsw /var/chroot -P vi "-c q"

The first invocation will add the standard programs under the /var/choot directory. The second invocation will do the same that first’s but also will show what files are going to be copied in /var/chroot. Last, the third invocation will install only the program vi, and when launched in the strace call, the arguments "-c q" will be passed to it (so vi will exit inmediatly).

Published at 26/08/2003 17:10:48
Last Updated 08/12/2003 20:25:07
By Juan M. Casillas




Google



Adding software to Jail
Or how to invoke addjailsw

Sections
Jail

February's articles
S M T W T F S
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
      
More articles

Search


Other versions
XML version
Printable version

Download
Latest version is 1.9a (32.9 Kb, tar.gz file)

 » from JMCResearch
Quick links
Jail Mailing list
Jail install HOWTO
Bug Report
Feature Request
CVS Repository
Local CVS Repository
Ask your questions