Bug 692712 - SELinux is preventing /bin/systemd-tmpfiles from 'read' accesses on the directorio user.
Summary: SELinux is preventing /bin/systemd-tmpfiles from 'read' accesses on the direc...
Keywords:
Status: CLOSED DUPLICATE of bug 692459
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:6e2390a8005...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-31 22:07 UTC by Juan Francisco Fernández
Modified: 2011-04-02 08:42 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-01 10:13:32 UTC
Type: ---


Attachments (Terms of Use)

Description Juan Francisco Fernández 2011-03-31 22:07:40 UTC
SELinux is preventing /bin/systemd-tmpfiles from 'read' accesses on the directorio user.

*****  Plugin catchall_labels (83.8 confidence) suggests  ********************

If desea permitir que systemd-tmpfiles tenga read acceso al user directory
Then you need to change the label on user
Do
# semanage fcontext -a -t FILE_TYPE 'user'
where FILE_TYPE is one of the following: sysctl_crypto_t, cert_t, man_t, tmp_t, abrt_t, lib_t, root_t, device_t, usr_t, locale_t, var_auth_t, etc_t, lockfile, pidfile, tmpfile, device_t, etc_t, lost_found_t, textrel_shlib_t, systemd_tmpfiles_t, var_run_t, rpm_var_cache_t, faillog_t, proc_net_t, rpm_var_lib_t, net_conf_t, nscd_var_run_t, cert_t, var_lib_t, net_conf_t. 
Then execute: 
restorecon -v 'user'


*****  Plugin catchall (17.1 confidence) suggests  ***************************

If you believe that systemd-tmpfiles should be allowed read access on the user 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                system_u:object_r:default_t:s0
Target Objects                user [ dir ]
Source                        systemd-tmpfile
Source Path                   /bin/systemd-tmpfiles
Port                          <Desconocido>
Host                          (removed)
Source RPM Packages           systemd-units-21-2.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-6.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.2-9.fc15.i686 #1 SMP Wed Mar 30
                              16:54:01 UTC 2011 i686 i686
Alert Count                   1
First Seen                    vie 01 abr 2011 00:06:32 CEST
Last Seen                     vie 01 abr 2011 00:06:32 CEST
Local ID                      75912be4-ad3d-4800-98da-5bf95fc560b2

Raw Audit Messages
type=AVC msg=audit(1301609192.37:204): avc:  denied  { read } for  pid=2534 comm="systemd-tmpfile" name="user" dev=tmpfs ino=12265 scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=system_u:object_r:default_t:s0 tclass=dir


type=SYSCALL msg=audit(1301609192.37:204): arch=i386 syscall=open success=yes exit=EINTR a0=9792b50 a1=98800 a2=978e268 a3=81871c14 items=0 ppid=1 pid=2534 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,default_t,dir,read

audit2allow

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

audit2allow -R

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

Comment 1 Miroslav Grepl 2011-04-01 10:13:32 UTC

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


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