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 D8EC7138A1A for ; Fri, 28 Nov 2014 10:44:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BC342E081D; Fri, 28 Nov 2014 10:44:48 +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 3297CE081D for ; Fri, 28 Nov 2014 10:44:48 +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 21B603403EC for ; Fri, 28 Nov 2014 10:44:47 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C229FB147 for ; Fri, 28 Nov 2014 10:44:45 +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: <1417171300.827b774fcc313e5c6b6b9681a73460b79eee334e.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: 827b774fcc313e5c6b6b9681a73460b79eee334e X-VCS-Branch: next Date: Fri, 28 Nov 2014 10:44:45 +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: 651e0b9d-053a-4f08-b332-d35dc2072fcb X-Archives-Hash: 00aba2175b17b74fc968f48714bd758a commit: 827b774fcc313e5c6b6b9681a73460b79eee334e Author: Sven Vermeulen siphos be> AuthorDate: Fri Nov 28 10:41:28 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Fri Nov 28 10:41:40 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=827b774f 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) +')