Bug 6949 - initlog leaves /etc/initscripts open
initlog leaves /etc/initscripts open
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
6.1
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-11-12 05:03 EST by eda
Modified: 2014-03-16 22:11 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-11-15 11:57:45 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description eda 1999-11-12 05:03:27 EST
It appears that that initlog program probably forgets to close
/etc/initlog.conf on fd 3 before starting shell to execute system startup
script. The shell and subsequently processes started by this shell inherit
/etc/initlog.conf open on fd 3.

This, IMHO no doubt, is a bug. I did not think too much about possible
security implications of this, but anyway, this consumes one low-numbered
fd and I can imagine programs having problems with this.


Eduard Vopicka

Here is relevant info from machine with up-to-date RH61 installed.


[root@eda /root]# rpm -qf /sbin/initlog
initscripts-4.63-1
[root@eda /root]# lsof | grep initlog\\.conf
apmd      151 root    3r   REG        8,3     562     6311
/etc/initlog.conf
atd       391 root    3r   REG        8,3     562     6311
/etc/initlog.conf
crond     407 root    3r   REG        8,3     562     6311
/etc/initlog.conf
inetd     423 root    3r   REG        8,3     562     6311
/etc/initlog.conf
xntpd     442 root    3r   REG        8,3     562     6311
/etc/initlog.conf
sshd      451 root    3r   REG        8,3     562     6311
/etc/initlog.conf
lpd       467 root    3r   REG        8,3     562     6311
/etc/initlog.conf
gpm       505 root    3r   REG        8,3     562     6311
/etc/initlog.conf
xfs       543 root    3r   REG        8,3     562     6311
/etc/initlog.conf
[root@eda /root]#
Comment 1 Bill Nottingham 1999-11-15 11:57:59 EST
this is fixed in initscripts-4.65-1, which will be in the next Raw Hide release.

Note You need to log in before you can comment on or make changes to this bug.