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 B4D3C138200 for ; Tue, 30 Oct 2012 20:25:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BD03D21C0B8; Tue, 30 Oct 2012 20:24:57 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id DDFAD21C0B8 for ; Tue, 30 Oct 2012 20:24:56 +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 0CA4C33D918 for ; Tue, 30 Oct 2012 20:24:56 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 9EE5EE5447 for ; Tue, 30 Oct 2012 20:24:54 +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: <1351628274.1d096aa2bd256944778188052f2aee24448b308b.SwifT@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/kernel/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/kernel/devices.if X-VCS-Directories: policy/modules/kernel/ X-VCS-Committer: SwifT X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 1d096aa2bd256944778188052f2aee24448b308b X-VCS-Branch: master Date: Tue, 30 Oct 2012 20:24:54 +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: 0b53ad18-4ba2-4e9d-ba16-7e17d9759520 X-Archives-Hash: 99cf3cd79d31a68bf5f71eb5ccc04a8a commit: 1d096aa2bd256944778188052f2aee24448b308b Author: Dominick Grift gmail com> AuthorDate: Tue Oct 30 18:39:44 2012 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Tue Oct 30 20:17:54 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=1d096aa2 For virtd Signed-off-by: Dominick Grift gmail.com> --- policy/modules/kernel/devices.if | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/policy/modules/kernel/devices.if b/policy/modules/kernel/devices.if index 8276ab0..6c92734 100644 --- a/policy/modules/kernel/devices.if +++ b/policy/modules/kernel/devices.if @@ -4242,6 +4242,24 @@ interface(`dev_read_generic_usb_dev',` ######################################## ## +## Relabel generic the USB devices. +## +## +## +## Domain allowed access. +## +## +# +interface(`dev_relabel_generic_usb_dev',` + gen_require(` + type usb_device_t; + ') + + relabel_chr_files_pattern($1, device_t, usb_device_t) +') + +######################################## +## ## Read and write generic the USB devices. ## ##