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 2126213877A for ; Fri, 8 Aug 2014 08:50:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6139DE0976; Fri, 8 Aug 2014 08:50:50 +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 DCDC5E0974 for ; Fri, 8 Aug 2014 08:50:49 +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 17C5333FFEE for ; Fri, 8 Aug 2014 08:50:49 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id D2E711881E for ; Fri, 8 Aug 2014 08:50:46 +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: <1407487827.6cda444fb573daa75c0e56b67aa2705e5fdb9cff.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: 6cda444fb573daa75c0e56b67aa2705e5fdb9cff X-VCS-Branch: testing Date: Fri, 8 Aug 2014 08:50:46 +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: 53a94a5c-77f5-43b8-9442-3c12bddfa7c1 X-Archives-Hash: fee36c4b1b9a69dbb79696b711541fc8 commit: 6cda444fb573daa75c0e56b67aa2705e5fdb9cff Author: Sven Vermeulen siphos be> AuthorDate: Thu Aug 7 15:31:11 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Fri Aug 8 08:50:27 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=6cda444f 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) ')