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 3F21D1384B4 for ; Wed, 2 Dec 2015 15:45:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D93DC21C0DD; Wed, 2 Dec 2015 15:45: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 6D73C21C0DD for ; Wed, 2 Dec 2015 15:45:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 832EF340961 for ; Wed, 2 Dec 2015 15:45:27 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EC522F47 for ; Wed, 2 Dec 2015 15:45:23 +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: <1447826766.e848a95c2e0d96123aead79676beaf7084ac8d31.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:swift 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: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: e848a95c2e0d96123aead79676beaf7084ac8d31 X-VCS-Branch: swift Date: Wed, 2 Dec 2015 15:45:23 +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: d0884bd0-961d-4544-abe2-02697276a91a X-Archives-Hash: ac2a3206a2855f35d53004cbbebcd545 commit: e848a95c2e0d96123aead79676beaf7084ac8d31 Author: Jason Zaman perfinion com> AuthorDate: Wed Nov 18 06:05:29 2015 +0000 Commit: Sven Vermeulen 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)