From 3a3e7db078d0f5ddd76cc491e75f31c7339a9ca8 Mon Sep 17 00:00:00 2001 From: Dominick Grift Date: Sep 22 2010 13:41:46 +0000 Subject: Use filetrans_pattern. --- diff --git a/policy/modules/services/mysql.te b/policy/modules/services/mysql.te index 13c0555..086df22 100644 --- a/policy/modules/services/mysql.te +++ b/policy/modules/services/mysql.te @@ -129,8 +129,7 @@ userdom_dontaudit_use_unpriv_user_fds(mysqld_t) userdom_read_user_home_content_files(mysqld_t) ifdef(`distro_redhat',` - # because Fedora has the sock_file in the database directory - type_transition mysqld_t mysqld_db_t:sock_file mysqld_var_run_t; + filetrans_pattern(mysqld_t, mysqld_db_t, mysqld_var_run_t, sock_file) ') tunable_policy(`mysql_connect_any',`