Bug 742043 - SELinux is preventing /bin/systemd-tmpfiles from 'write' accesses on the diretório ksocket-claudio.
Summary: SELinux is preventing /bin/systemd-tmpfiles from 'write' accesses on the dire...
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:e42e0cd7935...
: 742045 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-28 20:49 UTC by Claudio Guimarães
Modified: 2011-11-21 16:58 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-21 16:58:38 UTC
Type: ---


Attachments (Terms of Use)

Description Claudio Guimarães 2011-09-28 20:49:36 UTC
SELinux is preventing /bin/systemd-tmpfiles from 'write' accesses on the diretório ksocket-claudio.

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

If you believe that systemd-tmpfiles should be allowed write access on the ksocket-claudio 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:user_home_dir_t:s0
Target Objects                ksocket-claudio [ dir ]
Source                        systemd-tmpfile
Source Path                   /bin/systemd-tmpfiles
Port                          <Desconhecido>
Host                          (removed)
Source RPM Packages           systemd-units-26-9.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-38.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.40.4-5.fc15.x86_64 #1 SMP Tue Aug
                              30 14:38:32 UTC 2011 x86_64 x86_64
Alert Count                   2
First Seen                    Qua 28 Set 2011 10:19:08 BRT
Last Seen                     Qua 28 Set 2011 15:57:27 BRT
Local ID                      2c500301-93d6-4e1f-af9a-83a8511f36b3

Raw Audit Messages
type=AVC msg=audit(1317236247.820:43): avc:  denied  { write } for  pid=2506 comm="systemd-tmpfile" name="ksocket-claudio" dev=sda6 ino=6684697 scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=dir


type=AVC msg=audit(1317236247.820:43): avc:  denied  { remove_name } for  pid=2506 comm="systemd-tmpfile" name="klauncherMT3845.slave-socket" dev=sda6 ino=6684904 scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=dir


type=SYSCALL msg=audit(1317236247.820:43): arch=x86_64 syscall=unlinkat success=yes exit=0 a0=6 a1=14274b3 a2=0 a3=7fffb62fd6c1 items=0 ppid=1 pid=2506 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,user_home_dir_t,dir,write

audit2allow

#============= systemd_tmpfiles_t ==============
#!!!! The source type 'systemd_tmpfiles_t' can write to a 'dir' of the following types:
# faillog_t, rpm_var_lib_t, man_t, root_t, tmp_t, device_t, var_auth_t, file_t, lockfile, tmpfs_t, pidfile, tmpfile, sandbox_file_t

allow systemd_tmpfiles_t user_home_dir_t:dir { write remove_name };

audit2allow -R

#============= systemd_tmpfiles_t ==============
#!!!! The source type 'systemd_tmpfiles_t' can write to a 'dir' of the following types:
# faillog_t, rpm_var_lib_t, man_t, root_t, tmp_t, device_t, var_auth_t, file_t, lockfile, tmpfs_t, pidfile, tmpfile, sandbox_file_t

allow systemd_tmpfiles_t user_home_dir_t:dir { write remove_name };

Comment 1 Miroslav Grepl 2011-09-29 07:54:23 UTC
Where is really "klauncherMT3845.slave-socket" located?

Comment 2 Miroslav Grepl 2011-09-29 07:54:40 UTC
*** Bug 742045 has been marked as a duplicate of this bug. ***


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