Bug 1144775 - SELinux is preventing lspci from using the 'sys_admin' capabilities.
Summary: SELinux is preventing lspci from using the 'sys_admin' capabilities.
Keywords:
Status: CLOSED DUPLICATE of bug 1144762
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 21
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:2951fab66fb3e666633506f08d5...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-20 15:59 UTC by Moez Roy
Modified: 2014-09-22 08:45 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-09-22 08:45:03 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Moez Roy 2014-09-20 15:59:41 UTC
Description of problem:
SELinux is preventing lspci from using the 'sys_admin' capabilities.

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

If you believe that lspci should have the sys_admin capability 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 lspci /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                staff_u:staff_r:staff_t:s0
Target Context                staff_u:staff_r:staff_t:s0
Target Objects                Unknown [ capability ]
Source                        lspci
Source Path                   lspci
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-82.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.16.3-300.fc21.x86_64 #1 SMP Wed
                              Sep 17 20:54:02 UTC 2014 x86_64 x86_64
Alert Count                   2
First Seen                    2014-09-20 08:57:36 PDT
Last Seen                     2014-09-20 08:57:36 PDT
Local ID                      918271e2-7ad1-4897-b2f2-1249f3bf9ed3

Raw Audit Messages
type=AVC msg=audit(1411228656.567:1114): avc:  denied  { sys_admin } for  pid=10519 comm="lspci" capability=21  scontext=staff_u:staff_r:staff_t:s0 tcontext=staff_u:staff_r:staff_t:s0 tclass=capability permissive=0


Hash: lspci,staff_t,staff_t,capability,sys_admin

Version-Release number of selected component:
selinux-policy-3.13.1-82.fc21.noarch

Additional info:
reporter:       libreport-2.2.3
hashmarkername: setroubleshoot
kernel:         3.16.3-300.fc21.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2014-09-22 08:45:03 UTC

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


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