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 C5D5F1387B1 for ; Mon, 11 Nov 2013 13:46:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2630CE0BC0; Mon, 11 Nov 2013 13:46:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 78144E0BBC for ; Mon, 11 Nov 2013 13:45:57 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8E2A833F166 for ; Mon, 11 Nov 2013 13:45:56 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id EA1BFE530A for ; Mon, 11 Nov 2013 13:45:53 +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: <1384177438.0c56b588f99a890de5117d0af762a70a0289bc07.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: 0c56b588f99a890de5117d0af762a70a0289bc07 X-VCS-Branch: master Date: Mon, 11 Nov 2013 13:45:53 +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: 230410a3-81c0-4c5a-bac1-1b11b26759c3 X-Archives-Hash: ee0e6b86643a61a1f28c5f3fb28d95db commit: 0c56b588f99a890de5117d0af762a70a0289bc07 Author: Dominick Grift gmail com> AuthorDate: Fri Oct 4 17:06:10 2013 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Mon Nov 11 13:43:58 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=0c56b588 ntp: create ntp_read_drift_files() for dhclient Signed-off-by: Dominick Grift gmail.com> --- policy/modules/contrib/ntp.if | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/policy/modules/contrib/ntp.if b/policy/modules/contrib/ntp.if index b59196f..e96a309 100644 --- a/policy/modules/contrib/ntp.if +++ b/policy/modules/contrib/ntp.if @@ -100,6 +100,25 @@ interface(`ntp_initrc_domtrans',` ######################################## ## +## Read ntp drift files. +## +## +## +## Domain allowed access. +## +## +# +interface(`ntp_read_drift_files',` + gen_require(` + type ntp_drift_t; + ') + + files_search_var_lib($1) + read_files_pattern($1, ntp_drift_t, ntp_drift_t) +') + +######################################## +## ## Read and write ntpd shared memory. ## ## @@ -153,7 +172,7 @@ interface(`ntp_admin',` allow $2 system_r; files_list_etc($1) - admin_pattern($1, { ntpd_key_t ntp_conf_t ntp_drift_t }) + admin_pattern($1, { ntpd_key_t ntp_conf_t }) logging_list_logs($1) admin_pattern($1, ntpd_log_t) @@ -161,6 +180,9 @@ interface(`ntp_admin',` files_list_tmp($1) admin_pattern($1, ntpd_tmp_t) + files_list_var_lib($1) + admin_pattern($1, ntp_drift_t) + files_list_pids($1) admin_pattern($1, ntpd_var_run_t)