Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Version-Release number of libvirt should be :
libvirt-0.10.2-9 .el6.x86_64
Comment 3Richard W.M. Jones
2012-11-26 21:34:17 UTC
Does it work if you do:
restorecon -R -v ~/.libvirt
Otherwise ... yes, I'm not surprised there are bugs in this
area. We have found a few (in SELinux policy & libvirt) for
RHEL 7. I didn't even look at RHEL 6, since for libguestfs in
RHEL 6 we don't use libvirt.
Comment 5Martin Kletzander
2013-01-29 13:39:09 UTC
libvirt changed usage of home directories to XDG ones, but reverted that change since there is no filename transition in RHEL 6 kernel, thus the directories couldn't be handled with proper selinux contexts.
Since a while after that, selinux-policy lost one rule that helped managing the '.libvirt' directory in user home directories. With older policy the rule can be found by running (with setools-console installed):
sesearch -T -c process -s unconfined_t -t virtd_exec_t
This causes user-ran libvirtd (session mode) not to be transitioned into virtd_t and the directories created by it do not fall under other transition rule that would change the context to the proper one (this rule is not missing):
sesearch -T -s virtd_t -t user_home_dir_t
For more info, see https://bugzilla.redhat.com/show_bug.cgi?id=859331
Based on that, I'm reassigning this bug to selinux-policy as that's the place this fix should happen.
Yes, I see we have
optional_policy(`
virt_transition_svirt(unconfined_t, unconfined_r)
#virt_run(unconfined_t, unconfined_r)
')
for a reason (AFAIK there was a bug). The problem is we are able to make it working in RHEL7 using filename transitios which we don't have in RHEL6.