From 4c68e489502fbe5104c2960d6a91fb12f342ea31 Mon Sep 17 00:00:00 2001 From: Dominick Grift Date: Tue, 30 Oct 2012 19:39:44 +0100 Subject: [PATCH] For virtd Signed-off-by: Dominick Grift --- policy/modules/kernel/devices.if | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/policy/modules/kernel/devices.if b/policy/modules/kernel/devices.if index e59415ffa..9b9c067e9 100644 --- a/policy/modules/kernel/devices.if +++ b/policy/modules/kernel/devices.if @@ -4165,6 +4165,24 @@ interface(`dev_read_generic_usb_dev',` read_chr_files_pattern($1, device_t, usb_device_t) ') +######################################## +## +## 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.