From d4b14cddbb43234dace42bdcd51af57a27a005c6 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Tue, 17 Oct 2023 15:31:05 +1100 Subject: [PATCH] Add mariadb-backup and mariadbd (upstream) mariadb-backup needs to access raw files so give it the same context as the server. mariadbd upstream has its path in /usr/sbin/mariadbd so we can add that to the default policy if a user installs an upstream package. Upstream bug: https://jira.mariadb.org/browse/MDEV-24941 --- mysql.fc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mysql.fc b/mysql.fc index 9a0b92d..ae7dd80 100644 --- a/mysql.fc +++ b/mysql.fc @@ -35,6 +35,9 @@ HOME_DIR/\.my\.cnf -- gen_context(system_u:object_r:mysqld_home_t, s0) /usr/bin/mariadb-upgrade -- gen_context(system_u:object_r:mysqld_exec_t,s0) /usr/libexec/mariadbd -- gen_context(system_u:object_r:mysqld_exec_t,s0) +/usr/sbin/mariadbd -- gen_context(system_u:object_r:mysqld_exec_t,s0) + +/usr/bin/mariadb-backup -- gen_context(system_u:object_r:mysqld_exec_t,s0) /usr/sbin/mysqld(-max|-debug)? -- gen_context(system_u:object_r:mysqld_exec_t,s0) /usr/sbin/mysqlmanager -- gen_context(system_u:object_r:mysqlmanagerd_exec_t,s0)