Bug 886733
Summary: | live images built with livecd-creator 18.13 have major SELinux problems (SELinux is preventing /usr/libexec/colord from 'write' accesses on the directory colord.) | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Adam Williamson <awilliam> |
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 18 | CC: | adam.stokes, bcl, bruno, dhuff, dominick.grift, dwalsh, Jasper.Hartline, katzj, mgrepl |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | abrt_hash:8893822a75eca2eba8109db7627235175e3036f59bd29c76bcb19bbac070835c AcceptedNTH | ||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-12-18 06:53:48 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 752665 |
Description
Adam Williamson
2012-12-13 02:29:54 UTC
CCing bcl as this is likely livecd-creator not selinux-policy... If I build an image with -62 on the host and -62 in the package set for the live image, the resulting image boots, but only to gdm: if I click on 'live user' it cycles right back to gdm. If I boot with enforcing=0 and login I see a whole *pile* of AVCs, 52+ from pulseaudio, gnome-settings-daemon, gnome-keyring-daemon, gnome-session, pactl, dconf-service...it's obviously borked. And more AVCs show up just leaving the VM sitting there. This seems to happen whether I set Enforcing or Permissive on the host. Re-assigning to livecd-creator as I'm fairly sure that's where the problem is. system installed from a 62/62 image has the same problem - gdm loops if booted with selinux in enforcing. works if booted with enforcing=off . giant pile of AVCs. If I do 'restorecon -nvr /' , it seems like the system is completely mislabelled - everything seems to be unconfined_u:object_r:root_t:s0 . I see these errors/warnings during live image generation: /etc/selinux/targeted/contexts/files/file_contexts: line 3259 has invalid context system_u:object_r:consoletype_exec_t:s0 /etc/selinux/targeted/contexts/files/file_contexts: line 3835 has invalid context system_u:object_r:consoletype_exec_t:s0 1.0%/etc/selinux/targeted/contexts/files/file_contexts: has invalid context system_u:object_r:consoletype_exec_t:s0 not sure if that's related. I think this is a selinux-policy problem. I built multiple successful livecds using -50 on the host and -60 and -62 on the image. When I upgraded my system (various package upgrades including selinux-policy-3.11.1-62) and built a new livecd it will no longer boot. checking the audit.log on the host doesn't show any unusual denials during the build. I *do* see the output from comment 4, but I also so it on all of the successful builds so I think that is unrelated. what does # grep consoletype_exec_t /etc/selinux/targeted I need to test it on my machine. [root@adam tmp]# grep -r consoletype_exec_t /etc/selinux/targeted [root@adam tmp]# [root@adam tmp]# rpm -V selinux-policy-targeted missing /etc/selinux/targeted/modules/active/modules/consoletype.pp On my desktop I was able to build bootable livecd's using policy -50 (and -62 on the image). When I upgraded to -62 the would not boot. I am missing the same file as comment 8 on the desktop. On my laptop I can build bootable images. It isn't missing the file, and the upgrade path for selinux-policy has been: -46 to -50 to -60 (on 12/8) to -62 today. Note, running yum reinstall selinux-policy-targeted doesn't reinstall the missing file. I am fixing it. Fixed in selinux-policy-3.11.1-63.fc18.noarch Proposing as at least NTH because we may be pulling a newer selinux so we should ensure we get one that fixes this, if we do. mgrepl: can you please submit -63 as an update so we can pull it into builds? thanks. I am going to submit a newer build today. There were more issues to fix. selinux-policy-3.11.1-66.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-66.fc18 Discussed at 2012-12-17 NTH review meeting: http://meetbot.fedoraproject.org/fedora-bugzappers/2012-12-17/f18final-blocker-review-5.2012-12-17-16.40.log.txt . Accepted as NTH - selinux-policy -60 went stable, so we could possibly run into issues building live images with it, we should ensure that doesn't happen. Looks fixed with -66. Thanks. selinux-policy-3.11.1-66.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report. |