Bug 499618 - imgcreate.errors.CreatorError: SELinux requested but not enabled on host
Summary: imgcreate.errors.CreatorError: SELinux requested but not enabled on host
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: livecd-tools
Version: 10
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-05-07 13:10 UTC by udo
Modified: 2009-05-07 17:01 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-05-07 17:01:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description udo 2009-05-07 13:10:27 UTC
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 17:01:17 UTC
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.