Bug 903678 - SELinux is preventing /usr/sbin/sendmail.sendmail from 'getattr' accesses on the unix_stream_socket unix_stream_socket.
Summary: SELinux is preventing /usr/sbin/sendmail.sendmail from 'getattr' accesses on ...
Keywords:
Status: CLOSED DUPLICATE of bug 903676
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:87be3c454882e28b8475a84470c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-24 14:59 UTC by Martin
Modified: 2014-09-15 00:04 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-24 22:44:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Martin 2013-01-24 14:59:23 UTC
Description of problem:
Upgrade from clean installed F18 to F19 Rawhide.
SELinux is preventing /usr/sbin/sendmail.sendmail from 'getattr' accesses on the unix_stream_socket unix_stream_socket.

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

If you believe that sendmail.sendmail should be allowed getattr access on the unix_stream_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 newaliases /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:sendmail_t:s0
Target Context                system_u:system_r:udev_t:s0-s0:c0.c1023
Target Objects                unix_stream_socket [ unix_stream_socket ]
Source                        newaliases
Source Path                   /usr/sbin/sendmail.sendmail
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           sendmail-8.14.5-15.fc18.x86_64
                              sendmail-8.14.6-2.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-66.fc18.noarch selinux-
                              policy-3.12.1-5.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.6.10-4.fc18.x86_64 #1 SMP Tue
                              Dec 11 18:01:27 UTC 2012 x86_64 x86_64
Alert Count                   3
First Seen                    2013-01-24 15:16:15 CET
Last Seen                     2013-01-24 15:40:07 CET
Local ID                      a20bb6d0-2207-46f3-8a7d-f9d735f38875

Raw Audit Messages
type=AVC msg=audit(1359038407.289:430): avc:  denied  { getattr } for  pid=8074 comm="sendmail" path="socket:[78057]" dev="sockfs" ino=78057 scontext=system_u:system_r:sendmail_t:s0 tcontext=system_u:system_r:udev_t:s0-s0:c0.c1023 tclass=unix_stream_socket


type=SYSCALL msg=audit(1359038407.289:430): arch=x86_64 syscall=fstat success=yes exit=0 a0=1 a1=7fffc0b2c590 a2=7fffc0b2c590 a3=ffebfbff items=0 ppid=1 pid=8074 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=51 sgid=51 fsgid=51 tty=(none) ses=4294967295 comm=sendmail exe=/usr/sbin/sendmail.sendmail subj=system_u:system_r:sendmail_t:s0 key=(null)

Hash: newaliases,sendmail_t,udev_t,unix_stream_socket,getattr

audit2allow

#============= sendmail_t ==============
allow sendmail_t udev_t:unix_stream_socket getattr;

audit2allow -R

#============= sendmail_t ==============
allow sendmail_t udev_t:unix_stream_socket getattr;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.6.10-4.fc18.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-01-24 22:44:37 UTC

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


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