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 3EB741389E2 for ; Mon, 15 Dec 2014 19:41:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B6C90E08BA; Mon, 15 Dec 2014 19:41:02 +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 52AD9E08BA for ; Mon, 15 Dec 2014 19:41:02 +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 778E73404B1 for ; Mon, 15 Dec 2014 19:41:01 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1A063C815 for ; Mon, 15 Dec 2014 19:41:00 +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: <1418669782.6999541f9917c0f3da53c2792cf72952fe12e4fb.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master 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: 6999541f9917c0f3da53c2792cf72952fe12e4fb X-VCS-Branch: master Date: Mon, 15 Dec 2014 19:41:00 +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: 98f3729c-f6d8-4720-bf76-d4ea616456c6 X-Archives-Hash: 1881334bc2589b577d2a8885182ee39f commit: 6999541f9917c0f3da53c2792cf72952fe12e4fb Author: Sven Vermeulen siphos be> AuthorDate: Fri Nov 28 10:41:28 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Mon Dec 15 18:56:22 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=6999541f 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) +')