1 |
commit: ea4f4fa195aa079306669e20f23a271825a0e7a7 |
2 |
Author: David Sugar <dsugar <AT> tresys <DOT> com> |
3 |
AuthorDate: Fri Nov 16 17:43:25 2018 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 18 10:56:47 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=ea4f4fa1 |
7 |
|
8 |
Interface to read cron_system_spool_t |
9 |
|
10 |
Useful for the case that manage isn't requied. |
11 |
|
12 |
Signed-off-by: Dave Sugar <dsugar <AT> tresys.com> |
13 |
Signed-off-by: Jason Zaman <jason <AT> perfinion.com> |
14 |
|
15 |
policy/modules/services/cron.if | 20 ++++++++++++++++++++ |
16 |
1 file changed, 20 insertions(+) |
17 |
|
18 |
diff --git a/policy/modules/services/cron.if b/policy/modules/services/cron.if |
19 |
index 7bb6065b..87f8322b 100644 |
20 |
--- a/policy/modules/services/cron.if |
21 |
+++ b/policy/modules/services/cron.if |
22 |
@@ -703,6 +703,26 @@ interface(`cron_manage_system_spool',` |
23 |
manage_files_pattern($1, system_cron_spool_t, system_cron_spool_t) |
24 |
') |
25 |
|
26 |
+######################################## |
27 |
+## <summary> |
28 |
+## Read the system spool. |
29 |
+## </summary> |
30 |
+## <param name="domain"> |
31 |
+## <summary> |
32 |
+## Domain allowed access. |
33 |
+## </summary> |
34 |
+## </param> |
35 |
+# |
36 |
+interface(`cron_read_system_spool',` |
37 |
+ gen_require(` |
38 |
+ type system_cron_spool_t; |
39 |
+ ') |
40 |
+ |
41 |
+ cron_search_spool($1) |
42 |
+ list_dirs_pattern($1, system_cron_spool_t, system_cron_spool_t) |
43 |
+ read_files_pattern($1, system_cron_spool_t, system_cron_spool_t) |
44 |
+') |
45 |
+ |
46 |
######################################## |
47 |
## <summary> |
48 |
## Read and write crond temporary files. |