Skip to content

Commit 2f83277

Browse files
committed
[refactoring] Rules for different domains should be separated
i. e. do not mix rules for mysqld_t and mysqld_safe_t. This enhances commit: 45d5f31
1 parent 60b9eaa commit 2f83277

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mysql.te

+4-1
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,10 @@ optional_policy(`
178178
daemontools_service_domain(mysqld_t, mysqld_exec_t)
179179
')
180180

181+
optional_policy(`
182+
hostname_exec(mysqld_t)
183+
')
184+
181185
optional_policy(`
182186
openshift_search_lib(mysqld_t)
183187
')
@@ -258,7 +262,6 @@ mysql_write_log(mysqld_safe_t)
258262

259263
optional_policy(`
260264
hostname_exec(mysqld_safe_t)
261-
hostname_exec(mysqld_t)
262265
')
263266

264267
########################################

0 commit comments

Comments
 (0)