All of lore.kernel.org
 help / color / mirror / Atom feed
From: cpebenito@tresys.com (Christopher J. PeBenito)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 1/1] add vfio support for libvirt
Date: Tue, 15 Sep 2015 08:56:01 -0400	[thread overview]
Message-ID: <55F81561.30000@tresys.com> (raw)
In-Reply-To: <1441438908-1443-2-git-send-email-jason@perfinion.com>

On 9/5/2015 3:41 AM, Jason Zaman wrote:
> From: Alexander Wetzel <alexander.wetzel@web.de>

Merged.


> Signed-off-by: Alexander Wetzel <alexander.wetzel@web.de>
> ---
>  virt.te | 19 +++++++++++++++++++
>  1 file changed, 19 insertions(+)
> 
> diff --git a/virt.te b/virt.te
> index f8a59e4..f512ddc 100644
> --- a/virt.te
> +++ b/virt.te
> @@ -70,6 +70,14 @@ gen_tunable(virt_use_usb, false)
>  ## </desc>
>  gen_tunable(virt_use_xserver, false)
>  
> +## <desc>
> +###      <p>
> +###      Determine whether confined virtual guests
> +###      can use vfio for pci device pass through (vt-d).
> +###      </p>
> +### </desc>
> +gen_tunable(virt_use_vfio, false)
> +
>  attribute virt_ptynode;
>  attribute virt_domain;
>  attribute virt_image_type;
> @@ -415,6 +423,10 @@ corenet_tcp_bind_all_ports(svirt_t)
>  corenet_sendrecv_all_client_packets(svirt_t)
>  corenet_tcp_connect_all_ports(svirt_t)
>  
> +tunable_policy(`virt_use_vfio',`
> +	dev_rw_vfio_dev(svirt_t)
> +')
> +
>  ########################################
>  #
>  # virtd local policy
> @@ -658,6 +670,13 @@ tunable_policy(`virt_use_samba',`
>  	fs_read_cifs_symlinks(virtd_t)
>  ')
>  
> +tunable_policy(`virt_use_vfio',`
> +	allow virtd_t self:capability sys_resource;
> +	allow virtd_t self:process setrlimit;
> +	allow virtd_t svirt_t:process rlimitinh;
> +	dev_relabelfrom_vfio_dev(virtd_t)
> +')
> +
>  optional_policy(`
>  	brctl_domtrans(virtd_t)
>  ')
> 


-- 
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com

  reply	other threads:[~2015-09-15 12:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-05  7:41 [refpolicy] missed patches: VFIO support to libvirt Jason Zaman
2015-09-05  7:41 ` [refpolicy] [PATCH 1/1] add vfio support for libvirt Jason Zaman
2015-09-15 12:56   ` Christopher J. PeBenito [this message]
2015-09-05  7:41 ` [refpolicy] [PATCH 1/1] adds vfio device support to base policy Jason Zaman
2015-09-15 12:55   ` Christopher J. PeBenito

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55F81561.30000@tresys.com \
    --to=cpebenito@tresys.com \
    --cc=refpolicy@oss.tresys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.