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 4C86B138010 for ; Thu, 4 Oct 2012 17:36:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 239B6E06FC; Thu, 4 Oct 2012 17:36:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id DB278E06FC for ; Thu, 4 Oct 2012 17:36:15 +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 3A75133C443 for ; Thu, 4 Oct 2012 17:36:15 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 450C4E5451 for ; Thu, 4 Oct 2012 17:36:13 +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: <1349371930.5f88d7d8c6e8edd554e87d58dc00a26c99f7a15e.SwifT@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/contrib/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/contrib/guest.if policy/modules/contrib/guest.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: SwifT X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 5f88d7d8c6e8edd554e87d58dc00a26c99f7a15e X-VCS-Branch: master Date: Thu, 4 Oct 2012 17:36:13 +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: c04914da-882a-4fa5-a880-8a5e2104ec20 X-Archives-Hash: 8982678af1bce4c7edf01e52176f73da commit: 5f88d7d8c6e8edd554e87d58dc00a26c99f7a15e Author: Dominick Grift gmail com> AuthorDate: Thu Oct 4 10:14:25 2012 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Thu Oct 4 17:32:10 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=5f88d7d8 changes to the guest policy module Ported from Fedora with changes We should probably modify userdom_login_user_template() instead to allow all login users to read system state files We might want to make the apache_role() conditional Signed-off-by: Dominick Grift gmail.com> --- policy/modules/contrib/guest.if | 2 +- policy/modules/contrib/guest.te | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/policy/modules/contrib/guest.if b/policy/modules/contrib/guest.if index 8906a32..ad1653f 100644 --- a/policy/modules/contrib/guest.if +++ b/policy/modules/contrib/guest.if @@ -1,4 +1,4 @@ -## Least privledge terminal user role +## Least privledge terminal user role. ######################################## ## diff --git a/policy/modules/contrib/guest.te b/policy/modules/contrib/guest.te index 1cb7311..d928711 100644 --- a/policy/modules/contrib/guest.te +++ b/policy/modules/contrib/guest.te @@ -1,4 +1,4 @@ -policy_module(guest, 1.2.0) +policy_module(guest, 1.2.1) ######################################## # @@ -9,9 +9,15 @@ role guest_r; userdom_restricted_user_template(guest) +kernel_read_system_state(guest_t) + ######################################## # # Local policy # -#gen_user(guest_u,, guest_r, s0, s0) +optional_policy(` + apache_role(guest_r, guest_t) +') + +#gen_user(guest_u, user, guest_r, s0, s0)