Bug 499618 - imgcreate.errors.CreatorError: SELinux requested but not enabled on host
imgcreate.errors.CreatorError: SELinux requested but not enabled on host
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: livecd-tools (Show other bugs)
10
All Linux
low Severity medium
: ---
: ---
Assigned To: Jeremy Katz
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-07 09:10 EDT by udo
Modified: 2009-05-07 13:01 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-05-07 13:01:17 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description udo 2009-05-07 09:10:27 EDT
Description of problem:
imgcreate.errors.CreatorError: SELinux requested but not enabled on host
when creating livecd withe defoult kickstart file

Version-Release number of selected component (if applicable):
020.1-1

How reproducible:
# livecd-creator --config=/usr/share/doc/livecd-tools-020.1/livecd-fedora-minimal.ks
T
Steps to Reproduce:
1.livecd-creator --config=/usr/share/doc/livecd-tools-020.1/livecd-fedora-minimal.ks
2.
3.
  
Actual results:
raceback (most recent call last):
  File "/usr/bin/livecd-creator", line 136, in <module>
    sys.exit(main())
  File "/usr/bin/livecd-creator", line 112, in main
    creator = imgcreate.LiveImageCreator(ks, name, fs_label)
  File "/usr/lib/python2.5/site-packages/imgcreate/live.py", line 47, in __init__
    LoopImageCreator.__init__(self, *args)
  File "/usr/lib/python2.5/site-packages/imgcreate/creator.py", line 788, in __init__
    ImageCreator.__init__(self, ks, name)
  File "/usr/lib/python2.5/site-packages/imgcreate/creator.py", line 76, in __init__
    self.__sanity_check()
  File "/usr/lib/python2.5/site-packages/imgcreate/creator.py", line 404, in __sanity_check
    raise CreatorError("SELinux requested but not enabled on host")
imgcreate.errors.CreatorError: SELinux requested but not enabled on host



Expected results:
livecd created

Additional info:
why is selinux on the host important? I am going to boot from the cd not from my hd. livecd-creator can get to any rpm it needs and it complains about my system?
Comment 1 Jeremy Katz 2009-05-07 13:01:17 EDT
To set SELinux attributes and have things labeled correctly, you must have SELinux enabled on your host.  The kernel does not allow setting of the SELinux xattrs on files otherwise

Note You need to log in before you can comment on or make changes to this bug.