Bug 824172 - 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 821268
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:886155125b700de9c7723118864...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-22 21:11 UTC by Arif Tri Waluyo
Modified: 2012-05-27 10:01 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-27 10:01:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Arif Tri Waluyo 2012-05-22 21:11:10 UTC
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

description:
: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.
:Do
: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.
: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                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 09:17:18 UTC
Please update to the latest policy.

# yum update selinux-policy-targeted --enablerepo=updates-testing

Comment 2 collura 2012-05-27 08:41:50 UTC
related bug:

  https://bugzilla.redhat.com/show_bug.cgi?id=821268

Comment 3 Kevin Kofler 2012-05-27 10:01:38 UTC

*** 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.