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 4F4771384B4 for ; Mon, 23 Nov 2015 13:41:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D4F3221C0C2; Mon, 23 Nov 2015 13:41:42 +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 7E0C121C081 for ; Mon, 23 Nov 2015 13:41:42 +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 B2FF434069F for ; Mon, 23 Nov 2015 13:41:41 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 486B4A95 for ; Mon, 23 Nov 2015 13:41:39 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1447826766.e848a95c2e0d96123aead79676beaf7084ac8d31.perfinion@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.fc policy/modules/contrib/ntp.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: e848a95c2e0d96123aead79676beaf7084ac8d31 X-VCS-Branch: master Date: Mon, 23 Nov 2015 13:41:39 +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: 1a3fe7ea-9647-481b-9b27-7ba9da9c7779 X-Archives-Hash: 9f3123ff253226d460b2f65d8700191b Message-ID: <20151123134139.8ed12Q--XBp7fRFNgUZhjsVpRY-APdRQJKw3mhjoG0w@z> commit: e848a95c2e0d96123aead79676beaf7084ac8d31 Author: Jason Zaman perfinion com> AuthorDate: Wed Nov 18 06:05:29 2015 +0000 Commit: Jason Zaman gentoo org> CommitDate: Wed Nov 18 06:06:06 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=e848a95c ntp: add perms for socket /run/ntpd.sock for openntpd policy/modules/contrib/ntp.fc | 1 + policy/modules/contrib/ntp.te | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/policy/modules/contrib/ntp.fc b/policy/modules/contrib/ntp.fc index c01eb54..b58ce47 100644 --- a/policy/modules/contrib/ntp.fc +++ b/policy/modules/contrib/ntp.fc @@ -27,6 +27,7 @@ /var/log/xntpd.* -- gen_context(system_u:object_r:ntpd_log_t,s0) /var/run/ntpd\.pid -- gen_context(system_u:object_r:ntpd_var_run_t,s0) +/var/run/ntpd\.sock -s gen_context(system_u:object_r:ntpd_var_run_t,s0) ifdef(`distro_gentoo',` /usr/bin/sntp -- gen_context(system_u:object_r:ntpdate_exec_t,s0) diff --git a/policy/modules/contrib/ntp.te b/policy/modules/contrib/ntp.te index 2425edc..7af3a6d 100644 --- a/policy/modules/contrib/ntp.te +++ b/policy/modules/contrib/ntp.te @@ -78,7 +78,8 @@ manage_files_pattern(ntpd_t, ntpd_tmpfs_t, ntpd_tmpfs_t) fs_tmpfs_filetrans(ntpd_t, ntpd_tmpfs_t, { dir file }) manage_files_pattern(ntpd_t, ntpd_var_run_t, ntpd_var_run_t) -files_pid_filetrans(ntpd_t, ntpd_var_run_t, file) +manage_sock_files_pattern(ntpd_t, ntpd_var_run_t, ntpd_var_run_t) +files_pid_filetrans(ntpd_t, ntpd_var_run_t, { file sock_file }) can_exec(ntpd_t, ntpd_exec_t)