1 |
commit: 827b774fcc313e5c6b6b9681a73460b79eee334e |
2 |
Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be> |
3 |
AuthorDate: Fri Nov 28 10:41:28 2014 +0000 |
4 |
Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 28 10:41:40 2014 +0000 |
6 |
URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=827b774f |
7 |
|
8 |
Introduce ntp_manage_config interface |
9 |
|
10 |
--- |
11 |
policy/modules/contrib/ntp.if | 20 ++++++++++++++++++++ |
12 |
1 file changed, 20 insertions(+) |
13 |
|
14 |
diff --git a/policy/modules/contrib/ntp.if b/policy/modules/contrib/ntp.if |
15 |
index e96a309..6a83626 100644 |
16 |
--- a/policy/modules/contrib/ntp.if |
17 |
+++ b/policy/modules/contrib/ntp.if |
18 |
@@ -188,3 +188,23 @@ interface(`ntp_admin',` |
19 |
|
20 |
ntp_run($1, $2) |
21 |
') |
22 |
+ |
23 |
+# This should be in an ifdef distro_gentoo but that is not allowed in if files |
24 |
+ |
25 |
+######################################## |
26 |
+## <summary> |
27 |
+## Manage ntp(d) configuration. |
28 |
+## </summary> |
29 |
+## <param name="domain"> |
30 |
+## <summary> |
31 |
+## Domain allowed access. |
32 |
+## </summary> |
33 |
+## </param> |
34 |
+# |
35 |
+interface(`ntp_manage_config',` |
36 |
+ gen_require(` |
37 |
+ type ntp_conf_t; |
38 |
+ ') |
39 |
+ |
40 |
+ manage_files_pattern($1, ntp_conf_t, ntp_conf_t) |
41 |
+') |