Skip to content

Commit

Permalink
[refactoring] Code style adjustments to align with content from Fedor…
Browse files Browse the repository at this point in the history
…a 'selinux-policy' package

This commit contains no functional changes (No-op).
It updates code style to closely match the guidelines and structure outlined in the following resource:
  https://github.com/fedora-selinux/selinux-policy/blob/rawhide/policy/modules/contrib/mysql.fc

--

The differences has been introduced in commits:
  fedora-selinux/selinux-policy@4cd4009
  c4825a8
  • Loading branch information
FaramosCZ committed Sep 25, 2024
1 parent 58faf0f commit 60b9eaa
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions mysql.fc
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,23 @@ 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/mysqld(-max|-debug)? -- gen_context(system_u:object_r:mysqld_exec_t,s0)
/usr/bin/mysqlmanager -- gen_context(system_u:object_r:mysqlmanagerd_exec_t,s0)
/usr/bin/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)
/usr/bin/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/libexec/mariadbd -- gen_context(system_u:object_r:mysqld_exec_t,s0)

/usr/bin/mysqld(-max|-debug)? -- gen_context(system_u:object_r:mysqld_exec_t,s0)
/usr/bin/mysqlmanager -- gen_context(system_u:object_r:mysqlmanagerd_exec_t,s0)
/usr/bin/ndbd -- gen_context(system_u:object_r:mysqld_exec_t,s0)
/usr/bin/mariadb-backup -- gen_context(system_u:object_r:mysqld_exec_t,s0)

#
# /var
Expand Down

0 comments on commit 60b9eaa

Please sign in to comment.