Skip to content

Commit

Permalink
Add context for new mariadbd executable files
Browse files Browse the repository at this point in the history
Since MariaDB 10.5 switch between mariadbd and mysqld files
(executable files <-> symlinks), we need to add context to the new
executable files.

The change is noted here:
https://mariadb.com/kb/en/changes-improvements-in-mariadb-105/#binaries-named-mariadb-mysql-symlinked
  • Loading branch information
ljavorsk committed Mar 16, 2021
1 parent e3da923 commit 0cea3ba
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion policy/modules/contrib/mysql.fc
Expand Up @@ -28,11 +28,19 @@ HOME_DIR/\.my\.cnf -- gen_context(system_u:object_r:mysqld_home_t, s0)
/usr/libexec/mysqld -- gen_context(system_u:object_r:mysqld_exec_t,s0)
/usr/libexec/mysqld_safe-scl-helper -- gen_context(system_u:object_r:mysqld_safe_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)
/usr/sbin/ndbd -- gen_context(system_u:object_r:mysqld_exec_t,s0)

#
# /usr - mariadb
#
/usr/bin/mariadbd-safe -- gen_context(system_u:object_r:mysqld_safe_exec_t,s0)
/usr/bin/mariadbd-safe-helper -- gen_context(system_u:object_r:mysqld_exec_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)

#
# /var
#
Expand Down

0 comments on commit 0cea3ba

Please sign in to comment.