summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xman1/ezjail-admin.181
-rwxr-xr-xman5/ezjail.conf.596
2 files changed, 177 insertions, 0 deletions
diff --git a/man1/ezjail-admin.1 b/man1/ezjail-admin.1
new file mode 100755
index 0000000..9030d53
--- /dev/null
+++ b/man1/ezjail-admin.1
@@ -0,0 +1,81 @@
1.TH ezjail\-admin 1
2.SH NAME
3ezjail-admin \- Administrate ezjail
4.SH SYNOPSIS
5.T
6.B ezjail-admin create
7[-r jailroot] [-x]
8.I hostname jailip
9
10.T
11.B ezjail-admin delete
12[-w]
13.I hostname
14
15.T
16.B ezjail-admin list
17
18.T
19.B ezjail-admin update
20[-s sourcetree]
21.SH DESCRIPTION
22The
23.B ezjail-admin
24tool is used to manage jails inside the ezjail scope. It is not used
25to start or stop ezjails jails. Refer to ezjail(5) for more details.
26.SH ezjail-admin create
27makes a copy of the ezjail template jail to the standard jail directory,
28using either the name specified with the -r option or a name derived from
29the given hostname.
30
31If the jailroot does not start with a /, it is
32interpreted relative to ezjails root dir. If the given jailroot lies
33outside ezjails root dir, a soft link is created inside ezjails root dir
34pointing to the newly created jails location.
35
36The first step is skipped, if the -x (jail exists) option is given, useful
37in situations where you just want to alter some of a jail properties and
38called ezjail-admin delete without the -w option before. However, sanity
39checks are being performed.
40
41It then creates an entry in its /etc/ezjail directory allowing the
42jail to be brought up after next reboot.
43
44If the ezjail_mount_enable option is set, a /etc/fstab.hostname is
45generated, allowing the basejail to be auto-mounted when the jail starts
46up.
47
48Options for newly created jails are read from ezjail.conf, refer to
49ezjail.conf(5) for more information.
50.SH ezjail-admin delete
51removes a jail from ezjails /etc/ezjail resource directory thus preventing
52it from being brought up on next reboot.
53
54It then removes the /etc/fstab.hostname entry, if it exists.
55
56If the -w (wipe) option is given, the directory pointed to by the jail
57root entry is removed as well as the soft link, if necessary.
58.SH ezjail-admin list
59lists all jails inside ezjails scope, together with some information on
60them.
61.SH ezjail-admin update
62tries to build and install a FreeBSD system from the source tree either
63specified in the ezjail.conf config file or via the -s option. Build
64destination is a temporary directory inside ezjails jail root.
65
66It then fills the basejail from that temporary directory (leaving all
67older version installed libraries intact, if it already existed). All
68copied directories are removed and replaced by soft links to what later is
69mounted into the jail.
70
71Finally it removes the old template jail and renames the
72temporary directory as the new template jail.
73.SH FILES
74.T4
75/usr/local/etc/ezjail.conf
76.br
77/usr/local/etc/rc.d/ezjail
78.SH "SEE ALSO"
79ezjail(5), ezjail.conf(5), jail(8), devfs(5), fdescfs(5), procfs(5)
80.SH AUTHOR
81Dirk Engling <erdgeist@erdgeist.org>
diff --git a/man5/ezjail.conf.5 b/man5/ezjail.conf.5
new file mode 100755
index 0000000..8f6cf39
--- /dev/null
+++ b/man5/ezjail.conf.5
@@ -0,0 +1,96 @@
1.TH ezjail.conf 5
2.SH NAME
3ezjail.conf \- configuration file for ezjail script
4.SH DESCRIPTION
5The file
6.B ezjail.conf
7contains setting that control the operation of the ezjail rc script. It is
8also read by the
9.B ezjail-admin
10utility to figure out where it should perform its actions.
11.SH PATH OPTIONS
12.TP
13.B ezjail_jaildir (str)
14Location of jail root directories
15.br
16.I default: /usr/jails
17.TP
18.B ezjail_jailtemplate (str)
19Location of template jail used to create a new jail
20.br
21.I default: /usr/jails/newjail
22.TP
23.B ezjail_jailbase (str)
24Location of base jail, the one that is mounted to all jails
25.br
26.I default: /usr/jails/basejail
27.TP
28.B ezjail_sourcetree (str)
29Location of your copy of FreeBSD's source tree (refer to the
30.B ezjail-admin(1)
31utility for more information)
32.br
33.I default: /usr/src
34.SH JAIL CREATION OPTIONS
35Default options for newly created jails. Used by the
36.B ezjail-admin(1)
37utility. Be careful about disabling ezjail_mount_enable. (Refer to
38.B ezjail-admin(1)
39for more information).
40.TP
41.B ezjail_mount_enable (bool)
42Controls, wheter /etc/fstab.JAILNAME should be executed at jail startup
43time.
44.br
45.I default: "YES"
46.TP
47.B ezjail_devfs_enable (bool)
48Controls, wheter newly created jails will be given a working
49.I /dev
50directory. (Refer to
51.B devfs(5)
52and
53.B jail(8)
54for more information).
55.br
56.I default: "YES"
57.TP
58.B ezjail_devfs_ruleset (str)
59Specifies, which devfs ruleset should apply for newly created jails.
60(Refer to
61.B devfs(5)
62and
63.N jail(8)
64for more information).
65.br
66.I default: "devfsrules_jail"
67.TP
68.B ezjail_procfs_enable (bool)
69Controls, wheter newly created jails will be given a working
70.I /proc
71directory. (Refer to
72.B procfs(5)
73and
74.B jail(8)
75for more information).
76.br
77.I default: "YES"
78.TP
79.B ezjail_fdescfs_enable (bool)
80Controls, wheter newly created jails will be given a working
81.I /dev/fd/
82directory. (Refer to
83.B fdescfs(5)
84and
85.B jail(8)
86for more information).
87.br
88.I default: "YES"
89.SH FILES
90.TP
91/usr/local/etc/ezjail.conf
92/usr/local/etc/rc.d/ezjail
93.SH "SEE ALSO"
94ezjail-admin(1), ezjail(5), jail(8), devfs(5), fdescfs(5), procfs(5)
95.SH AUTHOR
96Dirk Engling <erdgeist@erdgeist.org>