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 1E62613877A for ; Fri, 8 Aug 2014 12:36:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B5EC2E09C2; Fri, 8 Aug 2014 12:36:58 +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 56FF8E09C2 for ; Fri, 8 Aug 2014 12:36:58 +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 86CC034027D for ; Fri, 8 Aug 2014 12:36:57 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id C5CFB1881B for ; Fri, 8 Aug 2014 12:36:55 +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: <1407501402.f0b46842ab3230a1f2aeef4d9ca4685962b5fdaf.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: f0b46842ab3230a1f2aeef4d9ca4685962b5fdaf X-VCS-Branch: testing Date: Fri, 8 Aug 2014 12:36:55 +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: d58f1435-d0f2-4b4f-af46-e3c602e7182a X-Archives-Hash: fbbbe8c21990463cf247d4df9f1294c7 commit: f0b46842ab3230a1f2aeef4d9ca4685962b5fdaf Author: Sven Vermeulen siphos be> AuthorDate: Thu Aug 7 15:31:11 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Fri Aug 8 12:36:42 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=f0b46842 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) ')