Bug 18988

Summary: sshd does not close file descriptors
Product: [Retired] Red Hat Linux Reporter: Gerald Teschl <gt>
Component: opensshAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED RAWHIDE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 7.0CC: pekkas, t8m
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-01-24 06:29:22 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Gerald Teschl 2000-10-12 14:29:51 EDT
If I upgrade a package which restarts sshd in its post script, sshd will
the file descriptor pointing to this rpm. Unfortunately it does not close

In particular, if the rpm was on an nfs directory it is no longer possible
to unmount this directory unless you physically walk to the machine
(this is why I consider it "high" priority)

There are similar problems with lpd and maybe other services.
Comment 1 Gerald Teschl 2000-10-16 04:47:46 EDT
As Jeff (jbj@redhat.com) pointed out: If the rpm is on a CD, it is not possible
to unmount the CD!
Comment 2 Pekka Savola 2000-10-28 11:15:01 EDT
Hmm.. Isn't this an rpm issue?
Comment 3 Gerald Teschl 2001-01-24 06:29:18 EST
I also think that this is an rpm issue. rpm should close the file descriptor
before giving control
to sshd.
Comment 4 Nalin Dahyabhai 2001-04-02 20:13:25 EDT
This issue is spread among lots of guilty apps, which in an ideal world would
all be closing extra descriptors.  A workaround which catches most of these
cases is in initscripts-5.69.