1 |
commit: 4c00c5e35f4ef917dcf92a75d27e1dc780ba01ac |
2 |
Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be> |
3 |
AuthorDate: Sat Aug 25 17:26:07 2012 +0000 |
4 |
Commit: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be> |
5 |
CommitDate: Sat Aug 25 17:30:42 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=4c00c5e3 |
7 |
|
8 |
Dynamic creation of /run/asterisk |
9 |
|
10 |
When starting asterisk, the init script wants to create the /var/run/asterisk |
11 |
location (or /run/asterisk) which it isn't allowed to. By marking this location |
12 |
as the daemon rundir, the init script now can create the directory properly. |
13 |
|
14 |
--- |
15 |
policy/modules/contrib/asterisk.te | 1 + |
16 |
1 files changed, 1 insertions(+), 0 deletions(-) |
17 |
|
18 |
diff --git a/policy/modules/contrib/asterisk.te b/policy/modules/contrib/asterisk.te |
19 |
index 159610b..9907175 100644 |
20 |
--- a/policy/modules/contrib/asterisk.te |
21 |
+++ b/policy/modules/contrib/asterisk.te |
22 |
@@ -33,6 +33,7 @@ files_type(asterisk_var_lib_t) |
23 |
|
24 |
type asterisk_var_run_t; |
25 |
files_pid_file(asterisk_var_run_t) |
26 |
+init_daemon_run_dir(asterisk_var_run_t, "asterisk") |
27 |
|
28 |
######################################## |
29 |
# |