* [refpolicy] Take virtio disks into account
@ 2010-07-23 13:40 Mika Pflüger
2010-07-23 13:40 ` [refpolicy] [PATCH 1/1] " Mika Pflüger
0 siblings, 1 reply; 3+ messages in thread
From: Mika Pflüger @ 2010-07-23 13:40 UTC (permalink / raw)
To: refpolicy
Hi,
When using selinux in a virtualized system with virtio disks, the virtio
devices (/dev/vd*) are not labelled correctly. This can be fixed by this one-
liner, treating virtio disks just like any other disk (sata, ide, etc).
Without this patch, the booting grinds to a halt when selinux denies mounting
the root fs (which has to reside on a virtio disk, of course).
Cheers,
Mika Pfl?ger
^ permalink raw reply [flat|nested] 3+ messages in thread
* [refpolicy] [PATCH 1/1] Take virtio disks into account.
2010-07-23 13:40 [refpolicy] Take virtio disks into account Mika Pflüger
@ 2010-07-23 13:40 ` Mika Pflüger
2010-08-02 12:34 ` Christopher J. PeBenito
0 siblings, 1 reply; 3+ messages in thread
From: Mika Pflüger @ 2010-07-23 13:40 UTC (permalink / raw)
To: refpolicy
Signed-off-by: Mika Pfl?ger <debian@mikapflueger.de>
---
policy/modules/kernel/storage.fc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/policy/modules/kernel/storage.fc b/policy/modules/kernel/storage.fc
index d819311..a9b8982 100644
--- a/policy/modules/kernel/storage.fc
+++ b/policy/modules/kernel/storage.fc
@@ -5,7 +5,7 @@
/dev/n?osst[0-3].* -c gen_context(system_u:object_r:tape_device_t,s0)
/dev/n?pt[0-9]+ -c gen_context(system_u:object_r:tape_device_t,s0)
/dev/n?tpqic[12].* -c gen_context(system_u:object_r:tape_device_t,s0)
-/dev/[shmx]d[^/]* -b gen_context(system_u:object_r:fixed_disk_device_t,mls_systemhigh)
+/dev/[shmxv]d[^/]* -b gen_context(system_u:object_r:fixed_disk_device_t,mls_systemhigh)
/dev/aztcd -b gen_context(system_u:object_r:removable_device_t,s0)
/dev/bpcd -b gen_context(system_u:object_r:removable_device_t,s0)
/dev/bsg/.+ -c gen_context(system_u:object_r:scsi_generic_device_t,s0)
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [refpolicy] [PATCH 1/1] Take virtio disks into account.
2010-07-23 13:40 ` [refpolicy] [PATCH 1/1] " Mika Pflüger
@ 2010-08-02 12:34 ` Christopher J. PeBenito
0 siblings, 0 replies; 3+ messages in thread
From: Christopher J. PeBenito @ 2010-08-02 12:34 UTC (permalink / raw)
To: refpolicy
On 07/23/10 09:40, Mika Pfl?ger wrote:
>
> Signed-off-by: Mika Pfl?ger<debian@mikapflueger.de>
> ---
> policy/modules/kernel/storage.fc | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/policy/modules/kernel/storage.fc b/policy/modules/kernel/storage.fc
> index d819311..a9b8982 100644
> --- a/policy/modules/kernel/storage.fc
> +++ b/policy/modules/kernel/storage.fc
> @@ -5,7 +5,7 @@
> /dev/n?osst[0-3].* -c gen_context(system_u:object_r:tape_device_t,s0)
> /dev/n?pt[0-9]+ -c gen_context(system_u:object_r:tape_device_t,s0)
> /dev/n?tpqic[12].* -c gen_context(system_u:object_r:tape_device_t,s0)
> -/dev/[shmx]d[^/]* -b gen_context(system_u:object_r:fixed_disk_device_t,mls_systemhigh)
> +/dev/[shmxv]d[^/]* -b gen_context(system_u:object_r:fixed_disk_device_t,mls_systemhigh)
> /dev/aztcd -b gen_context(system_u:object_r:removable_device_t,s0)
> /dev/bpcd -b gen_context(system_u:object_r:removable_device_t,s0)
> /dev/bsg/.+ -c gen_context(system_u:object_r:scsi_generic_device_t,s0)
Merged.
--
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-08-02 12:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-23 13:40 [refpolicy] Take virtio disks into account Mika Pflüger
2010-07-23 13:40 ` [refpolicy] [PATCH 1/1] " Mika Pflüger
2010-08-02 12:34 ` Christopher J. PeBenito
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.