Bug 646894

Summary: File descriptor leaks in single user mode
Product: [Fedora] Fedora Reporter: Petr Lautrbach <plautrba>
Component: upstartAssignee: Petr Lautrbach <plautrba>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: mgrepl, notting, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: upstart-0.6.5-7.fc13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-31 21:32:30 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:
Attachments:
Description Flags
send close command for pipe fd to shell none

Description Petr Lautrbach 2010-10-26 15:15:28 UTC
Description of problem:
In single user mode there's a message about file
descriptor leak when running pvdisplay and passwd generates avc


Version-Release number of selected component (if applicable):
upstart-0.6.5-9.fc14.x86_64

Steps to Reproduce:
1. boot into sinle
2. run passwd
3. run pvdisplay
  
Actual results:
# passwd
[   59.891476] type=1400 audit(1288105707.709:4): avc:  denied  { read } for  pid=771 comm="passwd" path="pipe:[10176]" dev=pipefs ino=10176 scontext=system_u:system_r:passwd_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=fifo_file
Changing password for user root.
New password:
...

# pvdisplay
File descriptor 9 (pipe:[10176]) leaked on pvdisplay invocation. Parent PID 748: /bin/bash
...

Expected results:
no leaking fd

Comment 1 Petr Lautrbach 2010-10-26 15:34:20 UTC
Created attachment 455799 [details]
send close command for pipe fd to shell

sends close fd command to shell before script defined in job

Comment 2 Fedora Update System 2010-10-26 16:16:02 UTC
upstart-0.6.5-10.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/upstart-0.6.5-10.fc14

Comment 3 Fedora Update System 2010-10-26 16:16:08 UTC
upstart-0.6.5-7.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/upstart-0.6.5-7.fc13

Comment 4 Fedora Update System 2010-10-27 22:36:03 UTC
upstart-0.6.5-7.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update upstart'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/upstart-0.6.5-7.fc13

Comment 5 Fedora Update System 2010-10-31 21:32:26 UTC
upstart-0.6.5-10.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Miroslav Grepl 2010-11-01 16:15:11 UTC
The fix works great. Thanks.

Comment 7 Fedora Update System 2010-11-10 01:16:21 UTC
upstart-0.6.5-7.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.