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 567BE1393A3 for ; Tue, 25 Dec 2012 20:31:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CD0C821C012; Tue, 25 Dec 2012 20:31:27 +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 4AFC121C016 for ; Tue, 25 Dec 2012 20:31:26 +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 E689133D990 for ; Tue, 25 Dec 2012 20:31:25 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 7E69AE543D for ; Tue, 25 Dec 2012 20:31:24 +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: <1356460115.a52c5ebf5ad888924265992c9945a9f07e46c9fc.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/qemu.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: SwifT X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: a52c5ebf5ad888924265992c9945a9f07e46c9fc X-VCS-Branch: master Date: Tue, 25 Dec 2012 20:31:24 +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: e1748296-c3bd-4360-80ac-03ca9faa04a8 X-Archives-Hash: b732665bb0129efacb44dfdb16ad9c4d commit: a52c5ebf5ad888924265992c9945a9f07e46c9fc Author: Sven Vermeulen siphos be> AuthorDate: Tue Dec 25 18:28:35 2012 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Tue Dec 25 18:28:35 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=a52c5ebf Move distro_gentoo stuff towards the end of the file (easier upstream patching) --- policy/modules/contrib/qemu.te | 18 ++++++++++++------ 1 files changed, 12 insertions(+), 6 deletions(-) diff --git a/policy/modules/contrib/qemu.te b/policy/modules/contrib/qemu.te index e21eee6..ebec831 100644 --- a/policy/modules/contrib/qemu.te +++ b/policy/modules/contrib/qemu.te @@ -27,12 +27,6 @@ role qemu_roles types qemu_t; # Local policy # -ifdef(`distro_gentoo',` - optional_policy(` - vde_connect(qemu_t) - ') -') - tunable_policy(`qemu_full_network',` corenet_udp_sendrecv_generic_if(qemu_t) corenet_udp_sendrecv_generic_node(qemu_t) @@ -61,3 +55,15 @@ optional_policy(` allow unconfined_qemu_t self:process { execstack execmem }; allow unconfined_qemu_t qemu_exec_t:file execmod; ') + +ifdef(`distro_gentoo',` + + ################################# + # + # Local policy + # + + optional_policy(` + vde_connect(qemu_t) + ') +')