All of lore.kernel.org
 help / color / mirror / Atom feed
From: dwalsh@redhat.com (Daniel J Walsh)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] kernel_devices.patch
Date: Mon, 07 Jun 2010 11:52:40 -0400	[thread overview]
Message-ID: <4C0D15C8.4020006@redhat.com> (raw)
In-Reply-To: <1275917955.809.93.camel@gorn.columbia.tresys.com>

On 06/07/2010 09:39 AM, Christopher J. PeBenito wrote:
> On Mon, 2010-06-07 at 09:23 -0400, Daniel J Walsh wrote:
>> On 06/07/2010 09:20 AM, Christopher J. PeBenito wrote:
>>> On Wed, 2010-06-02 at 16:19 -0400, Daniel J Walsh wrote:
>>>> http://people.fedoraproject.org/~dwalsh/SELinux/F14/kernel_devices.patch
>>>>
>>>> Added default label for /sys so libvirt could relabel to it.
>>>
>>> I don't understand this.  There should be no files labeled sysfs_t,
>>> except for the entries created by the kernel on the fs itself, which get
>>> the right label already.
>>>
>> libvirt currently does the equivalent of
>>
>> chcon svirt_t:MCS1 DEVICE
>> Run QEMU
>> restorecon DEVICE
>>
>> If /sys is<<none>>  then it does not have a label to change the context
>> back to.  And leaves the context with a label svirt_t:MCS1.  If it later
>> picks an svirt_t:MCS1 for a different image, this /sys device is vulnerable.
>
> I still don't understand.  There are no device nodes in sysfs.
>
sysfs supports labeling now.  Certain objects need to have a 
svirt_image_t:MCS label associated with them under /sys (Usb devices?) 
When libvirt needs to changes these labels back to the default it asks 
matchpathcon and it returns sysfs_t.

  reply	other threads:[~2010-06-07 15:52 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-02 20:19 [refpolicy] kernel_devices.patch Daniel J Walsh
2010-06-07 13:20 ` Christopher J. PeBenito
2010-06-07 13:23   ` Daniel J Walsh
2010-06-07 13:39     ` Christopher J. PeBenito
2010-06-07 15:52       ` Daniel J Walsh [this message]
2010-06-07 17:42         ` Stephen Smalley
2010-06-07 18:00         ` Christopher J. PeBenito
2010-06-07 18:09           ` Stephen Smalley
  -- strict thread matches above, loose matches on Subject: below --
2010-08-26 22:46 Daniel J Walsh
2010-02-23 22:07 Daniel J Walsh
2010-03-04 20:30 ` Christopher J. PeBenito
2010-03-05 16:08   ` Daniel J Walsh
2009-11-12 20:58 Daniel J Walsh
2009-11-19 14:44 ` Christopher J. PeBenito
2009-05-21 15:17 Daniel J Walsh
2009-06-08 17:17 ` Christopher J. PeBenito
2009-03-04 21:32 Daniel J Walsh
2009-03-05 15:59 ` Christopher J. PeBenito
2009-03-05 17:27   ` Daniel J Walsh
2008-11-25 21:50 Daniel J Walsh

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=4C0D15C8.4020006@redhat.com \
    --to=dwalsh@redhat.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.