Red Hat Bugzilla – Bug 868064
semanage -i throws an error
Last modified: 2012-10-20 14:14:29 EDT
Description of problem:
semanage -i of a file produced using semanage in Fedora 16 does not import and results in an error.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. semanage -i /tmp/local.selinux
Traceback (most recent call last):
File "/sbin/semanage", line 566, in <module>
File "/usr/lib/python2.7/site-packages/seobject.py", line 285, in finish
File "/usr/lib/python2.7/site-packages/seobject.py", line 274, in commit
TypeError: in method 'semanage_set_reload', argument 2 of type 'int'
Should set the contexts and booleans to what is in the file.
I tried using cat with a pipe to semanage and got the same result.
I do not know if the file being from a Fedora 16 system has anything to do with the problem. I just know that on a fresh Fedora 17 install I wanted to set the selinux contexts on the directories, etc, to what I was using under the previous installation.
*** This bug has been marked as a duplicate of bug 836087 ***