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 5B5AA1393DD for ; Tue, 15 Jul 2014 16:16:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CF4C3E090F; Tue, 15 Jul 2014 16:16:39 +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 4A597E090F for ; Tue, 15 Jul 2014 16:16:39 +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 2706633F692 for ; Tue, 15 Jul 2014 16:16:38 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id DDBA4193E5 for ; Tue, 15 Jul 2014 16:16:36 +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: <1405440762.7841919ab435ccb72bb9a469eee887a827748f25.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/init.te X-VCS-Directories: policy/modules/system/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 7841919ab435ccb72bb9a469eee887a827748f25 X-VCS-Branch: master Date: Tue, 15 Jul 2014 16:16: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: ebeab740-70d1-4d23-9ebc-7373806477bf X-Archives-Hash: 6a9b2666198e5613868130c5b0a422e1 commit: 7841919ab435ccb72bb9a469eee887a827748f25 Author: Jason Zaman perfinion com> AuthorDate: Tue Jul 15 16:10:33 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Tue Jul 15 16:12:42 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=7841919a initrc_t needs to chmod /dev nodes In the early phase of boot, initrc_t needs to be able to correct the perms on some nodes in /dev Signed-off-by: Jason Zaman perfinion.com> --- policy/modules/system/init.te | 2 ++ 1 file changed, 2 insertions(+) diff --git a/policy/modules/system/init.te b/policy/modules/system/init.te index b73bd23..88fe1de 100644 --- a/policy/modules/system/init.te +++ b/policy/modules/system/init.te @@ -941,6 +941,8 @@ ifdef(`distro_gentoo',` kernel_write_proc_files(initrc_t) dev_manage_sysfs_dirs(initrc_t) + # needs to chmod some devices in early boot + dev_setattr_generic_chr_files(initrc_t) files_create_pid_dirs(initrc_t) files_dontaudit_write_usr_dirs(initrc_t)