Bug 502134 - Backtrace adding file context equivalency
Backtrace adding file context equivalency
Product: Fedora
Classification: Fedora
Component: policycoreutils (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2009-05-22 00:57 EDT by Jason Tibbitts
Modified: 2009-05-25 07:40 EDT (History)
2 users (show)

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

Attachments (Terms of Use)

  None (edit)
Description Jason Tibbitts 2009-05-22 00:57:40 EDT
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>
  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
  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 07:31:24 EDT
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 19:40:00 EDT
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 07:40:57 EDT
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.