File: jail.generic.hpux

package info (click to toggle)
bastille 1:1.3.0-2.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,576 kB
  • ctags: 397
  • sloc: perl: 8,407; sh: 1,879; ansic: 638; makefile: 203; csh: 17
file content (64 lines) | stat: -rw-r--r-- 1,557 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#
# Generic Chroot Jail Listing for HP-UX
#
#  all formats explicitly state ownership and permissions except
#  slink as they cannot be set by usual functions.
#  formats:
#   "dir" makes directory in the jail 
#    dir path permissions owner group
#	 dir etc 0555 0 5
#
#   
#   "file" copys source file to destination_dir/destination_file 	
#    file source destiation_dir destination_file permissions owner group
#	file /dev/null etc/passwd 0555 root daemon
#
#    slink makes a pseudo link from some location in the jail to 
#     a location outside of the jail.
#    	slink var/run/named.pid /var/run/named.pid
#
# /etc of chrooted environment
dir etc 0550 2 2

# Inserting general files for chroot environment
file /etc/hosts etc/hosts 0444 2 2
file /dev/null etc/passwd 0444 2 2
file /etc/services etc/services 0444 2 2
file /etc/nsswitch.files etc/nsswitch.conf 0444 2 2

# /usr for chrooted environment
dir usr 0555 2 2

# /usr/lib for chrooted environment
dir usr/lib 0555 2 2

# Inserting general libraries for chroot environment
file /usr/lib/dld.sl usr/lib/dld.sl 0555 2 2
file /usr/lib/libdld.2 usr/lib/libdld.2 0555 2 2
file /usr/lib/libc.2 usr/lib/libc.2 0555 2 2
file /usr/lib/tztab usr/lib/tztab 0444 2 2

# /usr/sbin for chrooted environment
dir usr/sbin 0555 2 2

# /var for chrooted environment
dir var 0555 2 2

# /var/tmp for chrooted environment
dir var/tmp 1777 2 2

# /var/adm for chrooted environment
dir var/adm 0555 2 2

# /dev for chrooted environment
dir dev 0555 2 2

# /tmp for chrooted environment
dir tmp 1777 2 2