Skip to content

Commit

Permalink
Generate context for "*mariadb*" executables
Browse files Browse the repository at this point in the history
Since MariaDB 10.4, the upstream added "*mariadb*" named symlinks for "*mysql*" named executables.
https://jira.mariadb.org/browse/MDEV-17591

Since MariaDB 10.5, the upstream switched them, so the executables are now "*mariadb*" named and the symlinks are "*mysql*" named.
https://jira.mariadb.org/browse/MDEV-21303

Without these SELinux rules, the new "*mariadb*" files haven't got a correct context.
  • Loading branch information
ljavorsk authored and FaramosCZ committed Dec 2, 2020
1 parent 7d13817 commit c4825a8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mysql.fc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ 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)

# 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)

/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)
Expand Down

0 comments on commit c4825a8

Please sign in to comment.