aboutsummaryrefslogtreecommitdiff
blob: 582064627f135bef3f240aca5b120d9a65a0ada2 (plain)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#
# /emul
#
ifdef(`distro_gentoo',`
/emul/linux/x86/usr/(X11R6/)?lib/X11/locale(/.*)? gen_context(system_u:object_r:locale_t,s0)
')

#
# /etc
#
/etc/avahi/etc/localtime --	gen_context(system_u:object_r:locale_t,s0)
/etc/httpd/alias/[^/]*\.db(\.[^/]*)* -- gen_context(system_u:object_r:cert_t,s0)
/etc/localtime		--	gen_context(system_u:object_r:locale_t,s0)
/etc/pki(/.*)?			gen_context(system_u:object_r:cert_t,s0)
/etc/timezone		--	gen_context(system_u:object_r:locale_t,s0)

ifdef(`distro_redhat',`
/etc/sysconfig/clock	--	gen_context(system_u:object_r:locale_t,s0)
')

#
# /opt
#
/opt/(.*/)?man(/.*)?		gen_context(system_u:object_r:man_t,s0)

#
# /srv
#
/srv/([^/]*/)?ftp(/.*)?		gen_context(system_u:object_r:public_content_t,s0)
/srv/([^/]*/)?rsync(/.*)?	gen_context(system_u:object_r:public_content_t,s0)

#
# /usr
#
/usr/lib/locale(/.*)?		gen_context(system_u:object_r:locale_t,s0)

/usr/lib/perl5/man(/.*)?	gen_context(system_u:object_r:man_t,s0)

/usr/man(/.*)?			gen_context(system_u:object_r:man_t,s0)

/usr/share/fonts(/.*)?		gen_context(system_u:object_r:fonts_t,s0)
/usr/share/X11/fonts(/.*)?	gen_context(system_u:object_r:fonts_t,s0)
/usr/share/ghostscript/fonts(/.*)? gen_context(system_u:object_r:fonts_t,s0)
/usr/share/locale(/.*)?		gen_context(system_u:object_r:locale_t,s0)
/usr/share/man(/.*)?		gen_context(system_u:object_r:man_t,s0)
/usr/share/X11/locale(/.*)?	gen_context(system_u:object_r:locale_t,s0)
/usr/share/zoneinfo(/.*)?	gen_context(system_u:object_r:locale_t,s0)

/usr/share/ssl/certs(/.*)?	gen_context(system_u:object_r:cert_t,s0)
/usr/share/ssl/private(/.*)?	gen_context(system_u:object_r:cert_t,s0)

/usr/X11R6/lib/X11/fonts(/.*)?	gen_context(system_u:object_r:fonts_t,s0)

/usr/X11R6/man(/.*)?		gen_context(system_u:object_r:man_t,s0)

ifdef(`distro_gentoo',`
/usr/share/misc/(pci|usb)\.ids -- gen_context(system_u:object_r:hwdata_t,s0)
')

ifdef(`distro_redhat',`
/usr/share/hwdata(/.*)?		gen_context(system_u:object_r:hwdata_t,s0)
')

#
# /var
#
/var/ftp(/.*)?			gen_context(system_u:object_r:public_content_t,s0)

/var/lib/texmf(/.*)?		gen_context(system_u:object_r:tetex_data_t,s0)

/var/cache/fontconfig(/.*)?	gen_context(system_u:object_r:fonts_cache_t,s0)
/var/cache/fonts(/.*)?		gen_context(system_u:object_r:tetex_data_t,s0)
/var/cache/man(/.*)?		gen_context(system_u:object_r:man_t,s0)

/var/named/chroot/etc/pki(/.*)? gen_context(system_u:object_r:cert_t,s0)

/var/spool/abrt-upload(/.*)?	gen_context(system_u:object_r:public_content_rw_t,s0)
/var/spool/texmf(/.*)?		gen_context(system_u:object_r:tetex_data_t,s0)

ifdef(`distro_debian',`
/var/lib/msttcorefonts(/.*)?	gen_context(system_u:object_r:fonts_t,s0)
/var/lib/usbutils(/.*)?		gen_context(system_u:object_r:hwdata_t,s0)
')

ifdef(`distro_redhat',`
/var/empty/sshd/etc/localtime -- gen_context(system_u:object_r:locale_t,s0)
/var/spool/postfix/etc/localtime -- gen_context(system_u:object_r:locale_t,s0)
')

HOME_DIR/.pki(/.*)?		gen_context(system_u:object_r:cert_home_t)