-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpostgresql-pgdg.te
58 lines (47 loc) · 1.26 KB
/
postgresql-pgdg.te
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
policy_module(postgresql-pgdg, 1.5.0)
require {
type postgresql_t;
}
## <desc>
## <p>
## Determine whether PostgreSQL can query on HTTP ports.
## </p>
## </desc>
gen_tunable(postgresql_pgdg_can_http, false)
tunable_policy(`postgresql_pgdg_can_http',`
corenet_tcp_connect_http_port(postgresql_t)
corenet_tcp_sendrecv_http_port(postgresql_t)
')
## <desc>
## <p>
## Allow PostgreSQL/Patroni to access Watchdog devices
## </p>
## </desc>
gen_tunable(postgresql_pgdg_use_watchdog, false)
tunable_policy(`postgresql_pgdg_use_watchdog',`
dev_read_watchdog(postgresql_t)
dev_write_watchdog(postgresql_t)
')
## <desc>
## <p>
## Allow PostgreSQL to use NFS filesystems
## </p>
## </desc>
gen_tunable(postgresql_pgdg_use_nfs, false)
tunable_policy(`postgresql_pgdg_use_nfs',`
fs_manage_nfs_dirs(postgresql_t)
fs_manage_nfs_files(postgresql_t)
fs_manage_nfs_symlinks(postgresql_t)
')
## <desc>
## <p>
## Allow PostgreSQL to use FUSE filesystems
## </p>
## </desc>
gen_tunable(postgresql_pgdg_use_fusefs, false)
tunable_policy(`postgresql_pgdg_use_fusefs',`
fs_manage_fusefs_dirs(postgresql_t)
fs_manage_fusefs_files(postgresql_t)
')
files_read_all_symlinks(postgresql_t)
libs_exec_ldconfig(postgresql_t)