All of lore.kernel.org
 help / color / mirror / Atom feed
From: dominick.grift@gmail.com (Dominick Grift)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 2/2] Declare a virtio port device type and label /dev/vport.* accordingly
Date: Tue, 04 Sep 2012 14:50:57 +0200	[thread overview]
Message-ID: <1346763057.15262.28.camel@d30.localdomain> (raw)
In-Reply-To: <5045D7D0.9030502@redhat.com>



On Tue, 2012-09-04 at 12:28 +0200, Miroslav Grepl wrote:
> On 08/31/2012 07:38 PM, Dominick Grift wrote:
> > Signed-off-by: Dominick Grift <dominick.grift@gmail.com>
> > ---
> >   policy/modules/kernel/devices.fc | 1 +
> >   policy/modules/kernel/devices.te | 3 +++
> >   2 files changed, 4 insertions(+)
> >
> > diff --git a/policy/modules/kernel/devices.fc b/policy/modules/kernel/devices.fc
> > index 5214c08..94505c4 100644
> > --- a/policy/modules/kernel/devices.fc
> > +++ b/policy/modules/kernel/devices.fc
> > @@ -124,6 +124,7 @@ ifdef(`distro_suse', `
> >   /dev/vmmon		-c	gen_context(system_u:object_r:vmware_device_t,s0)
> >   /dev/vmnet.*		-c	gen_context(system_u:object_r:vmware_device_t,s0)
> >   /dev/video.*		-c	gen_context(system_u:object_r:v4l_device_t,s0)
> > +/dev/vport.*		-c	gen_context(system_u:object_r:virtio_device_t,s0)
> >   /dev/vrtpanel		-c	gen_context(system_u:object_r:mouse_device_t,s0)
> >   /dev/vttuner		-c	gen_context(system_u:object_r:v4l_device_t,s0)
> >   /dev/vtx.*		-c	gen_context(system_u:object_r:v4l_device_t,s0)
> > diff --git a/policy/modules/kernel/devices.te b/policy/modules/kernel/devices.te
> > index 99fe460..52c535d 100644
> > --- a/policy/modules/kernel/devices.te
> > +++ b/policy/modules/kernel/devices.te
> > @@ -272,6 +272,9 @@ dev_node(v4l_device_t)
> >   type vhost_device_t;
> >   dev_node(vhost_device_t)
> >   
> > +type virtio_device_t;
> > +dev_node(virtio_device_t)
> > +
> >   # Type for vmware devices.
> >   type vmware_device_t;
> >   dev_node(vmware_device_t)
> We declare it in terminal.* policy files.

must be new then, last time i tried (a week ago on f18?) it was still
mislabeled (device_t)

> Also I think base access interfaces should be part of this patch?

i don't see that requirement. i also haven't encountered any process
trying to access it yet.

  reply	other threads:[~2012-09-04 12:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-31 17:38 [refpolicy] [PATCH 0/2] label some character device nodes Dominick Grift
2012-08-31 17:38 ` [refpolicy] [PATCH 1/2] Declare a loop control device node type and label /dev/loop-control accordingly Dominick Grift
2012-09-05 17:45   ` Christopher J. PeBenito
2012-08-31 17:38 ` [refpolicy] [PATCH 2/2] Declare a virtio port device type and label /dev/vport.* accordingly Dominick Grift
2012-09-04 10:28   ` Miroslav Grepl
2012-09-04 12:50     ` Dominick Grift [this message]
2012-09-04 18:31       ` Miroslav Grepl
2012-09-04 19:08         ` Dominick Grift
2012-09-04 19:23         ` Dominick Grift

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=1346763057.15262.28.camel@d30.localdomain \
    --to=dominick.grift@gmail.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.