From: sven.vermeulen@siphos.be (Sven Vermeulen)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 4/5] Add interfaces to manage attributes of asterisk log and pid files
Date: Mon, 26 Mar 2012 20:50:26 +0200 [thread overview]
Message-ID: <20120326185026.GE24792@siphos.be> (raw)
In-Reply-To: <20120326184827.GA24792@siphos.be>
Signed-off-by: Sven Vermeulen <sven.vermeulen@siphos.be>
---
asterisk.if | 43 +++++++++++++++++++++++++++++++++++++++++++
1 files changed, 43 insertions(+), 0 deletions(-)
diff --git a/asterisk.if b/asterisk.if
index 8b8143e..bd6273f 100644
--- a/asterisk.if
+++ b/asterisk.if
@@ -90,3 +90,46 @@ interface(`asterisk_admin',`
files_list_pids($1)
admin_pattern($1, asterisk_var_run_t)
')
+
+#######################################
+## <summary>
+## Allow changing the attributes of the asterisk log files and directories
+## </summary>
+## <param name="domain">
+## <summary>
+## Domain allowed to change the attributes of the asterisk log files and
+## directories
+## </summary>
+## </param>
+#
+interface(`asterisk_setattr_logs',`
+ gen_require(`
+ type asterisk_log_t;
+ ')
+
+ setattr_files_pattern($1, asterisk_log_t, asterisk_log_t)
+ setattr_dirs_pattern($1, asterisk_log_t, asterisk_log_t)
+
+ logging_search_logs($1)
+')
+
+#######################################
+## <summary>
+## Allow changing the attributes of the asterisk PID files
+## </summary>
+## <param name="domain">
+## <summary>
+## Domain allowed to change the attributes of the asterisk PID files
+## </summary>
+## </param>
+#
+interface(`asterisk_setattr_pid_files',`
+ gen_require(`
+ type asterisk_var_run_t;
+ ')
+
+ setattr_files_pattern($1, asterisk_var_run_t, asterisk_var_run_t)
+ setattr_dirs_pattern($1, asterisk_var_run_t, asterisk_var_run_t)
+
+ files_search_pids($1)
+')
--
1.7.3.4
next prev parent reply other threads:[~2012-03-26 18:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-26 18:48 [refpolicy] [PATCH 0/5] Updates for asterisk domain Sven Vermeulen
2012-03-26 18:49 ` [refpolicy] [PATCH 1/5] Allow asterisk to chown its own /var/run/asterisk directory Sven Vermeulen
2012-04-20 20:37 ` Christopher J. PeBenito
2012-03-26 18:49 ` [refpolicy] [PATCH 2/5] Allow asterisk to listen on its control socket Sven Vermeulen
2012-04-20 20:37 ` Christopher J. PeBenito
2012-03-26 18:50 ` [refpolicy] [PATCH 3/5] Asterisk requires access to /dev/random too Sven Vermeulen
2012-04-20 20:37 ` Christopher J. PeBenito
2012-03-26 18:50 ` Sven Vermeulen [this message]
2012-04-20 20:37 ` [refpolicy] [PATCH 4/5] Add interfaces to manage attributes of asterisk log and pid files Christopher J. PeBenito
2012-03-26 18:50 ` [refpolicy] [PATCH 5/5] Allow initrc to manage asterisk log and pid file attributes Sven Vermeulen
2012-04-20 20:37 ` 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=20120326185026.GE24792@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.