Red Hat Bugzilla – Bug 866296
semanage: not possible to feed multiple commands from stdin
Last modified: 2013-05-31 22:27:05 EDT
Description of problem:
Hello. I saw a post on Dan Walsh's blog <http://danwalsh.livejournal.com/41593.html> that showed how you can process many semanage commands in one transaction like so:
semanage -S targeted -i - << _EOF
boolean -m --on allow_polyinstantiation
boolean -m --on xguest_connect_network
boolean -m --on xguest_mount_media
boolean -m --on xguest_use_bluetooth
However, running this on my system outputs an error:
Traceback (most recent call last):
File "/sbin/semanage", line 566, in <module>
File "/usr/lib64/python2.7/site-packages/seobject.py", line 285, in finish
File "/usr/lib64/python2.7/site-packages/seobject.py", line 274, in commit
TypeError: in method 'semanage_set_reload', argument 2 of type 'int'
None of the commands end up being processed.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. run the example code above
works as intended
I'm not sure how to debug this further. Let me know if you need anything else
Fixed in policycoreutils-2.1.13-27.3.fc17
policycoreutils-2.1.13-27.3.fc17 has been submitted as an update for Fedora 17.
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing policycoreutils-2.1.13-27.3.fc17'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
policycoreutils-2.1.13-27.3.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.