Bug 1033256 - SELinux is preventing /usr/bin/python2.7 from 'write' accesses on the directory python2.7. [NEEDINFO]
Summary: SELinux is preventing /usr/bin/python2.7 from 'write' accesses on the directo...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:0e777cf2fadf44b11861ff878c9...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-21 19:13 UTC by Liquid Fiber
Modified: 2013-11-25 13:59 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-25 13:59:25 UTC
Type: ---
mgrepl: needinfo? (liquidfiber)


Attachments (Terms of Use)

Description Liquid Fiber 2013-11-21 19:13:21 UTC
Description of problem:
The alert came out while adding a color profile in the control center. The window crashed.
SELinux is preventing /usr/bin/python2.7 from 'write' accesses on the directory python2.7.

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

If you believe that python2.7 should be allowed write access on the python2.7 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 abrt-action-lis /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:abrt_t:s0-s0:c0.c1023
Target Context                system_u:object_r:lib_t:s0
Target Objects                python2.7 [ dir ]
Source                        abrt-action-lis
Source Path                   /usr/bin/python2.7
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           python-2.7.5-1.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-54.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.9.5-301.fc19.x86_64 #1 SMP Tue
                              Jun 11 19:39:38 UTC 2013 x86_64 x86_64
Alert Count                   5
First Seen                    2013-11-21 19:58:17 CET
Last Seen                     2013-11-21 19:58:17 CET
Local ID                      416283cf-7e21-4223-abb8-41d1b778dc00

Raw Audit Messages
type=AVC msg=audit(1385060297.670:448): avc:  denied  { write } for  pid=4847 comm="abrt-action-lis" name="python2.7" dev="dm-1" ino=265524 scontext=system_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=dir


type=SYSCALL msg=audit(1385060297.670:448): arch=x86_64 syscall=unlink success=no exit=EACCES a0=1be3a90 a1=285e8 a2=81a4 a3=7fb5553e85d0 items=0 ppid=4829 pid=4847 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=abrt-action-lis exe=/usr/bin/python2.7 subj=system_u:system_r:abrt_t:s0-s0:c0.c1023 key=(null)

Hash: abrt-action-lis,abrt_t,lib_t,dir,write

Additional info:
reporter:       libreport-2.1.9
hashmarkername: setroubleshoot
kernel:         3.9.5-301.fc19.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-11-22 18:37:29 UTC
This looks like you modified a py file and it needs to have its pyc file compiled.


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