From: sven.vermeulen@siphos.be (Sven Vermeulen) Date: Wed, 25 Jul 2012 12:59:45 +0200 Subject: [refpolicy] [PATCH 2/2] Allow init scripts to create /run/mysqld and /run/dbus In-Reply-To: <1343213985-3593-1-git-send-email-sven.vermeulen@siphos.be> References: <1343213985-3593-1-git-send-email-sven.vermeulen@siphos.be> Message-ID: <1343213985-3593-3-git-send-email-sven.vermeulen@siphos.be> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com Allow the init scripts to create /run/mysqld and /run/dbus with the proper file transition in place Signed-off-by: Sven Vermeulen --- policy/modules/system/init.te | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/policy/modules/system/init.te b/policy/modules/system/init.te index 6ae70ea..9ffeaa4 100644 --- a/policy/modules/system/init.te +++ b/policy/modules/system/init.te @@ -626,6 +626,8 @@ optional_policy(` optional_policy(` dbus_connect_system_bus(initrc_t) + dbus_create_system_dbusd_run_dirs(initrc_t) + dbus_generic_pid_filetrans_system_dbusd_run(initrc_t, dir, "dbus") dbus_system_bus_client(initrc_t) dbus_read_config(initrc_t) @@ -738,9 +740,11 @@ optional_policy(` mysql_manage_db_dirs(initrc_t) ') + mysql_create_run_dirs(initrc_t) + mysql_generic_run_filetrans_pid(initrc_t, dir, "mysqld") + mysql_read_config(initrc_t) mysql_stream_connect(initrc_t) mysql_write_log(initrc_t) - mysql_read_config(initrc_t) ') optional_policy(` -- 1.7.8.6