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 13C77138010 for ; Wed, 10 Oct 2012 19:52:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C4753E04D6; Wed, 10 Oct 2012 19:52:27 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 4462AE04D2 for ; Wed, 10 Oct 2012 19:52:17 +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 9A55933D7FD for ; Wed, 10 Oct 2012 19:52:16 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 51F09E5449 for ; Wed, 10 Oct 2012 19:52:14 +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: <1349898568.27a9c01ce8fe128577daeefec8ced8025b3e76ee.SwifT@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/admin/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/admin/bootloader.if X-VCS-Directories: policy/modules/admin/ X-VCS-Committer: SwifT X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 27a9c01ce8fe128577daeefec8ced8025b3e76ee X-VCS-Branch: master Date: Wed, 10 Oct 2012 19:52:14 +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: 0a511428-02b4-4fc2-8895-8b39f3b4c207 X-Archives-Hash: 9224a1b21828be2c78d414da1e6ca52f commit: 27a9c01ce8fe128577daeefec8ced8025b3e76ee Author: Dominick Grift gmail com> AuthorDate: Tue Oct 9 07:44:35 2012 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Wed Oct 10 19:49:28 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=27a9c01c Changes to the bootloader policy module Add bootloader_exec() for kdumpgui Signed-off-by: Dominick Grift gmail.com> --- policy/modules/admin/bootloader.if | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/policy/modules/admin/bootloader.if b/policy/modules/admin/bootloader.if index a778bb1..cc8df9d 100644 --- a/policy/modules/admin/bootloader.if +++ b/policy/modules/admin/bootloader.if @@ -47,6 +47,25 @@ interface(`bootloader_run',` ######################################## ## +## Execute bootloader in the caller domain. +## +## +## +## Domain allowed access. +## +## +# +interface(`bootloader_exec',` + gen_require(` + type bootloader_exec_t; + ') + + corecmd_search_bin($1) + can_exec($1, bootloader_exec_t) +') + +######################################## +## ## Read the bootloader configuration file. ## ##