From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 2BBB91389E2 for ; Fri, 28 Nov 2014 11:16:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3269DE0838; Fri, 28 Nov 2014 11:16:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8C352E0838 for ; Fri, 28 Nov 2014 11:16:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 72DDE33F9E0 for ; Fri, 28 Nov 2014 11:16:36 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1DD99B14E for ; Fri, 28 Nov 2014 11:16:35 +0000 (UTC) From: "Sven Vermeulen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Vermeulen" Message-ID: <1417173306.c9e4efbf074197e3d774022fb5a4e85ea1d6e8ff.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:next commit in: policy/modules/contrib/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/contrib/ntp.if X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: c9e4efbf074197e3d774022fb5a4e85ea1d6e8ff X-VCS-Branch: next Date: Fri, 28 Nov 2014 11:16:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 94ca8369-5243-4e91-bb7e-dd46d4b36778 X-Archives-Hash: 16e530b231b20b28cfa70f977fd06049 commit: c9e4efbf074197e3d774022fb5a4e85ea1d6e8ff Author: Sven Vermeulen siphos be> AuthorDate: Fri Nov 28 10:41:28 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Fri Nov 28 11:15:06 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=c9e4efbf Introduce ntp_manage_config interface --- policy/modules/contrib/ntp.if | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/policy/modules/contrib/ntp.if b/policy/modules/contrib/ntp.if index e96a309..6a83626 100644 --- a/policy/modules/contrib/ntp.if +++ b/policy/modules/contrib/ntp.if @@ -188,3 +188,23 @@ interface(`ntp_admin',` ntp_run($1, $2) ') + +# This should be in an ifdef distro_gentoo but that is not allowed in if files + +######################################## +## +## Manage ntp(d) configuration. +## +## +## +## Domain allowed access. +## +## +# +interface(`ntp_manage_config',` + gen_require(` + type ntp_conf_t; + ') + + manage_files_pattern($1, ntp_conf_t, ntp_conf_t) +')