Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1130733
Summary: | SELinux is preventing /usr/sbin/sshd from 'name_bind' accesses on the tcp_socket . | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Timothy Krupinski <tdkrupinski> | ||||||
Component: | openssh | Assignee: | Petr Lautrbach <plautrba> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 20 | CC: | dominick.grift, dwalsh, jjelen, lvrabec, mattias.ellert, mgrepl, plautrba, tdkrupinski, tmraz | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | x86_64 | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | abrt_hash:4d843f63c57977220d66547a9ab172c399c865bc942674fdaf1fab92f484a672 | ||||||||
Fixed In Version: | openssh-6.4p1-8.fc20 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2015-02-03 12:02:32 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Timothy Krupinski
2014-08-17 07:44:55 UTC
To be sure what does # grep "Port" /etc/ssh/sshd_config (In reply to Miroslav Grepl from comment #1) > To be sure what does > > # grep "Port" /etc/ssh/sshd_config [tkrupins@caprica ~]$ sudo grep "Port" /etc/ssh/sshd_config [sudo] password for tkrupins: Port 1122 #GatewayPorts no [tkrupins@caprica ~]$ Does the AVC relate with this change? It talks about "src=24". -- ListenAddress 192.168.1.0/24 Looks like this is overriding the port? You can't use a network address in ListenAddress, you have to use ip addresses you use on your system. If you want to filter connections based on network addresses use either 'Match Address ...' directive or a firewall. However, it's a bug in openssh code. It should inform an user that there's used a wrong format. Yes, I realize it was a mistake on my part when attempting to configure the settings. However, I agree with your analysis that about informing the user about invalid syntax. Created attachment 978099 [details]
Make config parser more strict to ip:port values
This problem is also in upstream of openssh and there is for some reason parser which accept both 1.2.3.4:22 and 1.2.3.0/24 as ip and port. I browsed through the man pages and there is mentioned only the first format so I think we can drop this unwanted functionality, because 1.2.3.0/24 is common format for mask and not for ip:port.
This behaviour can be fixed with appended patch.
Created attachment 979037 [details]
dist git patch
openssh-6.6.1p1-11.1.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/openssh-6.6.1p1-11.1.fc21 openssh-6.4p1-8.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/openssh-6.4p1-8.fc20 Package openssh-6.4p1-8.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing openssh-6.4p1-8.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-0756/openssh-6.4p1-8.fc20 then log in and leave karma (feedback). openssh-6.6.1p1-11.1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report. openssh-6.4p1-8.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. |