Bug 785437

Summary: SELinux is preventing /usr/bin/python from 'getattr' accesses on the None /var/lib/rpm/Packages.
Product: [Fedora] Fedora Reporter: Sunil <sunilkcypress>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:3f6c9174ff020055928bfa3a93820fe12cccc57fc579d4410194fbf7ca62e7c2
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-30 12:37:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Sunil 2012-01-28 23:38:30 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.2-1.fc16.x86_64
reason:         SELinux is preventing /usr/bin/python from 'getattr' accesses on the None /var/lib/rpm/Packages.
time:           Sat Jan 28 17:36:49 2012

description:
:SELinux is preventing /usr/bin/python from 'getattr' accesses on the None /var/lib/rpm/Packages.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that python should be allowed getattr access on the Packages <Unknown> 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 sealert /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:setroubleshoot_fixit_t:s0-s0:c0.
:                              c1023
:Target Context                system_u:object_r:root_t:s0
:Target Objects                /var/lib/rpm/Packages [ None ]
:Source                        sealert
:Source Path                   /usr/bin/python
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           
:Target RPM Packages           
:Policy RPM                    <Unknown>
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.2.2-1.fc16.x86_64 #1
:                              SMP Thu Jan 26 03:21:58 UTC 2012 x86_64 x86_64
:Alert Count                   3
:First Seen                    Sat Jan 28 17:35:44 2012
:Last Seen                     Sat Jan 28 17:36:31 2012
:Local ID                      fca4798d-ef34-4896-b8d3-f7e8572f3adb
:
:Raw Audit Messages
:type=AVC msg=audit(1327793791.210:251): avc:  denied  { getattr } for  pid=3402 comm="sealert" path="/var/lib/rpm/Packages" dev=dm-1 ino=1048584 scontext=system_u:system_r:setroubleshoot_fixit_t:s0-s0:c0.c1023 tcontext=system_u:object_r:root_t:s0 tclass=filenode=(removed) type=SYSCALL msg=audit(1327793791.210:251): arch=c000003e syscall=4 success=no exit=-13 a0=30b2250 a1=7fff92ee3aa0 a2=7fff92ee3aa0 a3=0 items=0 ppid=3401 pid=3402 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="sealert" exe="/usr/bin/python" subj=system_u:system_r:setroubleshoot_fixit_t:s0-s0:c0.c1023 key=(null)
:
:
:Hash: sealert,setroubleshoot_fixit_t,root_t,None,getattr
:
:audit2allow
:
:
:audit2allow -R
:
:

Comment 1 Miroslav Grepl 2012-01-30 12:37:43 UTC
The problem is your /var/lib/rpm/Packages is mislabeled.

restorecon -R -v /var/lib/rpm

should fix it.

Any idea how it got this mislabeling?

Comment 2 Sunil 2012-01-31 03:36:16 UTC
during alsa installation its happened.  alsa is not working.  i have switched back to fedora 14.  
thanks
sunil

Comment 3 Miroslav Grepl 2012-01-31 11:52:56 UTC
Were you trying alsa in permissive mode? Basically it tells us if SELinux is a problem or not.

F14 is not longer supported.

Comment 4 Sunil 2012-01-31 16:21:56 UTC
yes it was in permissive mode.  did with sudo.  Motherbord is ASUS M5A88-M with six core processor.  always had sound problem.  HDMI never shows recording ability.  thanks

Comment 5 Miroslav Grepl 2012-02-01 09:00:52 UTC
Ok, this won't be SELinux issue in this case.