forked from pulp/pulpcore-selinux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pulpcore.if
106 lines (91 loc) · 2.4 KB
/
pulpcore.if
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
## <summary>Platform for managing repositories of software packages</summary>
#
#########################################
## <summary>
## Transition to pulpcore named content
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`pulpcore_filetrans_named_content',`
gen_require(`
type pulpcore_var_run_t, pulpcore_server_var_run_t;
')
files_pid_filetrans($1, pulpcore_server_var_run_t, { dir }, "pulpcore-content")
files_pid_filetrans($1, pulpcore_server_var_run_t, { dir }, "pulpcore-api")
files_pid_filetrans($1, pulpcore_var_run_t, { dir }, "pulpcore-resource-manager")
files_pid_filetrans($1, pulpcore_var_run_t, { dir }, "pulpcore-worker-1")
files_pid_filetrans($1, pulpcore_var_run_t, { dir }, "pulpcore-worker-2")
')
#######################################
## <summary>
## Connect to pulpcore-server over a unix domain stream socket.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`pulpcore_server_stream_connect',`
gen_require(`
type pulpcore_server_t, pulpcore_server_var_run_t;
')
files_search_pids($1)
stream_connect_pattern($1, pulpcore_server_var_run_t, pulpcore_server_var_run_t, pulpcore_server_t)
')
########################################
########################################
## <summary>
## Bind TCP sockets to the pulp port.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
## <infoflow type="none"/>
#
interface(`corenet_tcp_bind_pulpcore_port',`
gen_require(`
type pulpcore_port_t;
')
allow $1 pulpcore_port_t:tcp_socket name_bind;
')
########################################
## <summary>
## Connect TCP sockets to the pulp port.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
## <infoflow type="none"/>
#
interface(`corenet_tcp_connect_pulpcore_port',`
gen_require(`
type pulpcore_port_t;
')
allow $1 pulpcore_port_t:tcp_socket name_connect;
')
#######################################
## <summary>
## Connect to redis over a unix domain stream socket.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`redis_stream_connect',`
gen_require(`
type redis_t, redis_var_run_t;
')
files_search_pids($1)
stream_connect_pattern($1, redis_var_run_t, redis_var_run_t, redis_t)
')