I've got openssh-5.0 installed on selinux/2007.0/amd64 profile. My selinux settings are set to: SELINUX=permissive SELINUXTYPE=targeted I'm using sec-policy/selinux-base-policy-20080525 From the remove side it looks like (10.0.0.5): mail ~ # ssh -l piasekr 10.0.3.31 Password: Connection to 10.0.3.31 closed by remote host. Connection to 10.0.3.31 closed. Error message in local logs (10.0.3.31): Jul 15 15:52:53 [sshd] Accepted keyboard-interactive/pam for piasekr from 10.0.0.5 port 43912 ssh2 Jul 15 15:52:53 [sshd] pam_unix(sshd:session): session opened for user piasekr by (uid=0) Jul 15 15:52:53 [sshd] error: ssh_selinux_getctxbyname: Failed to get default SELinux security context for piasekr - Last output repeated twice - Jul 15 15:52:53 [sshd] error: ssh_selinux_setup_pty: security_compute_relabel: Invalid argument Reproducible: Always Steps to Reproduce:
I'm now seeing this too, after restarting sshd. However, I'm seeing this with version 4.7_p1-r6. Is there any known workaround?
Wow... shot myself in the foot, once again. :) Ok, for me - what worked was to restart sshd using run_init. Now everything is happy again, can login remotely as someone other than root and everything seems to be working well. I am *not* running openssh 5.0 though, so I can't comment directly on this bug. Only on the condition of my feet. Sorry for the noise.
closing stale bugs. this should work in current openssh. please open a new bug if this is not the case.