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 36C461384B4 for ; Fri, 18 Dec 2015 04:14:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 913B521C005; Fri, 18 Dec 2015 04:14:28 +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 0D3CC21C005 for ; Fri, 18 Dec 2015 04:14:27 +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 EFEB2340686 for ; Fri, 18 Dec 2015 04:14:26 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 68535A0E for ; Fri, 18 Dec 2015 04:14:25 +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: <1450411949.0460b12a0cbc61b25ebcbf20f283534cc49b98f5.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/system/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/system/mount.if X-VCS-Directories: policy/modules/system/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 0460b12a0cbc61b25ebcbf20f283534cc49b98f5 X-VCS-Branch: master Date: Fri, 18 Dec 2015 04:14:25 +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: 9723d9b9-5cf6-4ce9-8ab8-0e204674ffee X-Archives-Hash: 5ab08950f0bee2eb8c5ac06e886639be commit: 0460b12a0cbc61b25ebcbf20f283534cc49b98f5 Author: Jason Zaman perfinion com> AuthorDate: Thu Dec 17 18:15:37 2015 +0000 Commit: Jason Zaman gentoo org> CommitDate: Fri Dec 18 04:12:29 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=0460b12a Introduce mount_rw_pipes interface policy/modules/system/mount.if | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/policy/modules/system/mount.if b/policy/modules/system/mount.if index 8a2105b..279f6d7 100644 --- a/policy/modules/system/mount.if +++ b/policy/modules/system/mount.if @@ -209,3 +209,23 @@ interface(`mount_rw_loopback_files',` allow $1 mount_loopback_t:file rw_file_perms; ') + +# gentoo specific under here + +######################################## +## +## Read and write mount unnamed pipes +## +## +## +## Domain allowed access. +## +## +# +interface(`mount_rw_pipes',` + gen_require(` + type mount_t; + ') + + allow $1 mount_t:fifo_file rw_fifo_file_perms; +') 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 498971384B4 for ; Fri, 18 Dec 2015 04:14:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C694321C015; Fri, 18 Dec 2015 04:14:40 +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 636E521C015 for ; Fri, 18 Dec 2015 04:14:40 +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 72EB7340634 for ; Fri, 18 Dec 2015 04:14:39 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C8140A0E for ; Fri, 18 Dec 2015 04:14:36 +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: <1450411949.0460b12a0cbc61b25ebcbf20f283534cc49b98f5.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:next commit in: policy/modules/system/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/system/mount.if X-VCS-Directories: policy/modules/system/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 0460b12a0cbc61b25ebcbf20f283534cc49b98f5 X-VCS-Branch: next Date: Fri, 18 Dec 2015 04:14:36 +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: 9bc7993c-8867-4785-a424-6d5a74d35269 X-Archives-Hash: 91b80b08a534ea259054c03d9a7aded2 Message-ID: <20151218041436._ki0KNco0P2P0ZfebNEK3t0FhSyq-UoGfiZGA--4GGw@z> commit: 0460b12a0cbc61b25ebcbf20f283534cc49b98f5 Author: Jason Zaman perfinion com> AuthorDate: Thu Dec 17 18:15:37 2015 +0000 Commit: Jason Zaman gentoo org> CommitDate: Fri Dec 18 04:12:29 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=0460b12a Introduce mount_rw_pipes interface policy/modules/system/mount.if | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/policy/modules/system/mount.if b/policy/modules/system/mount.if index 8a2105b..279f6d7 100644 --- a/policy/modules/system/mount.if +++ b/policy/modules/system/mount.if @@ -209,3 +209,23 @@ interface(`mount_rw_loopback_files',` allow $1 mount_loopback_t:file rw_file_perms; ') + +# gentoo specific under here + +######################################## +## +## Read and write mount unnamed pipes +## +## +## +## Domain allowed access. +## +## +# +interface(`mount_rw_pipes',` + gen_require(` + type mount_t; + ') + + allow $1 mount_t:fifo_file rw_fifo_file_perms; +')