Bug 670169 - SELinux is preventing /lib/systemd/systemd-tmpfiles from 'connectto' accesses on the unix_stream_socket /var/run/nscd/socket.
Summary: SELinux is preventing /lib/systemd/systemd-tmpfiles from 'connectto' accesses...
Keywords:
Status: CLOSED DUPLICATE of bug 670166
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:f52665dd318...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-17 12:36 UTC by Horst H. von Brand
Modified: 2011-01-17 15:52 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-17 15:52:43 UTC
Type: ---


Attachments (Terms of Use)

Description Horst H. von Brand 2011-01-17 12:36:43 UTC
SELinux is preventing /lib/systemd/systemd-tmpfiles from 'connectto' accesses on the unix_stream_socket /var/run/nscd/socket.

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

If you believe that systemd-tmpfiles should be allowed connectto access on the socket unix_stream_socket 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:system_r:nscd_t:s0
Target Objects                /var/run/nscd/socket [ unix_stream_socket ]
Source                        systemd-tmpfile
Source Path                   /lib/systemd/systemd-tmpfiles
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           systemd-15-1.fc15
Target RPM Packages           nscd-2.12.90-21.fc15
Policy RPM                    selinux-policy-3.9.12-3.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.37-0.rc7.git0.2.fc15.x86_64 #1 SMP Wed Dec 22
                              17:12:22 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Sat 01 Jan 2011 04:20:45 PM CLST
Last Seen                     Sat 01 Jan 2011 04:20:45 PM CLST
Local ID                      1d5e91d3-931e-40c1-8969-efd06f545cd3

Raw Audit Messages
type=AVC msg=audit(1293909645.327:2488): avc:  denied  { connectto } for  pid=21584 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(1293909645.327:2488): arch=x86_64 syscall=connect success=yes exit=0 a0=5 a1=7fff774562e0 a2=6e a3=400 items=0 ppid=1 pid=21584 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_t,unix_stream_socket,connectto

audit2allow

#============= systemd_tmpfiles_t ==============
allow systemd_tmpfiles_t nscd_t:unix_stream_socket connectto;

audit2allow -R

#============= systemd_tmpfiles_t ==============
allow systemd_tmpfiles_t nscd_t:unix_stream_socket connectto;

Comment 1 Daniel Walsh 2011-01-17 15:52:43 UTC

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


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