Bug 183874

Summary: OpenSSH closes connection on linux_audit_write_entry failure
Product: [Fedora] Fedora Reporter: Lubomir Bulej <pallas>
Component: opensshAssignee: Tomas Mraz <tmraz>
Status: CLOSED DUPLICATE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-03-03 06:01:46 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Attachments:
Description Flags
Custom kernel configuration none

Description Lubomir Bulej 2006-03-03 05:46:45 EST
Description of problem:

OpenSSH server closes connections on linux_audit_write_entry_failure, 
thus preventing interactive login to a remote machine. Execution of commands on
remote machine is not affacted, i.e. still works. I suspect this is caused by my
custom configured kernel which does not support selinux and auditing.

Version-Release number of selected component (if applicable):
custom kernel 2.6.15-1.1977_FC5 (without selinux and auditing)
custom kernel-smp 2.6.15-1.1991_FC5 (without selinux and auditing)
openssh-4.3p2-3

How reproducible:
Always.

Steps to Reproduce:
1. install kernel without selinux
2. install openssh-4.3p2-3
3. try to log on the machine using ssh
  
Actual results:
[pallas@irian ~]$ ssh localhost
Connection to localhost closed by remote host.
Connection to localhost closed.

Expected results:
Login shell on the remote machine.

Additional info:
/var/log/secure contains the following:

Mar  3 10:50:19 irian sshd[13168]: Postponed publickey for pallas from 127.0.0.1
port 41766 ssh2
Mar  3 11:50:19 irian sshd[13165]: Accepted publickey for pallas from 127.0.0.1
port 41766 ssh2
Mar  3 10:50:19 irian sshd[13168]: Accepted publickey for pallas from 127.0.0.1
port 41766 ssh2
Mar  3 11:50:19 irian sshd[13177]: pam_unix(sshd:session): session opened for
user pallas by (uid=0)
Mar  3 11:50:19 irian sshd[13177]: pam_loginuid(sshd:session): set_loginuid
failed opening loginuid
Mar  3 11:50:19 irian sshd[13165]: fatal: linux_audit_write_entry failed:
Connection refused
Mar  3 11:50:19 irian sshd[13165]: syslogin_perform_logout: logout() returned an
error
Mar  3 11:50:19 irian sshd[13177]: pam_unix(sshd:session): session closed for
user pallas
Comment 1 Lubomir Bulej 2006-03-03 05:46:45 EST
Created attachment 125588 [details]
Custom kernel configuration
Comment 2 Tomas Mraz 2006-03-03 06:01:46 EST

*** This bug has been marked as a duplicate of 183243 ***