Skip to contentSkip to conversation

kernel_corenetwork.te.in.patch

refpolicy Daniel J Walsh 2 participants 6 messages Jun 2, 2010 – Jun 7, 2010 1 message not in the archive

lore
Share & tools
lore
#3 lore raw
Quoted 9 lines · Daniel J Walsh
Quoted 6 lines · Christopher J. PeBenito
Quoted 3 lines · Daniel J Walsh

http://people.fedoraproject.org/~dwalsh/SELinux/F14/kernel_corenetwork.te.in.patch

tun_tap_device is an mls trusted object

Why? This seems wrong to me.

I think virtual machines at different levels need to talk to this device.

But there are several of these devices. Making it trusted means that theres no separation between the networks, which seems contrary to what a MLS system would want. More likely, the MLS label needs to be changed as needed.

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
#4 lore raw
Quoted 7 lines · Christopher J. PeBenito
Quoted 6 lines · Daniel J Walsh
Quoted 5 lines · Christopher J. PeBenito
Quoted 3 lines · Daniel J Walsh

http://people.fedoraproject.org/~dwalsh/SELinux/F14/kernel_corenetwork.te.in.patch

tun_tap_device is an mls trusted object

Quoted 9 lines
Quoted 3 lines
Quoted 1 line

Why? This seems wrong to me.

I think virtual machines at different levels need to talk to this device.

But there are several of these devices. Making it trusted means that theres no separation between the networks, which seems contrary to what a MLS system would want. More likely, the MLS label needs to be changed as needed.

I think the kernel will take care of the isolation.

Eric Dan, Is tuntap device per qemu instance?

#6 lore raw
In reply to a message not in the archive
Quoted 20 lines · Daniel P. Berrange
Quoted 19 lines · Daniel J Walsh
Quoted 7 lines · Christopher J. PeBenito
Quoted 6 lines · Daniel J Walsh
Quoted 5 lines · Christopher J. PeBenito
Quoted 3 lines · Daniel J Walsh

http://people.fedoraproject.org/~dwalsh/SELinux/F14/kernel_corenetwork.te.in.patch

tun_tap_device is an mls trusted object

Quoted 9 lines
Quoted 3 lines
Quoted 1 line

Why? This seems wrong to me.

I think virtual machines at different levels need to talk to this device.

But there are several of these devices. Making it trusted means that theres no separation between the networks, which seems contrary to what a MLS system would want. More likely, the MLS label needs to be changed as needed.

I think the kernel will take care of the isolation.

Quoted 7 lines
Quoted 1 line

Eric Dan, Is tuntap device per qemu instance?

Yes, every guest NIC gets associated with its own TAP device. libvirtd opens /dev/net/tun. This creates a new tap devices 'vnet0', 'vnet1', 'vnet2' etc. The file descriptor for each NIC's tap device is passed to the QEMU process when it starts, or using SCM_RIGHTS for NIC hotplug to an existing QEMU.

This is my exact point. You're trusting libvirtd to handle all that correctly. Nothing stops qemu from using the wrong device. This just reinforces my thinking that it is _not_ a trusted device.

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com