Bug 560131

Summary: SELinux is preventing /sbin/auditctl access to a leaked fifo_file file descriptor.
Product: [Fedora] Fedora Reporter: ojab <bugzilla.redhat.com>
Component: upstartAssignee: Casey Dahlin <cdahlin>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: break19, cdahlin, clydekunkel7734, dwalsh, emanwesk-2, jmalonzo, mgrepl, notting, plautrba, vanhoof
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:fac7daa743f48e84b0f1adddd13eaffce1b2c8dc6a173b5aef41026d43819c99
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-01 19:30:22 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 ojab 2010-01-29 22:56:55 UTC
Summary:

SELinux is preventing /sbin/auditctl access to a leaked fifo_file file
descriptor.

Detailed Description:

[auditctl has a permissive type (auditctl_t). This access was not denied.]

SELinux denied access requested by the auditctl command. It looks like this is
either a leaked descriptor or auditctl output was redirected to a file it is not
allowed to access. Leaks usually can be ignored since SELinux is just closing
the leak and reporting the error. The application does not use the descriptor,
so it will run properly. If this is a redirection, you will not get output in
the fifo_file. You should generate a bugzilla on selinux-policy, and it will get
routed to the appropriate package. You can safely ignore this avc.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385)

Additional Information:

Source Context                system_u:system_r:auditctl_t:s0
Target Context                system_u:system_r:init_t:s0
Target Objects                fifo_file [ fifo_file ]
Source                        auditctl
Source Path                   /sbin/auditctl
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           audit-2.0.4-1.fc13
Target RPM Packages           
Policy RPM                    selinux-policy-3.7.8-5.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   leaks
Host Name                     (removed)
Platform                      Linux (removed) 2.6.33-0.23.rc5.git1.fc13.x86_64
                              #1 SMP Mon Jan 25 22:04:05 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Sat 30 Jan 2010 01:55:15 AM MSK
Last Seen                     Sat 30 Jan 2010 01:55:15 AM MSK
Local ID                      f25ef095-9daf-4ed6-886f-6cd59b3f511b
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1264805715.617:22622): avc:  denied  { read } for  pid=1738 comm="auditctl" path="pipe:[15523]" dev=pipefs ino=15523 scontext=system_u:system_r:auditctl_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=fifo_file

node=(removed) type=SYSCALL msg=audit(1264805715.617:22622): arch=c000003e syscall=59 success=yes exit=0 a0=ef0900 a1=f2c730 a2=f30210 a3=0 items=0 ppid=1727 pid=1738 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="auditctl" exe="/sbin/auditctl" subj=system_u:system_r:auditctl_t:s0 key=(null)



Hash String generated from  leaks,auditctl,auditctl_t,init_t,fifo_file,read
audit2allow suggests:

#============= auditctl_t ==============
allow auditctl_t init_t:fifo_file read;

Comment 1 Daniel Walsh 2010-02-01 16:41:32 UTC
I think upstart might be leaking a pipe?

Comment 2 Daniel Walsh 2010-02-01 19:30:22 UTC

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