Bug 847601 - SELinux is preventing /usr/bin/systemd-tmpfiles from 'getattr' accesses on the sock_file /tmp/ksocket-root/klauncherhX1880.slave-socket.
SELinux is preventing /usr/bin/systemd-tmpfiles from 'getattr' accesses on th...
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
i686 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-08-13 01:44 EDT by Patrick Liniger
Modified: 2012-08-13 14:18 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-08-13 14:18:39 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Patrick Liniger 2012-08-13 01:44:00 EDT
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.5.1-1.fc17.i686
time:           Mon 13 Aug 2012 07:43:03 AM CEST

:SELinux is preventing /usr/bin/systemd-tmpfiles from 'getattr' accesses on the sock_file /tmp/ksocket-root/klauncherhX1880.slave-socket.
:*****  Plugin catchall_labels (83.8 confidence) suggests  ********************
:If you want to allow systemd-tmpfiles to have getattr access on the klauncherhX1880.slave-socket sock_file
:Then you need to change the label on /tmp/ksocket-root/klauncherhX1880.slave-socket
:# semanage fcontext -a -t FILE_TYPE '/tmp/ksocket-root/klauncherhX1880.slave-socket'
:where FILE_TYPE is one of the following: non_security_file_type, setrans_var_run_t, pidfile, tmpfile, avahi_var_run_t, nscd_var_run_t, nslcd_var_run_t, sssd_var_lib_t, sandbox_file_t, user_home_type, file_type, winbind_var_run_t, httpd_sys_rw_content_t, lsassd_var_socket_t, devlog_t, file_t, nscd_var_run_t, pcscd_var_run_t. 
:Then execute: 
:restorecon -v '/tmp/ksocket-root/klauncherhX1880.slave-socket'
:*****  Plugin catchall (17.1 confidence) suggests  ***************************
:If you believe that systemd-tmpfiles should be allowed getattr access on the klauncherhX1880.slave-socket sock_file 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                unconfined_u:object_r:unlabeled_t:s0
:Target Objects                /tmp/ksocket-root/klauncherhX1880.slave-socket [
:                              sock_file ]
:Source                        systemd-tmpfile
:Source Path                   /usr/bin/systemd-tmpfiles
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           systemd-44-17.fc17.i686
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-145.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.5.1-1.fc17.i686 #1 SMP Thu Aug 9
:                              18:12:27 UTC 2012 i686 i686
:Alert Count                   1
:First Seen                    2012-08-13 07:37:59 CEST
:Last Seen                     2012-08-13 07:37:59 CEST
:Local ID                      89042cee-aa5c-42a2-a0ec-5dabf33cb19c
:Raw Audit Messages
:type=AVC msg=audit(1344836279.947:54): avc:  denied  { getattr } for  pid=1929 comm="systemd-tmpfile" path="/tmp/ksocket-root/klauncherhX1880.slave-socket" dev="sda4" ino=269206 scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=unconfined_u:object_r:unlabeled_t:s0 tclass=sock_file
:type=SYSCALL msg=audit(1344836279.947:54): arch=i386 syscall=fstatat64 success=no exit=EACCES a0=5 a1=990528b a2=bfb6d1f0 a3=100 items=0 ppid=1 pid=1929 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,unlabeled_t,sock_file,getattr
:#============= systemd_tmpfiles_t ==============
:allow systemd_tmpfiles_t unlabeled_t:sock_file getattr;
:audit2allow -R
:#============= systemd_tmpfiles_t ==============
:allow systemd_tmpfiles_t unlabeled_t:sock_file getattr;
Comment 1 Daniel Walsh 2012-08-13 14:18:18 EDT
rm -rf /tmp/ksocket-root/klauncherhX1880.slave-socket
Comment 2 Daniel Walsh 2012-08-13 14:18:39 EDT
Reopen if it happens again.

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