From: sven.vermeulen@siphos.be (Sven Vermeulen) Date: Tue, 14 Aug 2012 19:29:25 +0200 Subject: [refpolicy] [PATCH v3 3/3] Allow initrc_t to create run dirs for dbus, mysqld and tor In-Reply-To: <20120814172720.GA10055@siphos.be> References: <20120814172720.GA10055@siphos.be> Message-ID: <20120814172925.GD10055@siphos.be> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com Use the init_daemon_run_dir interface in order to allow initrc_t to create the run dirs of the dbus, mysqld and tor daemons with the proper file transitions. Signed-off-by: Sven Vermeulen --- dbus.te | 1 + mysql.te | 1 + tor.te | 1 + 3 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dbus.te b/dbus.te index 625cb32..05f2b89 100644 --- a/dbus.te +++ b/dbus.te @@ -35,6 +35,7 @@ files_type(system_dbusd_var_lib_t) type system_dbusd_var_run_t; files_pid_file(system_dbusd_var_run_t) +init_daemon_run_dir(system_dbusd_var_run_t, "dbus") ifdef(`enable_mcs',` init_ranged_system_domain(system_dbusd_t, dbusd_exec_t, s0 - mcs_systemhigh) diff --git a/mysql.te b/mysql.te index 1cf05a3..d4206c9 100644 --- a/mysql.te +++ b/mysql.te @@ -22,6 +22,7 @@ init_daemon_domain(mysqld_safe_t, mysqld_safe_exec_t) type mysqld_var_run_t; files_pid_file(mysqld_var_run_t) +init_daemon_run_dir(mysqld_var_run_t, "mysqld") type mysqld_db_t; files_type(mysqld_db_t) diff --git a/tor.te b/tor.te index c842cad..8cdfd7b 100644 --- a/tor.te +++ b/tor.te @@ -35,6 +35,7 @@ logging_log_file(tor_var_log_t) # pid files type tor_var_run_t; files_pid_file(tor_var_run_t) +init_daemon_run_dir(tor_var_run_t, "tor") ######################################## # -- 1.7.8.6