Gentoo Archives: gentoo-commits

From: Sven Vermeulen <swift@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-refpolicy:next commit in: policy/modules/contrib/
Date: Fri, 28 Nov 2014 11:16:40
Message-Id: 1417173306.c9e4efbf074197e3d774022fb5a4e85ea1d6e8ff.swift@gentoo
1 commit: c9e4efbf074197e3d774022fb5a4e85ea1d6e8ff
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 11:15:06 2014 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=c9e4efbf
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 +')