Bug 1014017 - SELinux is preventing tuned from 'write' accesses on the directory /home.
Summary: SELinux is preventing tuned from 'write' accesses on the directory /home.
Keywords:
Status: CLOSED ERRATA
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:e296c8e3b443f87c344a66e4410...
: 1014021 1014022 1014025 1014026 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-01 09:29 UTC by Heiko Adams
Modified: 2013-11-10 06:21 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.12.1-90.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-10 06:21:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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

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

If sie denken, dass es tuned standardmässig erlaubt sein sollte, write Zugriff auf home 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:home_root_t:s0
Target Objects                /home [ dir ]
Source                        tuned
Source Path                   tuned
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           python-2.7.5-7.fc20.x86_64
Target RPM Packages           filesystem-3.2-19.fc20.x86_64
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                   5
First Seen                    2013-10-01 06:34:23 CEST
Last Seen                     2013-10-01 11:27:33 CEST
Local ID                      94fa79f2-bf60-4717-9da5-a85c072ca9bf

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


type=SYSCALL msg=audit(1380619653.579:187): arch=x86_64 syscall=access success=no exit=EACCES a0=7fff4564977d 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,home_root_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:18 UTC
Why would tuned want to write to /home?  Is this a mount point?  Looks like it is doing an access check on all mount points.

Comment 2 Daniel Walsh 2013-10-04 14:37:30 UTC
*** Bug 1014021 has been marked as a duplicate of this bug. ***

Comment 3 Daniel Walsh 2013-10-04 14:37:37 UTC
*** Bug 1014022 has been marked as a duplicate of this bug. ***

Comment 4 Daniel Walsh 2013-10-04 14:41:59 UTC
*** Bug 1014026 has been marked as a duplicate of this bug. ***

Comment 5 Daniel Walsh 2013-10-04 14:42:09 UTC
*** Bug 1014025 has been marked as a duplicate of this bug. ***

Comment 6 Daniel Walsh 2013-10-04 14:44:08 UTC
54f159575a3435116ece89966a4b2e0a67a931e4 fixes this in git.

Comment 8 Artur Szymczak 2013-10-09 11:39:48 UTC
Description of problem:
The problem occures after: systemctl start tuned

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

Comment 9 Fedora Update System 2013-10-15 16:29:46 UTC
selinux-policy-3.12.1-90.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-90.fc20

Comment 10 Fedora Update System 2013-10-17 20:21:12 UTC
Package selinux-policy-3.12.1-90.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-90.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-19129/selinux-policy-3.12.1-90.fc20
then log in and leave karma (feedback).

Comment 11 Fedora Update System 2013-11-10 06:21:04 UTC
selinux-policy-3.12.1-90.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


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