need howto for SELinux config--ssh on non-standard port

Daniel J Walsh dwalsh at redhat.com
Thu Jan 14 20:49:16 UTC 2010


On 01/14/2010 10:33 AM, Paul W. Frields wrote:
> On Wed, Jan 13, 2010 at 07:48:24PM -0800, John Poelstra wrote:
>> Ed Greshko said the following on 01/13/2010 06:32 PM Pacific Time:
>>> John Poelstra wrote:
>>>> [root at localhost ~]# grep ssh /var/log/audit/audit.log | audit2allow -m myssh
>>>> Traceback (most recent call last):
>>>>     File "/usr/bin/audit2allow", line 24, in<module>
>>>>       import sepolgen.policygen as policygen
>>>>     File "/usr/lib/python2.6/site-packages/sepolgen/policygen.py", line
>>>> 33, in<module>
>>>>       from setools import *
>>>> ImportError: No module named setools
>>>>
>>>> How do I fix this?
>>>>
>>>> John
>>>>
>>>>
>>> yum install setools-libs-python  or
>>>
>>> yum install setools*  to be 100% sure....  :-)
>>>
>>>
>>
>> Interesting.  I would have expected it to have been included as a 
>> dependency when I installed policycoreutils-python which includes 
>> audit2allow, particularly since audit2allow won't even run without it.
>>
>> Seems like a bug to me.
> 
> It's definitely a bug.  In this case setools-libs-python should be a
> Requires: in that RPM package.
> 
Already fixed in policycoreutils

yum -y upgrade policycoreutils --enablerepo=updates-testing



More information about the users mailing list