Description of problem: Livecd-creator silently disables selinux, although it's subsequently re-enabled upon finish, the machine stays unprotected for a considerable amount of time Version-Release number of selected component (if applicable): 19.6.1.fc19 How reproducible: always Steps to Reproduce: 1. vim $(which livecd-creator) 2. enter :151 (i.e. navigate to line 151) 3. observe selinux being disabled Actual results: The machine is exposed during ISO creation due to disabled selinux. Expected results: Protected machine while building ISO images. Additional info: There is a possibility that machine will stay exposed because of livecd-creator or python/library crash.
livecd-creator cannot run in enforcing mode.
Why not?
I don't remember exactly why, other than it not working. Should it be able to? I've never had success with any of our image building tools and selinux. We also have other tools that don't work with enforcing turned on -- lorax, anconda image installs, and livemedia-creator when running anaconda on an image or directory install. IIRC the builders are running in permissive mode.
I know we have had livecd-tool working with SELinux in enforcing mode in the past. /usr/bin/livecd-creator -- system_u:object_r:livecd_exec_t:s0 I think the other tools if labeled livecd_exec_t should work also. This is basically an unconfined domain that is allowed to put labels on disk that the kernel does not understand. If you try the other tools with SELinux in enforcing mode, and labeled livecd_exec_t, it should work. If you get AVC's I would like to look at them.
Looks like things have improved and the switch is no longer needed. I successfully built a couple test images with the host in enforcing for the whole build so I'll revert that patch.
livecd-tools-20.4-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/livecd-tools-20.4-1.fc20
livecd-tools-19.9-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/livecd-tools-19.9-1.fc19
Package livecd-tools-20.4-1.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing livecd-tools-20.4-1.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-1911/livecd-tools-20.4-1.fc20 then log in and leave karma (feedback).
livecd-tools-19.9-1.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
livecd-tools-20.4-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.