Hide Forgot
libreport version: 2.0.7 executable: /usr/bin/python hashmarkername: setroubleshoot kernel: 3.1.2-1.fc16.x86_64 reason: SELinux is preventing /usr/sbin/sshd from 'write' accesses on the file sshd.pid. time: Sun 27 Nov 2011 11:35:19 AM EST description: Text file, 2292 bytes
Created attachment 537180 [details] File: description
Have you ever started sshd daemon directly without using systemctl? You need to execute # restorecon -R -v /var/run/sshd.pid
Dear Miroslav. I ran 'sshd -DEddd' from command prompt to debug connection problems. I fixed it finally after dealing with SELinux issue(s). However, I think, but not sure, I fixed it with the commands recommended in ABRT attachment above. # grep sshd /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp I should not have done that am I? I am not familiar with SELinux. Can you please comment as to what exactly did I do? And if that requres 'fixing back'? Also, I recall to run 'fixfiles onboot'. sshd works now but leaves a message in the 'secure' log file: ssh_selinux_change_context: setcon failed with Invalid argument I am not sure what does it mean - but still annoying. Thanks again, and please advise if i should revert the changes recomended by abrt in attachment. NM
semodule -r mypol Will remove your custom policy change.
Thanks a lot.