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 434E41381FA for ; Sat, 29 Dec 2012 18:24:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2170121C0AB; Sat, 29 Dec 2012 18:24:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7C24C21C0AB for ; Sat, 29 Dec 2012 18:24:19 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 89ACC33D83B for ; Sat, 29 Dec 2012 18:24:18 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 97129E5451 for ; Sat, 29 Dec 2012 18:24:16 +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: <1356801219.e81132e1d71edbe52e2199912b8b75353b982fe0.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: e81132e1d71edbe52e2199912b8b75353b982fe0 X-VCS-Branch: master Date: Sat, 29 Dec 2012 18:24:16 +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: 70837dad-c386-4360-9164-78174c4cab35 X-Archives-Hash: 066d5ad8faa0098cff0ae6709a05b715 commit: e81132e1d71edbe52e2199912b8b75353b982fe0 Author: Sven Vermeulen siphos be> AuthorDate: Sat Dec 29 17:13:39 2012 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Sat Dec 29 17:13:39 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=e81132e1 Udev init script writes to /proc/sys/kernel/hotplug The pseudofile, labeled proc_t, should be writeable by the init scripts. The udev init script for instance runs echo "" > /proc/sys/kernel/hotplug --- policy/modules/system/init.te | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/policy/modules/system/init.te b/policy/modules/system/init.te index e55e9f1..c44b9d0 100644 --- a/policy/modules/system/init.te +++ b/policy/modules/system/init.te @@ -907,6 +907,8 @@ ifdef(`distro_gentoo',` manage_dirs_pattern(initrc_t, initrc_var_run_t, initrc_var_run_t) files_pid_filetrans(initrc_t, initrc_var_run_t, dir) + kernel_write_proc_files(initrc_t) + dev_manage_sysfs_dirs(initrc_t) files_create_pid_dirs(initrc_t)