All of lore.kernel.org
 help / color / mirror / Atom feed
From: sven.vermeulen@siphos.be (Sven Vermeulen)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH v4 4/4] Allow initrc_t to create run dirs for contrib modules
Date: Sat, 25 Aug 2012 20:26:39 +0200	[thread overview]
Message-ID: <20120825182639.GE23427@siphos.be> (raw)
In-Reply-To: <20120825182417.GA23427@siphos.be>

Use the init_daemon_run_dir interface in order to allow initrc_t to create the
run dirs of the asterisk, consolekit, dbus, mysql, nscd and tor services.

Signed-off-by: Sven Vermeulen <sven.vermeulen@siphos.be>
---
 asterisk.te   |    1 +
 consolekit.te |    1 +
 dbus.te       |    1 +
 mysql.te      |    1 +
 nscd.te       |    1 +
 tor.te        |    1 +
 6 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/asterisk.te b/asterisk.te
index 159610b..9907175 100644
--- a/asterisk.te
+++ b/asterisk.te
@@ -33,6 +33,7 @@ files_type(asterisk_var_lib_t)
 
 type asterisk_var_run_t;
 files_pid_file(asterisk_var_run_t)
+init_daemon_run_dir(asterisk_var_run_t, "asterisk")
 
 ########################################
 #
diff --git a/consolekit.te b/consolekit.te
index 6f2896d..516328a 100644
--- a/consolekit.te
+++ b/consolekit.te
@@ -14,6 +14,7 @@ logging_log_file(consolekit_log_t)
 
 type consolekit_var_run_t;
 files_pid_file(consolekit_var_run_t)
+init_daemon_run_dir(consolekit_var_run_t, "ConsoleKit")
 
 ########################################
 #
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/nscd.te b/nscd.te
index 7936e09..de5fdc1 100644
--- a/nscd.te
+++ b/nscd.te
@@ -13,6 +13,7 @@ gen_require(`
 # ordering problem with loadable modules
 type nscd_var_run_t;
 files_pid_file(nscd_var_run_t)
+init_daemon_run_dir(nscd_var_run_t, "nscd")
 
 # nscd is both the client program and the daemon.
 type nscd_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

  parent reply	other threads:[~2012-08-25 18:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-25 18:24 [refpolicy] [PATCH v4 0/4] Support /run/* creation for initrc_t Sven Vermeulen
2012-08-25 18:25 ` [refpolicy] [PATCH v4 1/4] Introduce init_daemon_run_dir transformation Sven Vermeulen
2012-08-25 18:25 ` [refpolicy] [PATCH v4 2/4] Use the init_daemon_run_dir interface for udev Sven Vermeulen
2012-08-25 18:26 ` [refpolicy] [PATCH v4 3/4] Allow initrc_t to create run dirs for core modules Sven Vermeulen
2012-08-25 18:26 ` Sven Vermeulen [this message]
2012-08-25 22:42   ` [refpolicy] [PATCH v4 4/4] Allow initrc_t to create run dirs for contrib modules Guido Trentalancia
2012-08-25 22:48     ` Sven Vermeulen
2012-08-29 12:52 ` [refpolicy] [PATCH v4 0/4] Support /run/* creation for initrc_t Christopher J. PeBenito

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120825182639.GE23427@siphos.be \
    --to=sven.vermeulen@siphos.be \
    --cc=refpolicy@oss.tresys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.