From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2E59A138334 for ; Tue, 11 Sep 2018 09:06:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 555D8E0DA9; Tue, 11 Sep 2018 09:06:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2D91DE0DA9 for ; Tue, 11 Sep 2018 09:06:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BE6A9335D42 for ; Tue, 11 Sep 2018 09:06:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 366DF3BC for ; Tue, 11 Sep 2018 09:06:44 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1536462466.c83e985052c5fac77e8895d4569aad3289f42d1e.perfinion@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.fc policy/modules/kernel/devices.if policy/modules/kernel/devices.te X-VCS-Directories: policy/modules/kernel/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: c83e985052c5fac77e8895d4569aad3289f42d1e X-VCS-Branch: master Date: Tue, 11 Sep 2018 09:06:44 +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: 1d5933b4-48f6-44b2-ab2a-f509f9f3cc0e X-Archives-Hash: 9af6c684e1822e7c1f0f0a5b9af7f325 commit: c83e985052c5fac77e8895d4569aad3289f42d1e Author: Jagannathan Raman oracle com> AuthorDate: Fri Jul 13 17:05:36 2018 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sun Sep 9 03:07:46 2018 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=c83e9850 vhost: Add /dev/vhost-scsi device of type vhost_device_t. Signed-off-by: Jagannathan Raman oracle.com> policy/modules/kernel/devices.fc | 1 + policy/modules/kernel/devices.if | 2 +- policy/modules/kernel/devices.te | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/policy/modules/kernel/devices.fc b/policy/modules/kernel/devices.fc index e206720b..5ec14acf 100644 --- a/policy/modules/kernel/devices.fc +++ b/policy/modules/kernel/devices.fc @@ -120,6 +120,7 @@ ifdef(`distro_suse', ` ') /dev/vfio/.+ -c gen_context(system_u:object_r:vfio_device_t,s0) /dev/vhost-net -c gen_context(system_u:object_r:vhost_device_t,s0) +/dev/vhost-scsi -c gen_context(system_u:object_r:vhost_device_t,s0) /dev/vbi.* -c gen_context(system_u:object_r:v4l_device_t,s0) /dev/vbox.* -c gen_context(system_u:object_r:xserver_misc_device_t,s0) /dev/vga_arbiter -c gen_context(system_u:object_r:xserver_misc_device_t,s0) diff --git a/policy/modules/kernel/devices.if b/policy/modules/kernel/devices.if index f68d60ab..0966a468 100644 --- a/policy/modules/kernel/devices.if +++ b/policy/modules/kernel/devices.if @@ -4839,7 +4839,7 @@ interface(`dev_relabelfrom_vfio_dev',` ############################ ## -## Allow read/write the vhost net device +## Allow read/write the vhost devices ## ## ## diff --git a/policy/modules/kernel/devices.te b/policy/modules/kernel/devices.te index 4ce5fecf..79b9c8da 100644 --- a/policy/modules/kernel/devices.te +++ b/policy/modules/kernel/devices.te @@ -286,7 +286,8 @@ type v4l_device_t; dev_node(v4l_device_t) # -# vhost_device_t is the type for /dev/vhost-net +# vhost_device_t is the type for vhost devices like +# /dev/vhost-net and /dev/vhost-scsi # type vhost_device_t; dev_node(vhost_device_t)