Bug 502134 - Backtrace adding file context equivalency
Summary: Backtrace adding file context equivalency
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: policycoreutils
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-05-22 04:57 UTC by Jason Tibbitts
Modified: 2009-05-25 11:40 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-05-25 11:40:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jason Tibbitts 2009-05-22 04:57:40 UTC
Just brought up a rawhide machine and wanted to try out the new file context equivalency functionality.  Unfortunately it repeatably backtraces:

# semanage fcontext -a -e /var/lib/mysql /local/mysql/db
Traceback (most recent call last):
  File "/usr/sbin/semanage", line 513, in <module>
    process_args(sys.argv[1:])
  File "/usr/sbin/semanage", line 404, in process_args
    OBJECT.add_equil(target, equil)
  File "/usr/lib64/python2.6/site-packages/seobject.py", line 1485, in add_equil
    self.commit()
  File "/usr/lib64/python2.6/site-packages/seobject.py", line 1474, in commit
    os.chmod(tmpfile, os.stat(subs_file)[stat.ST_MODE])
OSError: [Errno 2] No such file or directory: '/etc/selinux/targeted/contexts/files/file_contexts.subs'

Indeed, that file doesn't exist, though files_contexts.subs.tmp does exist.  It contains one line:

/local/mysql/db /var/lib/mysql

policycoreutils-2.0.62-12.2.fc11.x86_64 is installed; everything's up to date with what's in rawhide and F11 updates.

Comment 1 Daniel Walsh 2009-05-22 11:31:24 UTC
Please try policycoreutils-2.0.62-12.4.fc11.x86_64 in updates-testing or 


policycoreutils-2.0.62-12.5.fc11.x86_64 in koji.  If these work for you I will ask to have them pushed into the final release.

Comment 2 Jason Tibbitts 2009-05-22 23:40:00 UTC
I can verify that 2.0.62-12.5.fc11.x86_64 from updates-testing solves the problem.

Comment 3 Daniel Walsh 2009-05-25 11:40:57 UTC
I have asked to have this pushed into the current release.


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