Bug 742045

Summary: SELinux is preventing /bin/systemd-tmpfiles from 'setattr' accesses on the diretório ksocket-claudio.
Product: [Fedora] Fedora Reporter: Claudio Guimarães <claudio.guima>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:de38027a48fb055aa7dd9138c301d9d7d3f4d849cf3fe7900e4d3807e9fbe265
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-29 07:54:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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

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

If you believe that systemd-tmpfiles should be allowed setattr 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                      2bc2f586-9bea-499c-96a3-e896b18d51ef

Raw Audit Messages
type=AVC msg=audit(1317236247.821:44): avc:  denied  { setattr } 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=SYSCALL msg=audit(1317236247.821:44): arch=x86_64 syscall=utimensat success=yes exit=0 a0=6 a1=0 a2=7fffb62fe070 a3=0 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,setattr

audit2allow

#============= systemd_tmpfiles_t ==============
allow systemd_tmpfiles_t user_home_dir_t:dir setattr;

audit2allow -R

#============= systemd_tmpfiles_t ==============
allow systemd_tmpfiles_t user_home_dir_t:dir setattr;

Comment 1 Miroslav Grepl 2011-09-29 07:54:40 UTC

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