Bug 829152 - SELinux is preventing /usr/bin/python2.7 from 'read' accesses on the directory /etc/selinux/targeted/policy.
Summary: SELinux is preventing /usr/bin/python2.7 from 'read' accesses on the director...
Keywords:
Status: CLOSED DUPLICATE of bug 829465
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:0ab919aeac13c7b44db6179ef4c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-06 05:34 UTC by Agustin Ferrario
Modified: 2012-06-07 20:07 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-07 18:55:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Agustin Ferrario 2012-06-06 05:34:04 UTC
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.3.7-1.fc17.x86_64
time:           Wed 06 Jun 2012 02:33:27 AM ART

description:
:SELinux is preventing /usr/bin/python2.7 from 'read' accesses on the directory /etc/selinux/targeted/policy.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that python2.7 should be allowed read access on the policy directory 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:semanage_store_t:s0
:Target Objects                /etc/selinux/targeted/policy [ dir ]
:Source                        sealert
:Source Path                   /usr/bin/python2.7
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           python-2.7.3-6.fc17.x86_64
:Target RPM Packages           selinux-policy-targeted-3.10.0-128.fc17.noarch
:Policy RPM                    selinux-policy-3.10.0-128.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.7-1.fc17.x86_64 #1
:                              SMP Mon May 21 22:32:19 UTC 2012 x86_64 x86_64
:Alert Count                   7
:First Seen                    Thu 31 May 2012 11:07:41 PM ART
:Last Seen                     Wed 06 Jun 2012 02:08:46 AM ART
:Local ID                      5004acd2-e72f-4bd9-be64-a7dcc4da84b3
:
:Raw Audit Messages
:type=AVC msg=audit(1338959326.467:820): avc:  denied  { read } for  pid=3446 comm="sealert" name="policy" dev="sda1" ino=61547 scontext=system_u:system_r:setroubleshoot_fixit_t:s0-s0:c0.c1023 tcontext=system_u:object_r:semanage_store_t:s0 tclass=dir
:
:
:type=AVC msg=audit(1338959326.467:820): avc:  denied  { open } for  pid=3446 comm="sealert" name="policy" dev="sda1" ino=61547 scontext=system_u:system_r:setroubleshoot_fixit_t:s0-s0:c0.c1023 tcontext=system_u:object_r:semanage_store_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1338959326.467:820): arch=x86_64 syscall=openat success=yes exit=ENXIO a0=ffffffffffffff9c a1=7fffa7a76130 a2=90800 a3=0 items=0 ppid=3445 pid=3446 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/python2.7 subj=system_u:system_r:setroubleshoot_fixit_t:s0-s0:c0.c1023 key=(null)
:
:Hash: sealert,setroubleshoot_fixit_t,semanage_store_t,dir,read
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:

Comment 1 Devon Janitz 2012-06-07 16:46:11 UTC
Happens every time I restart and log back in.

Comment 2 Daniel Walsh 2012-06-07 18:54:17 UTC
Are you telling setroublshoot to fix a bug and this avc is generated or are you saying this AVC is randomly generated at login?

Comment 3 Daniel Walsh 2012-06-07 18:55:06 UTC

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

Comment 4 Devon Janitz 2012-06-07 20:07:57 UTC
Hi Daniel,
Like the other ticket you referenced, I just left it so I could see if it affected anything else.  It is not random, but at login only.


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