Bug 27749
| Summary: | programs run in %post have open filedescriptors | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Damien Miller <djm> |
| Component: | openssh | Assignee: | Nalin Dahyabhai <nalin> |
| Status: | CLOSED RAWHIDE | QA Contact: | David Lawrence <dkl> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.0 | CC: | dr, jarno.huuskonen, pekkas |
| Target Milestone: | --- | Keywords: | Security |
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2001-02-17 15:55:14 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: | |||
|
Description
Damien Miller
2001-02-15 06:50:59 UTC
I stand corrected - rpm-4 _doesn't_ leave a fd open to the rpm database, but rpm-3.0.5-9.6x does: [root@mothra /root]# ls -l /proc/15356/fd total 0 lrwx------ 1 root root 64 Feb 15 17:02 0 -> /dev/null lrwx------ 1 root root 64 Feb 15 17:02 1 -> /dev/null lrwx------ 1 root root 64 Feb 15 17:02 12 -> /dev/pts/0 (deleted) lrwx------ 1 root root 64 Feb 15 17:02 2 -> /dev/null lr-x------ 1 root root 64 Feb 15 17:02 3 -> /home/djm/rpm/RPMS/i386/openssh-server-2.3.2p1-0.4.i386.rpm lrwx------ 1 root root 64 Feb 15 17:02 4 -> /var/lib/rpm/packages.rpm lrwx------ 1 root root 64 Feb 15 17:02 5 -> socket:[128297] This problem needs to be fixed in the openssh-server package, as there other ways that the daemon can inherit file descriptors if invoked from the command line, it's not only from upgading using rpm. Changing component. I disagree. While it doesn't really have any adverse effects on OpenSSH (it closes fds after forking), it is not hygenic and may affect other programs. It can also have unpleasant effects such as not being able to unmount filesystems because fds to rpm files are left open. This has been reported (with sshd) in the past, see: #18988 Smells like something that should be fixed in rpm in a generic fashion (rather than all init.d/* programs..). Fixed in initscripts-5.69 and later. |