Bug 912435

Summary: SELinux is preventing /usr/sbin/condor_master from 'getattr' accesses on the file /proc/cpuinfo.
Product: [Fedora] Fedora Reporter: Thomas Spura <tomspur>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:d20562bd853abb5d7cae137f7ff07724a87fe10381fc51a386bba116e1d522fa
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-24 09:00:13 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 Thomas Spura 2013-02-18 16:38:41 UTC
Description of problem:
I updated from F17 to F18.
SELinux is preventing /usr/sbin/condor_master from 'getattr' accesses on the file /proc/cpuinfo.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that condor_master should be allowed getattr access on the cpuinfo file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep condor_master /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:condor_master_t:s0
Target Context                system_u:object_r:proc_t:s0
Target Objects                /proc/cpuinfo [ file ]
Source                        condor_master
Source Path                   /usr/sbin/condor_master
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           condor-7.9.1-0.1.fc18.3.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-76.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.7.7-201.fc18.x86_64 #1 SMP Tue
                              Feb 12 22:35:01 UTC 2013 x86_64 x86_64
Alert Count                   378717
First Seen                    2013-01-29 12:42:17 CET
Last Seen                     2013-02-18 17:35:50 CET
Local ID                      ba8539bf-4c9d-49b2-b0be-31e406b1bbb1

Raw Audit Messages
type=AVC msg=audit(1361205350.393:52068): avc:  denied  { getattr } for  pid=2746 comm="condor_master" path="/proc/cpuinfo" dev="proc" ino=4026532022 scontext=system_u:system_r:condor_master_t:s0 tcontext=system_u:object_r:proc_t:s0 tclass=file


type=SYSCALL msg=audit(1361205350.393:52068): arch=x86_64 syscall=fstat success=no exit=EACCES a0=3 a1=7fffc37af030 a2=7fffc37af030 a3=238 items=0 ppid=1 pid=2746 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=condor_master exe=/usr/sbin/condor_master subj=system_u:system_r:condor_master_t:s0 key=(null)

Hash: condor_master,condor_master_t,proc_t,file,getattr

audit2allow

#============= condor_master_t ==============
allow condor_master_t proc_t:file getattr;

audit2allow -R

#============= condor_master_t ==============
allow condor_master_t proc_t:file getattr;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.7.7-201.fc18.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-02-18 16:58:36 UTC
1ae169af8d6ed31ad967c085d2f58cf12887c9b2 fixes this in Rawhide.

Comment 2 Miroslav Grepl 2013-02-19 13:37:41 UTC
Backported.

Comment 3 Fedora Update System 2013-02-22 08:21:19 UTC
selinux-policy-3.11.1-81.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-81.fc18

Comment 4 Fedora Update System 2013-02-24 09:00:15 UTC
selinux-policy-3.11.1-81.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.