From: cgzones@googlemail.com (=?UTF-8?q?Christian=20G=C3=B6ttsche?=) Date: Thu, 8 Jun 2017 19:16:59 +0200 Subject: [refpolicy] [PATCH 2/3] mysql: align file contexts In-Reply-To: <20170608171700.27086-1-cgzones@googlemail.com> References: <20170608171700.27086-1-cgzones@googlemail.com> Message-ID: <20170608171700.27086-2-cgzones@googlemail.com> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com From: cgzones --- mysql.fc | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/mysql.fc b/mysql.fc index 50e7dba8..e706aebe 100644 --- a/mysql.fc +++ b/mysql.fc @@ -1,27 +1,27 @@ -HOME_DIR/\.my\.cnf -- gen_context(system_u:object_r:mysqld_home_t,s0) +HOME_DIR/\.my\.cnf -- gen_context(system_u:object_r:mysqld_home_t,s0) -/etc/my\.cnf -- gen_context(system_u:object_r:mysqld_etc_t,s0) -/etc/my\.cnf\.d(/.*)? gen_context(system_u:object_r:mysqld_etc_t,s0) -/etc/mysql(/.*)? gen_context(system_u:object_r:mysqld_etc_t,s0) +/etc/my\.cnf -- gen_context(system_u:object_r:mysqld_etc_t,s0) +/etc/my\.cnf\.d(/.*)? gen_context(system_u:object_r:mysqld_etc_t,s0) +/etc/mysql(/.*)? gen_context(system_u:object_r:mysqld_etc_t,s0) -/etc/rc\.d/init\.d/mysqld? -- gen_context(system_u:object_r:mysqld_initrc_exec_t,s0) +/etc/rc\.d/init\.d/mysqld? -- gen_context(system_u:object_r:mysqld_initrc_exec_t,s0) -/usr/bin/mysqld(-max)? -- gen_context(system_u:object_r:mysqld_exec_t,s0) -/usr/bin/mysqld_safe -- gen_context(system_u:object_r:mysqld_safe_exec_t,s0) -/usr/bin/mysql_upgrade -- gen_context(system_u:object_r:mysqld_exec_t,s0) -/usr/bin/ndbd -- gen_context(system_u:object_r:mysqld_exec_t,s0) +/usr/bin/mysqld(-max)? -- gen_context(system_u:object_r:mysqld_exec_t,s0) +/usr/bin/mysqld_safe -- gen_context(system_u:object_r:mysqld_safe_exec_t,s0) +/usr/bin/mysql_upgrade -- gen_context(system_u:object_r:mysqld_exec_t,s0) +/usr/bin/ndbd -- gen_context(system_u:object_r:mysqld_exec_t,s0) -/usr/lib/systemd/system/mysqld.*\.service -- gen_context(system_u:object_r:mysqld_unit_t,s0) +/usr/lib/systemd/system/mysqld.*\.service -- gen_context(system_u:object_r:mysqld_unit_t,s0) -/usr/libexec/mysqld -- gen_context(system_u:object_r:mysqld_exec_t,s0) +/usr/libexec/mysqld -- gen_context(system_u:object_r:mysqld_exec_t,s0) -/usr/sbin/mysqld(-max)? -- gen_context(system_u:object_r:mysqld_exec_t,s0) -/usr/sbin/ndbd -- gen_context(system_u:object_r:mysqld_exec_t,s0) +/usr/sbin/mysqld(-max)? -- gen_context(system_u:object_r:mysqld_exec_t,s0) +/usr/sbin/ndbd -- gen_context(system_u:object_r:mysqld_exec_t,s0) -/var/lib/mysql(/.*)? gen_context(system_u:object_r:mysqld_db_t,s0) -/var/lib/mysql/mysql.* -s gen_context(system_u:object_r:mysqld_var_run_t,s0) +/var/lib/mysql(/.*)? gen_context(system_u:object_r:mysqld_db_t,s0) +/var/lib/mysql/mysql.* -s gen_context(system_u:object_r:mysqld_var_run_t,s0) -/var/log/mariadb(/.*)? gen_context(system_u:object_r:mysqld_log_t,s0) -/var/log/mysql.* -- gen_context(system_u:object_r:mysqld_log_t,s0) +/var/log/mariadb(/.*)? gen_context(system_u:object_r:mysqld_log_t,s0) +/var/log/mysql.* -- gen_context(system_u:object_r:mysqld_log_t,s0) -/run/mysqld.* gen_context(system_u:object_r:mysqld_var_run_t,s0) +/run/mysqld.* gen_context(system_u:object_r:mysqld_var_run_t,s0) -- 2.11.0