Bug 912435 - SELinux is preventing /usr/sbin/condor_master from 'getattr' accesses on the file /proc/cpuinfo.
Summary: SELinux is preventing /usr/sbin/condor_master from 'getattr' accesses on the ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:d20562bd853abb5d7cae137f7ff...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-18 16:38 UTC by Thomas Spura
Modified: 2013-02-24 09:00 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-24 09:00:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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