Bug 1139336 - SELinux is preventing /usr/bin/systemd-tmpfiles from 'setattr' accesses on the directory mctsct1z.default.
Summary: SELinux is preventing /usr/bin/systemd-tmpfiles from 'setattr' accesses on th...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:0f6349e7d5a05c9b6bbdedea302...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-08 17:06 UTC by long
Modified: 2014-12-19 18:29 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.12.1-74.30.fc19
Clone Of:
Environment:
Last Closed: 2014-12-19 18:29:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description long 2014-09-08 17:06:16 UTC
Description of problem:
SELinux is preventing /usr/bin/systemd-tmpfiles from 'setattr' accesses on the directory mctsct1z.default.

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

If you believe that systemd-tmpfiles should be allowed setattr access on the mctsct1z.default 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 systemd-tmpfile /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:systemd_tmpfiles_t:s0
Target Context                unconfined_u:object_r:mozilla_home_t:s0
Target Objects                mctsct1z.default [ dir ]
Source                        systemd-tmpfile
Source Path                   /usr/bin/systemd-tmpfiles
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           systemd-204-21.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-74.26.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.14.17-100.fc19.x86_64 #1 SMP Thu
                              Aug 14 17:17:26 UTC 2014 x86_64 x86_64
Alert Count                   40
First Seen                    2014-09-08 12:01:56 CDT
Last Seen                     2014-09-08 12:02:00 CDT
Local ID                      2e6eb64c-8e91-4335-97a0-02002f1c9f16

Raw Audit Messages
type=AVC msg=audit(1410195720.235:599): avc:  denied  { setattr } for  pid=5857 comm="systemd-tmpfile" name="mctsct1z.default" dev="sda5" ino=28311568 scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=unconfined_u:object_r:mozilla_home_t:s0 tclass=dir


type=SYSCALL msg=audit(1410195720.235:599): arch=x86_64 syscall=utimensat success=no exit=EACCES a0=5 a1=0 a2=7fffce3f9160 a3=0 items=0 ppid=1 pid=5857 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=systemd-tmpfile exe=/usr/bin/systemd-tmpfiles subj=system_u:system_r:systemd_tmpfiles_t:s0 key=(null)

Hash: systemd-tmpfile,systemd_tmpfiles_t,mozilla_home_t,dir,setattr

Additional info:
reporter:       libreport-2.2.2
hashmarkername: setroubleshoot
kernel:         3.14.17-100.fc19.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2014-09-09 13:51:40 UTC
#============= systemd_tmpfiles_t ==============

#!!!! This avc is allowed in the current policy
allow systemd_tmpfiles_t mozilla_home_t:dir setattr;

Comment 2 Lukas Vrabec 2014-10-01 11:15:14 UTC
commit 6cbd6c8f2bd65ddf5ebec784fcf62672a21807a9
Author: Lukas Vrabec <lvrabec>
Date:   Wed Oct 1 13:14:24 2014 +0200

    Allow systemd_tmpfiles_t to manage/relabel non auth files. BZ #(1139336)

Comment 3 Fedora Update System 2014-12-03 12:53:24 UTC
selinux-policy-3.12.1-74.30.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-74.30.fc19

Comment 4 Fedora Update System 2014-12-04 06:27:16 UTC
Package selinux-policy-3.12.1-74.30.fc19:
* should fix your issue,
* was pushed to the Fedora 19 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-74.30.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-16276/selinux-policy-3.12.1-74.30.fc19
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2014-12-19 18:29:26 UTC
selinux-policy-3.12.1-74.30.fc19 has been pushed to the Fedora 19 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.