| Summary: | SELinux is preventing /lib/systemd/systemd-tmpfiles from 'write' accesses on the sock_file socket. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Horst H. von Brand <vonbrand> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | rawhide | CC: | dwalsh, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | setroubleshoot_trace_hash:e09d504a9253aa4c7d9bb6462d9ff47ecb3a3d76d0115c1d6b994b0b6d5face1 | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-01-17 16:05:34 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
systemd_tmpfiles needs auth_use_nsswitch grep getpw *tmp* tmpfiles.c: else if ((p = getpwnam(user))) *** Bug 670169 has been marked as a duplicate of this bug. *** Fixed in selinux-policy-3.9.12-8.fc15 |
SELinux is preventing /lib/systemd/systemd-tmpfiles from 'write' accesses on the sock_file socket. ***** Plugin catchall (100. confidence) suggests *************************** If you believe that systemd-tmpfiles should be allowed write access on the socket sock_file 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:nscd_var_run_t:s0 Target Objects socket [ sock_file ] Source systemd-tmpfile Source Path /lib/systemd/systemd-tmpfiles Port <Unknown> Host (removed) Source RPM Packages systemd-16-1.fc15 Target RPM Packages Policy RPM selinux-policy-3.9.12-7.fc15 Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 2.6.37-2.fc15.x86_64 #1 SMP Fri Jan 7 14:57:36 UTC 2011 x86_64 x86_64 Alert Count 51 First Seen Tue 14 Dec 2010 05:57:01 PM CLST Last Seen Mon 17 Jan 2011 09:29:07 AM CLST Local ID cc797dc9-dda2-4a07-a854-9f8a8680ea2b Raw Audit Messages type=AVC msg=audit(1295267347.184:90): avc: denied { write } for pid=3028 comm="systemd-tmpfile" name="socket" dev=tmpfs ino=34214 scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=system_u:object_r:nscd_var_run_t:s0 tclass=sock_file type=AVC msg=audit(1295267347.184:90): avc: denied { connectto } for pid=3028 comm="systemd-tmpfile" path="/var/run/nscd/socket" scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=system_u:system_r:nscd_t:s0 tclass=unix_stream_socket type=SYSCALL msg=audit(1295267347.184:90): arch=x86_64 syscall=connect success=yes exit=0 a0=5 a1=7fff17e4c410 a2=6e a3=400 items=0 ppid=1 pid=3028 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=/lib/systemd/systemd-tmpfiles subj=system_u:system_r:systemd_tmpfiles_t:s0 key=(null) Hash: systemd-tmpfile,systemd_tmpfiles_t,nscd_var_run_t,sock_file,write audit2allow #============= systemd_tmpfiles_t ============== allow systemd_tmpfiles_t nscd_t:unix_stream_socket connectto; allow systemd_tmpfiles_t nscd_var_run_t:sock_file write; audit2allow -R #============= systemd_tmpfiles_t ============== allow systemd_tmpfiles_t nscd_t:unix_stream_socket connectto; allow systemd_tmpfiles_t nscd_var_run_t:sock_file write;