Red Hat Bugzilla – Bug 502134
Backtrace adding file context equivalency
Last modified: 2009-05-25 07:40:57 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
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
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:
policycoreutils-2.0.62-12.2.fc11.x86_64 is installed; everything's up to date with what's in rawhide and F11 updates.
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.
I can verify that 2.0.62-12.5.fc11.x86_64 from updates-testing solves the problem.
I have asked to have this pushed into the current release.