From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 221E1139694 for ; Fri, 17 Feb 2017 08:44:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7447321C038; Fri, 17 Feb 2017 08:44:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 51B7C21C038 for ; Fri, 17 Feb 2017 08:44:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 33A92340E75 for ; Fri, 17 Feb 2017 08:44:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5128E4AC7 for ; Fri, 17 Feb 2017 08:44:12 +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: <1487319217.70c735ee60f9f82af114a3ea3479955a3659a101.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/system/, policy/modules/kernel/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/kernel/corenetwork.te.in policy/modules/system/init.if policy/modules/system/init.te X-VCS-Directories: policy/modules/system/ policy/modules/kernel/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 70c735ee60f9f82af114a3ea3479955a3659a101 X-VCS-Branch: master Date: Fri, 17 Feb 2017 08:44:12 +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: 43b2cb4c-330b-4759-a4e8-fa564319ecbe X-Archives-Hash: 6c4743cf7f9c3a8eae940d3f2a9535ac commit: 70c735ee60f9f82af114a3ea3479955a3659a101 Author: Chris PeBenito ieee org> AuthorDate: Wed Feb 8 21:56:09 2017 +0000 Commit: Jason Zaman gentoo org> CommitDate: Fri Feb 17 08:13:37 2017 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=70c735ee mon policy from Russell Coker. policy/modules/kernel/corenetwork.te.in | 3 ++- policy/modules/system/init.if | 18 ++++++++++++++---- policy/modules/system/init.te | 2 +- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/policy/modules/kernel/corenetwork.te.in b/policy/modules/kernel/corenetwork.te.in index efae68ae..68aba14c 100644 --- a/policy/modules/kernel/corenetwork.te.in +++ b/policy/modules/kernel/corenetwork.te.in @@ -1,4 +1,4 @@ -policy_module(corenetwork, 1.23.1) +policy_module(corenetwork, 1.23.2) ######################################## # @@ -179,6 +179,7 @@ network_port(matahari, tcp,49000,s0, udp,49000,s0) network_port(memcache, tcp,11211,s0, udp,11211,s0) network_port(milter) # no defined portcon network_port(mmcc, tcp,5050,s0, udp,5050,s0) +network_port(mon, tcp,2583,s0, udp,2583,s0) network_port(monit, tcp,2812,s0) network_port(monopd, tcp,1234,s0) network_port(mountd, tcp,20048,s0, udp,20048,s0) diff --git a/policy/modules/system/init.if b/policy/modules/system/init.if index 82f94548..fdf3f034 100644 --- a/policy/modules/system/init.if +++ b/policy/modules/system/init.if @@ -1088,11 +1088,21 @@ interface(`init_pid_filetrans',` ## # interface(`init_getattr_initctl',` - gen_require(` - type initctl_t; - ') + ifdef(`init_systemd',` + # stat /run/systemd/initctl/fifo + gen_require(` + type init_var_run_t; + ') - allow $1 initctl_t:fifo_file getattr; + allow $1 init_var_run_t:fifo_file getattr; + allow $1 init_var_run_t:dir list_dir_perms; + ',` + gen_require(` + type initctl_t; + ') + + allow $1 initctl_t:fifo_file getattr; + ') ') ######################################## diff --git a/policy/modules/system/init.te b/policy/modules/system/init.te index c688c89b..03aaae53 100644 --- a/policy/modules/system/init.te +++ b/policy/modules/system/init.te @@ -1,4 +1,4 @@ -policy_module(init, 2.2.1) +policy_module(init, 2.2.2) gen_require(` class passwd rootok;