Bug 1198277 - SELinux is preventing /usr/bin/python2.7 from 'write' accesses on the directory /sys/kernel/config.
Summary: SELinux is preventing /usr/bin/python2.7 from 'write' accesses on the directo...
Keywords:
Status: CLOSED DUPLICATE of bug 1198273
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 21
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:25d9c5556bf4f7c34d826331c84...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-03 17:18 UTC by Heiko Adams
Modified: 2015-03-05 12:43 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-05 12:43:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Heiko Adams 2015-03-03 17:18:39 UTC
Description of problem:
Building blueman from git and starting blueman-applet afterwards
SELinux is preventing /usr/bin/python2.7 from 'write' accesses on the directory /sys/kernel/config.

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

If sie denken, dass es python2.7 standardmässig erlaubt sein sollte, write Zugriff auf config directory zu erhalten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen:
# grep python /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:blueman_t:s0-s0:c0.c1023
Target Context                system_u:object_r:configfs_t:s0
Target Objects                /sys/kernel/config [ dir ]
Source                        python
Source Path                   /usr/bin/python2.7
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           python-2.7.8-7.fc21.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-105.3.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.18.7-200.fc21.x86_64 #1 SMP Wed
                              Feb 11 21:53:17 UTC 2015 x86_64 x86_64
Alert Count                   4
First Seen                    2015-03-03 18:12:50 CET
Last Seen                     2015-03-03 18:12:50 CET
Local ID                      b1fae462-22a6-4bee-ab3d-d623432d96fc

Raw Audit Messages
type=AVC msg=audit(1425402770.561:720): avc:  denied  { write } for  pid=8456 comm="python" name="/" dev="configfs" ino=11394 scontext=system_u:system_r:blueman_t:s0-s0:c0.c1023 tcontext=system_u:object_r:configfs_t:s0 tclass=dir permissive=0


type=SYSCALL msg=audit(1425402770.561:720): arch=x86_64 syscall=access success=no exit=EACCES a0=7fffd5232fd9 a1=2 a2=0 a3=0 items=0 ppid=1 pid=8456 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=python exe=/usr/bin/python2.7 subj=system_u:system_r:blueman_t:s0-s0:c0.c1023 key=(null)

Hash: python,blueman_t,configfs_t,dir,write

Version-Release number of selected component:
selinux-policy-3.13.1-105.3.fc21.noarch

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         3.18.7-200.fc21.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2015-03-05 12:43:04 UTC

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


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