Bug 1100509 - SELinux is preventing /usr/bin/perf from 'read' accesses on the file .
Summary: SELinux is preventing /usr/bin/perf from 'read' accesses on the file .
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:305fe73153bd26e9c07cbf7b9a7...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-23 00:41 UTC by William Brown
Modified: 2014-06-26 01:53 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.12.1-171.fc20
Clone Of:
Environment:
Last Closed: 2014-06-26 01:53:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description William Brown 2014-05-23 00:41:12 UTC
Description of problem:
run perf top as sysadm_r
SELinux is preventing /usr/bin/perf from 'read' accesses on the file .

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

If you believe that perf should be allowed read access on the  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 perf /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                staff_u:sysadm_r:sysadm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:proc_kcore_t:s0
Target Objects                 [ file ]
Source                        perf
Source Path                   /usr/bin/perf
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           perf-3.14.4-200.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-163.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.14.4-200.fc20.x86_64 #1 SMP Thu
                              May 22 17:12:34 CST 2014 x86_64 x86_64
Alert Count                   1
First Seen                    2014-05-23 10:10:13 CST
Last Seen                     2014-05-23 10:10:13 CST
Local ID                      6077a442-98d8-495e-92e9-9799d870e8e9

Raw Audit Messages
type=AVC msg=audit(1400805613.895:472): avc:  denied  { read } for  pid=7935 comm="perf" name="kcore" dev="proc" ino=4026532004 scontext=staff_u:sysadm_r:sysadm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:proc_kcore_t:s0 tclass=file


type=SYSCALL msg=audit(1400805613.895:472): arch=x86_64 syscall=open success=no exit=EACCES a0=7fffde1938b0 a1=0 a2=0 a3=0 items=1 ppid=7591 pid=7935 auid=1343600009 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=2 comm=perf exe=/usr/bin/perf subj=staff_u:sysadm_r:sysadm_t:s0-s0:c0.c1023 key=(null)

type=CWD msg=audit(1400805613.895:472): cwd=/root

type=PATH msg=audit(1400805613.895:472): item=0 name=/proc/kcore inode=4026532004 dev=00:02 mode=0100400 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:proc_kcore_t:s0 nametype=NORMAL

Hash: perf,sysadm_t,proc_kcore_t,file,read

Additional info:
reporter:       libreport-2.2.2
hashmarkername: setroubleshoot
kernel:         3.14.4-200.fc20.x86_64
type:           libreport

Comment 1 William Brown 2014-05-23 00:51:41 UTC
There may be other denials if run in permissive.

Comment 2 Daniel Walsh 2014-05-25 10:58:13 UTC
0cf66446c9290ac0b68430906c9393ef359b6797 fixes this in git.

Comment 3 Fedora Update System 2014-06-09 20:09:10 UTC
selinux-policy-3.12.1-167.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-167.fc20

Comment 4 Fedora Update System 2014-06-11 16:25:12 UTC
Package selinux-policy-3.12.1-167.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-167.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-7240/selinux-policy-3.12.1-167.fc20
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2014-06-19 13:18:35 UTC
selinux-policy-3.12.1-171.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-171.fc20

Comment 6 Fedora Update System 2014-06-19 22:52:47 UTC
Package selinux-policy-3.12.1-171.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-171.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-7499/selinux-policy-3.12.1-171.fc20
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2014-06-26 01:53:26 UTC
selinux-policy-3.12.1-171.fc20 has been pushed to the Fedora 20 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.