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 1B9AA13877A for ; Fri, 8 Aug 2014 15:27:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A5FE8E0A5A; Fri, 8 Aug 2014 15:27:47 +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 3E7EFE0A5A for ; Fri, 8 Aug 2014 15:27:47 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5BBBC3402F6 for ; Fri, 8 Aug 2014 15:27:44 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id A83031881B for ; Fri, 8 Aug 2014 15:27:42 +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: <1407509387.f901a2a92def4f0c956c9ddc43bac2109a5f1348.swift@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/modutils.te X-VCS-Directories: policy/modules/system/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: f901a2a92def4f0c956c9ddc43bac2109a5f1348 X-VCS-Branch: master Date: Fri, 8 Aug 2014 15:27:42 +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: b74629ea-2bba-4e6e-8da0-fab3627e440f X-Archives-Hash: 705e8f78417eba909f9aad413bc43f82 commit: f901a2a92def4f0c956c9ddc43bac2109a5f1348 Author: Sven Vermeulen siphos be> AuthorDate: Thu Aug 7 15:31:11 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Fri Aug 8 14:49:47 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=f901a2a9 Give kmod access to tmpfiles Upon boot, the kmod application (running as insmod_t) can generate a tmpfiles configuration file to allow tmpfiles to relabel and set the required static device nodes for the kernel: kmod static-nodes --format=tmpfiles --output=/run/tmpfiles.d/kmod.conf This requires the insmod_t domain to have create/write privileges towards the /run/tmpfiles.d location. Signed-off-by: Jason Zaman perfinion.com> --- policy/modules/system/modutils.te | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/policy/modules/system/modutils.te b/policy/modules/system/modutils.te index f52e72a..419b826 100644 --- a/policy/modules/system/modutils.te +++ b/policy/modules/system/modutils.te @@ -232,6 +232,11 @@ optional_policy(` ') optional_policy(` + tmpfiles_create_var_run_files(insmod_t) + tmpfiles_write_var_run_files(insmod_t) +') + +optional_policy(` unconfined_domain(insmod_t) unconfined_dontaudit_rw_pipes(insmod_t) ') 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 5D05413877A for ; Fri, 8 Aug 2014 14:50:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7AC2EE09F5; Fri, 8 Aug 2014 14:50:01 +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 D09ADE09F5 for ; Fri, 8 Aug 2014 14:50:00 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D06BE3402CB for ; Fri, 8 Aug 2014 14:49:59 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 88FE91881B for ; Fri, 8 Aug 2014 14:49:58 +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: <1407509387.f901a2a92def4f0c956c9ddc43bac2109a5f1348.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:testing commit in: policy/modules/system/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/system/modutils.te X-VCS-Directories: policy/modules/system/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: f901a2a92def4f0c956c9ddc43bac2109a5f1348 X-VCS-Branch: testing Date: Fri, 8 Aug 2014 14:49:58 +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: 6b04401a-36be-4d59-bde1-d3677b0a06c7 X-Archives-Hash: baa53cca5829a4601960a18a9109d065 Message-ID: <20140808144958.8ZaQGd0gsIkucZSEl6BHsiGLZ3sdqqF5yuoTvLmeTq0@z> commit: f901a2a92def4f0c956c9ddc43bac2109a5f1348 Author: Sven Vermeulen siphos be> AuthorDate: Thu Aug 7 15:31:11 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Fri Aug 8 14:49:47 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=f901a2a9 Give kmod access to tmpfiles Upon boot, the kmod application (running as insmod_t) can generate a tmpfiles configuration file to allow tmpfiles to relabel and set the required static device nodes for the kernel: kmod static-nodes --format=tmpfiles --output=/run/tmpfiles.d/kmod.conf This requires the insmod_t domain to have create/write privileges towards the /run/tmpfiles.d location. Signed-off-by: Jason Zaman perfinion.com> --- policy/modules/system/modutils.te | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/policy/modules/system/modutils.te b/policy/modules/system/modutils.te index f52e72a..419b826 100644 --- a/policy/modules/system/modutils.te +++ b/policy/modules/system/modutils.te @@ -232,6 +232,11 @@ optional_policy(` ') optional_policy(` + tmpfiles_create_var_run_files(insmod_t) + tmpfiles_write_var_run_files(insmod_t) +') + +optional_policy(` unconfined_domain(insmod_t) unconfined_dontaudit_rw_pipes(insmod_t) ')