All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] lxc_contexts file used by libvirt
@ 2016-02-14 14:00 Laurent Bigonville
  2016-02-14 21:24 ` Dominick Grift
  0 siblings, 1 reply; 7+ messages in thread
From: Laurent Bigonville @ 2016-02-14 14:00 UTC (permalink / raw)
  To: refpolicy

Hello,

libvirt uses a config file which is not shipped by the refpolicy 
(config/appconfig-*/lxc_contexts)

The fedora policy contains the following file:

process = "system_u:system_r:svirt_lxc_net_t:s0"
content = "system_u:object_r:virt_var_lib_t:s0"
file = "system_u:object_r:svirt_sandbox_file_t:s0"
sandbox_kvm_process = "system_u:system_r:svirt_qemu_net_t:s0"
sandbox_kvm_process = "system_u:system_r:svirt_qemu_net_t:s0"
sandbox_lxc_process = "system_u:system_r:svirt_lxc_net_t:s0"

This file is not working with the refpolicy because 
"svirt_sandbox_file_t" doesn't exist.

The following file seems to work on my system:

process = "system_u:system_r:svirt_lxc_net_t:s0"
content = "system_u:object_r:virt_var_lib_t:s0"
file = "system_u:object_r:svirt_lxc_file_t:s0"

The processes of the lxc are running under 
"system_u:system_r:virtd_lxc_t:s0-s0:c0.c1023"

Looking at the libvirt code, I don't see sandbox_kvm_process and 
sandbox_lxc_process being used anywhere (except in some test file).

Shouldn't this file be added to the refpolicy?

Cheers,

Laurent Bigonville

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-02-18 13:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-14 14:00 [refpolicy] lxc_contexts file used by libvirt Laurent Bigonville
2016-02-14 21:24 ` Dominick Grift
2016-02-17 17:31   ` Laurent Bigonville
2016-02-17 17:32     ` Dominick Grift
2016-02-17 18:39       ` Daniel J Walsh
2016-02-18 11:07         ` Laurent Bigonville
2016-02-18 13:48           ` Daniel J Walsh

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.