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 22614138334 for ; Sat, 9 Jun 2018 05:24:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A7E0FE08F6; Sat, 9 Jun 2018 05:24:56 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 73FE7E08F6 for ; Sat, 9 Jun 2018 05:24:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 29554335CAF for ; Sat, 9 Jun 2018 05:24:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5C40D29E for ; Sat, 9 Jun 2018 05:24:52 +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: <1528456251.d47c34f5d993c54990c4a9504950b880dcc3145d.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/init.if policy/modules/system/lvm.te X-VCS-Directories: policy/modules/system/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: d47c34f5d993c54990c4a9504950b880dcc3145d X-VCS-Branch: master Date: Sat, 9 Jun 2018 05:24:52 +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: e402ea3d-c17f-40d2-9ec5-eafeb8bdf1e1 X-Archives-Hash: 776615ddf48c8c7947fc1e707deb0fc1 commit: d47c34f5d993c54990c4a9504950b880dcc3145d Author: Jason Zaman perfinion com> AuthorDate: Thu Jun 7 10:38:57 2018 +0000 Commit: Jason Zaman gentoo org> CommitDate: Fri Jun 8 11:10:51 2018 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=d47c34f5 lvm: allow reading initrc pipes Bug: https://bugs.gentoo.org/615300 policy/modules/system/init.if | 18 ++++++++++++++++++ policy/modules/system/lvm.te | 5 ++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/policy/modules/system/init.if b/policy/modules/system/init.if index 46e61cb4..d6a8f2ee 100644 --- a/policy/modules/system/init.if +++ b/policy/modules/system/init.if @@ -1859,6 +1859,24 @@ interface(`init_ptrace',` allow $1 init_t:process ptrace; ') +######################################## +## +## Read an init script unnamed pipe. +## +## +## +## Domain allowed access. +## +## +# +interface(`init_read_script_pipes',` + gen_require(` + type initrc_t; + ') + + allow $1 initrc_t:fifo_file read_fifo_file_perms; +') + ######################################## ## ## Write an init script unnamed pipe. diff --git a/policy/modules/system/lvm.te b/policy/modules/system/lvm.te index 9df06823..446ab777 100644 --- a/policy/modules/system/lvm.te +++ b/policy/modules/system/lvm.te @@ -393,9 +393,12 @@ ifdef(`distro_gentoo',` create_dirs_pattern(lvm_t, lvm_etc_t, lvm_metadata_t) # Bug 529430 comment 6 create_dirs_pattern(lvm_t, lvm_etc_t, lvm_etc_t) - # BUg 529430 comment 8 + # Bug 529430 comment 8 manage_fifo_files_pattern(lvm_t, lvm_var_run_t, lvm_var_run_t) + # Bug 615300 + init_read_script_pipes(lvm_t) + filetrans_pattern(lvm_t, lvm_etc_t, lvm_metadata_t, dir, "cache") kernel_request_load_module(lvm_t)