-
Notifications
You must be signed in to change notification settings - Fork 20
/
pillar.example.sls
67 lines (59 loc) · 1.71 KB
/
pillar.example.sls
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
selinux:
state: enforcing
type: targeted
booleans.enabled:
- httpd_can_network_connect_db
booleans.disabled:
- httpd_can_network_connect
ports:
ssh:
tcp:
- 2224
ports.absent:
ssh:
tcp:
- 2223
fcontext:
/var/www/test.org/statics(/.*)?:
user: system_u
type: httpd_sys_rw_content_t
fcontext.absent:
- /var/www/test.org/src(/.*)?
- /var/www/test.org/tests
modules:
gitlabsshkeygen:
version: 1.0
plain: |
module gitlabsshkeygen 1.0;
require {
type ssh_keygen_t;
type init_tmp_t;
class file { read open };
}
#============= ssh_keygen_t ==============
allow ssh_keygen_t init_tmp_t:file open;
gitlabnginx:
version: 1.0
plain: |
module gitlabnginx 1.0;
require {
type httpd_t;
type user_home_t;
type init_t;
type user_home_dir_t;
class sock_file write;
class unix_stream_socket connectto;
class file { read open };
class dir { search getattr };
}
#============= httpd_t ==============
allow httpd_t init_t:unix_stream_socket connectto;
#!!!! This avc can be allowed using one of the these booleans:
# httpd_read_user_content, httpd_enable_homedirs
allow httpd_t user_home_dir_t:dir search;
#!!!! This avc can be allowed using one of the these booleans:
# httpd_read_user_content, httpd_enable_homedirs
allow httpd_t user_home_t:dir { search getattr };
#!!!! This avc can be allowed using the boolean 'httpd_read_user_content'
allow httpd_t user_home_t:file { read open };
allow httpd_t user_home_t:sock_file write;