need howto for SELinux config--ssh on non-standard port
Ed Greshko
Ed.Greshko at greshko.com
Thu Jan 14 02:32:31 UTC 2010
John Poelstra wrote:
> Daniel J Walsh said the following on 01/07/2010 05:23 AM Pacific Time:
>
>> On 01/06/2010 09:29 PM, John Poelstra wrote:
>>
>>> I'm running sshd on a high (>1024) port number and cannot find a clear
>>> step by step guide for configuring this correctly on Fedora 12 on
>>> google.... I've come across lots of random bugs and forum questions, but
>>> nothing that starts at the beginning of the process through the end.
>>>
>>> I'm a total SELinux newbie and usually just disable itall together when
>>> things like this happen. I'm trying to change my ways :) Can anyone
>>> provide any URLs or the steps?
>>>
>>> If someone can provide the steps here I'll blog about it to get it
>>> documented so others do not have to suffer the same fate.
>>>
>>> Thanks,
>>> John
>>>
>>>
>> http://docs.fedoraproject.org/selinux-managing-confined-services-guide/en-US/F11/html/sect-Managing_Confined_Services-Configuration_examples-Changing_port_numbers.html
>>
>> If the avc is for an undefined port "port_t" then you can do the command
>>
>> # semanage port -a -t ssh_port_t PORTNUM
>>
>> If you are listing to a defined port NAME_port_t, then you need to load a custom policy module
>>
>> # grep ssh /var/log/audit/audit.log | audit2allow -m myssh
>> # semodule -i myssh.pp
>>
>
> [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.... :-)
--
Oh my GOD -- the SUN just fell into YANKEE STADIUM!!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20100114/9d3b03f9/attachment.bin
More information about the users
mailing list