1 |
commit: cf9fc00b57371089ca2df94983ece05968580d10 |
2 |
Author: Dominick Grift <dominick.grift <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Oct 31 15:35:03 2012 +0000 |
4 |
Commit: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be> |
5 |
CommitDate: Wed Oct 31 18:06:51 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=cf9fc00b |
7 |
|
8 |
Changes to the inn policy module |
9 |
|
10 |
This interface is for system logger which takes care of innd logs on |
11 |
behalf of inn |
12 |
|
13 |
Signed-off-by: Dominick Grift <dominick.grift <AT> gmail.com> |
14 |
|
15 |
--- |
16 |
policy/modules/contrib/inn.fc | 2 +- |
17 |
policy/modules/contrib/inn.if | 30 +++++++++++++++++++++++++++++- |
18 |
policy/modules/contrib/inn.te | 2 +- |
19 |
3 files changed, 31 insertions(+), 3 deletions(-) |
20 |
|
21 |
diff --git a/policy/modules/contrib/inn.fc b/policy/modules/contrib/inn.fc |
22 |
index d35d1cc..7b6e373 100644 |
23 |
--- a/policy/modules/contrib/inn.fc |
24 |
+++ b/policy/modules/contrib/inn.fc |
25 |
@@ -48,7 +48,7 @@ |
26 |
/usr/lib/news/bin/sm -- gen_context(system_u:object_r:innd_exec_t,s0) |
27 |
/usr/lib/news/bin/startinnfeed -- gen_context(system_u:object_r:innd_exec_t,s0) |
28 |
|
29 |
-/var/log/news(/.*)? gen_context(system_u:object_r:innd_log_t,s0) |
30 |
+/var/log/news.* gen_context(system_u:object_r:innd_log_t,s0) |
31 |
|
32 |
/var/run/innd(/.*)? gen_context(system_u:object_r:innd_var_run_t,s0) |
33 |
/var/run/innd\.pid -- gen_context(system_u:object_r:innd_var_run_t,s0) |
34 |
|
35 |
diff --git a/policy/modules/contrib/inn.if b/policy/modules/contrib/inn.if |
36 |
index 27afa8f..eb87f23 100644 |
37 |
--- a/policy/modules/contrib/inn.if |
38 |
+++ b/policy/modules/contrib/inn.if |
39 |
@@ -54,12 +54,40 @@ interface(`inn_manage_log',` |
40 |
type innd_log_t; |
41 |
') |
42 |
|
43 |
- logging_rw_generic_log_dirs($1) |
44 |
manage_files_pattern($1, innd_log_t, innd_log_t) |
45 |
') |
46 |
|
47 |
######################################## |
48 |
## <summary> |
49 |
+## Create specified objects in generic |
50 |
+## log directories with the innd log file type. |
51 |
+## </summary> |
52 |
+## <param name="domain"> |
53 |
+## <summary> |
54 |
+## Domain allowed access. |
55 |
+## </summary> |
56 |
+## </param> |
57 |
+## <param name="object_class"> |
58 |
+## <summary> |
59 |
+## Class of the object being created. |
60 |
+## </summary> |
61 |
+## </param> |
62 |
+## <param name="name" optional="true"> |
63 |
+## <summary> |
64 |
+## The name of the object being created. |
65 |
+## </summary> |
66 |
+## </param> |
67 |
+# |
68 |
+interface(`inn_generic_log_filetrans_innd_log',` |
69 |
+ gen_require(` |
70 |
+ type innd_log_t; |
71 |
+ ') |
72 |
+ |
73 |
+ logging_log_filetrans($1, innd_log_t, $2, $3) |
74 |
+') |
75 |
+ |
76 |
+######################################## |
77 |
+## <summary> |
78 |
## Create, read, write, and delete |
79 |
## innd pid content. |
80 |
## </summary> |
81 |
|
82 |
diff --git a/policy/modules/contrib/inn.te b/policy/modules/contrib/inn.te |
83 |
index 75b8d8e..58cbdb2 100644 |
84 |
--- a/policy/modules/contrib/inn.te |
85 |
+++ b/policy/modules/contrib/inn.te |
86 |
@@ -1,4 +1,4 @@ |
87 |
-policy_module(inn, 1.10.1) |
88 |
+policy_module(inn, 1.10.2) |
89 |
|
90 |
######################################## |
91 |
# |