Bug 737476 - SELinux is preventing /bin/systemd-tmpfiles from 'read' accesses on the directory isolinux.
Summary: SELinux is preventing /bin/systemd-tmpfiles from 'read' accesses on the direc...
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
Whiteboard: setroubleshoot_trace_hash:a72588c3396...
Depends On:
TreeView+ depends on / blocked
Reported: 2011-09-12 08:53 UTC by Mads Kiilerich
Modified: 2011-12-04 02:35 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.9.16-48.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2011-12-04 02:35:09 UTC
Type: ---

Attachments (Terms of Use)

Description Mads Kiilerich 2011-09-12 08:53:32 UTC
SELinux is preventing /bin/systemd-tmpfiles from 'read' accesses on the directory isolinux.

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

If you believe that systemd-tmpfiles should be allowed read access on the isolinux directory by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
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                system_u:object_r:iso9660_t:s0
Target Objects                isolinux [ dir ]
Source                        systemd-tmpfile
Source Path                   /bin/systemd-tmpfiles
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           systemd-units-26-9.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-39.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) #1 SMP Tue
                              Aug 30 14:43:52 UTC 2011 i686 i686
Alert Count                   2
First Seen                    Sat 10 Sep 2011 01:28:30 PM CEST
Last Seen                     Sun 11 Sep 2011 01:28:26 PM CEST
Local ID                      a1a89655-e061-4fb9-9630-fbcc7a555aa0

Raw Audit Messages
type=AVC msg=audit(1315740506.267:946): avc:  denied  { read } for  pid=31122 comm="systemd-tmpfile" name="isolinux" dev=sda3 ino=90836 scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=system_u:object_r:iso9660_t:s0 tclass=dir

type=SYSCALL msg=audit(1315740506.267:946): arch=i386 syscall=openat success=yes exit=EIO a0=4 a1=9891b6b a2=b8800 a3=0 items=0 ppid=1 pid=31122 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=/bin/systemd-tmpfiles subj=system_u:system_r:systemd_tmpfiles_t:s0 key=(null)

Hash: systemd-tmpfile,systemd_tmpfiles_t,iso9660_t,dir,read


#============= systemd_tmpfiles_t ==============
allow systemd_tmpfiles_t iso9660_t:dir read;

audit2allow -R

#============= systemd_tmpfiles_t ==============
allow systemd_tmpfiles_t iso9660_t:dir read;

Comment 1 Mads Kiilerich 2011-09-12 08:55:45 UTC
I happened to have
drwxrwxr-x. mk mk system_u:object_r:iso9660_t:s0   /tmp/isolinux/

I would expect that either
* systemd had permissions to remove _everything_ in /tmp, or
* systemd didn't try to remove anything it didn't have permissions to - and log it "properly", or
* such denials were silent

Comment 3 Daniel Walsh 2011-09-12 19:08:50 UTC
Well I guess in this case we can dontaudit it.

But lets add


Comment 4 Miroslav Grepl 2011-09-26 10:25:30 UTC
Fixed in selinux-policy-3.9.16-41.fc15

Comment 5 Fedora Update System 2011-11-16 16:17:02 UTC
selinux-policy-3.9.16-48.fc15 has been submitted as an update for Fedora 15.

Comment 6 Fedora Update System 2011-11-17 23:35:25 UTC
Package selinux-policy-3.9.16-48.fc15:
* should fix your issue,
* was pushed to the Fedora 15 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.9.16-48.fc15'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2011-12-04 02:35:09 UTC
selinux-policy-3.9.16-48.fc15 has been pushed to the Fedora 15 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.