Bug 824172 - SELinux is preventing lspci from using the 'sys_admin' capabilities.
SELinux is preventing lspci from using the 'sys_admin' capabilities.
Status: CLOSED DUPLICATE of bug 821268
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
i686 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-05-22 17:11 EDT by Arif Tri Waluyo
Modified: 2012-05-27 06:01 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-05-27 06:01:38 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Arif Tri Waluyo 2012-05-22 17:11:10 EDT
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.3.4-5.fc17.i686
time:           Wed 23 May 2012 04:10:47 AM WIT

:SELinux is preventing lspci from using the 'sys_admin' capabilities.
:*****  Plugin catchall_boolean (89.3 confidence) suggests  *******************
:If you want to enable polyinstantiated directory support.
:Then you must tell SELinux about this by enabling the 'allow_polyinstantiation' boolean.You can read 'xdm_selinux' man page for more details.
:setsebool -P allow_polyinstantiation 1
:*****  Plugin catchall (11.6 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.
: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                system_u:system_r:xdm_t:s0-s0:c0.c1023
:Target Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
:Target Objects                 [ capability ]
:Source                        lspci
:Source Path                   lspci
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-121.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.4-5.fc17.i686 #1 SMP Mon May
:                              7 17:45:26 UTC 2012 i686 i686
:Alert Count                   8
:First Seen                    Tue 22 May 2012 01:43:55 AM WIT
:Last Seen                     Tue 22 May 2012 01:43:55 AM WIT
:Local ID                      df38d9ac-edc2-4aa3-b121-c03bb5403be9
:Raw Audit Messages
:type=AVC msg=audit(1337625835.327:83): avc:  denied  { sys_admin } for  pid=659 comm="lspci" capability=21  scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tclass=capability
:Hash: lspci,xdm_t,xdm_t,capability,sys_admin
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
Comment 1 Miroslav Grepl 2012-05-23 05:17:18 EDT
Please update to the latest policy.

# yum update selinux-policy-targeted --enablerepo=updates-testing
Comment 2 collura 2012-05-27 04:41:50 EDT
related bug:

Comment 3 Kevin Kofler 2012-05-27 06:01:38 EDT

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

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