File: exim4.py

package info (click to toggle)
makejail 0.0.5-10
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 252 kB
  • ctags: 156
  • sloc: python: 1,161; makefile: 87; sh: 84
file content (31 lines) | stat: -rw-r--r-- 754 bytes parent folder | download
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
29
30
31
chroot="/var/chroot/exim4"
testCommandsInsideJail=["/usr/bin/mailq"]
processNames=["exim4"]

preserve=["/var/spool",
	  "/var/log/exim4",
	  "/dev/log"]
users=["Debian-exim"]
groups=["Debian-exim"]

userFiles=["/etc/password",
           "/etc/shadow"]
groupFiles=["/etc/group",
            "/etc/gshadow"]
forceCopy=["/etc/hosts",
           "/etc/aliases"]

# launch makejail
#
# copy the documents and the logs to the jail
# cp -Rp /var/spool /var/chroot/exim4/var/spool
# cp -Rp /var/log/exim4/ /var/chroot/exim4/var/log/exim4
#
# configure syslog to also listen to the socket /var/chroot/exim4/dev/log,
# restart sysklogd
#
# handle /proc in the script (mount when it starts, unmount when it stops):
# chroot /var/chroot/apache /bin/mount /proc
#