Bug 1014022 - SELinux is preventing tuned from 'write' accesses on the directory /sys/kernel/debug.
Summary: SELinux is preventing tuned from 'write' accesses on the directory /sys/kerne...
Keywords:
Status: CLOSED DUPLICATE of bug 1014017
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:07916b015101afce3d3d36ad550...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-01 09:32 UTC by Heiko Adams
Modified: 2013-10-04 14:37 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-04 14:37:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Heiko Adams 2013-10-01 09:32:21 UTC
Description of problem:
Just booted my system and logged into my Xfce session
SELinux is preventing tuned from 'write' accesses on the directory /sys/kernel/debug.

*****  Plugin restorecon (99.5 confidence) suggests   ************************

If sie die Kennzeichnung korrigieren möchten.
/sys/kernel/debug Standard-Kennzeichnung sollte sysfs_t sein.
Then sie können restorecon ausführen.
Do
# /sbin/restorecon -v /sys/kernel/debug

*****  Plugin catchall (1.49 confidence) suggests   **************************

If sie denken, dass es tuned standardmässig erlaubt sein sollte, write Zugriff auf debug 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 tuned /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:tuned_t:s0
Target Context                system_u:object_r:debugfs_t:s0
Target Objects                /sys/kernel/debug [ dir ]
Source                        tuned
Source Path                   tuned
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           python-2.7.5-7.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-84.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.11.2-301.fc20.x86_64 #1 SMP Fri
                              Sep 27 19:45:03 UTC 2013 x86_64 x86_64
Alert Count                   4
First Seen                    2013-10-01 06:34:23 CEST
Last Seen                     2013-10-01 11:27:33 CEST
Local ID                      2101a73e-c08e-41d3-8cd8-47a219c4bf5c

Raw Audit Messages
type=AVC msg=audit(1380619653.579:184): avc:  denied  { write } for  pid=575 comm="tuned" name="/" dev="debugfs" ino=1 scontext=system_u:system_r:tuned_t:s0 tcontext=system_u:object_r:debugfs_t:s0 tclass=dir


type=SYSCALL msg=audit(1380619653.579:184): arch=x86_64 syscall=access success=no exit=EACCES a0=7fff45649768 a1=2 a2=0 a3=0 items=0 ppid=1 pid=575 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=tuned exe=/usr/bin/python2.7 subj=system_u:system_r:tuned_t:s0 key=(null)

Hash: tuned,tuned_t,debugfs_t,dir,write

Additional info:
reporter:       libreport-2.1.7
hashmarkername: setroubleshoot
kernel:         3.11.2-301.fc20.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-10-04 14:37:37 UTC

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


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