Bug 689410 - SELinux is preventing /sbin/unix_chkpwd from 'sendto' accesses on the unix_dgram_socket /dev/log.
Summary: SELinux is preventing /sbin/unix_chkpwd from 'sendto' accesses on the unix_dg...
Keywords:
Status: CLOSED DUPLICATE of bug 689435
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:22947d7f4cb...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-21 12:28 UTC by tuxor
Modified: 2011-05-02 10:08 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-21 21:51:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description tuxor 2011-03-21 12:28:41 UTC
SELinux is preventing /sbin/unix_chkpwd from 'sendto' accesses on the unix_dgram_socket /dev/log.

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

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

Additional Information:
Source Context                system_u:system_r:chkpwd_t:s0-s0:c0.c1023
Target Context                system_u:system_r:init_t:s0
Target Objects                /dev/log [ unix_dgram_socket ]
Source                        unix_chkpwd
Source Path                   /sbin/unix_chkpwd
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           pam-1.1.3-8.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-5.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38-1.fc15.x86_64 #1 SMP
                              Tue Mar 15 05:29:00 UTC 2011 x86_64 x86_64
Alert Count                   2
First Seen                    Mo 21 Mär 2011 13:10:00 CET
Last Seen                     Mo 21 Mär 2011 13:10:12 CET
Local ID                      b2d9f849-facd-4974-bed2-d30d62b22466

Raw Audit Messages
type=AVC msg=audit(1300709412.845:52): avc:  denied  { sendto } for  pid=1537 comm="unix_chkpwd" path="/dev/log" scontext=system_u:system_r:chkpwd_t:s0-s0:c0.c1023 tcontext=system_u:system_r:init_t:s0 tclass=unix_dgram_socket


type=SYSCALL msg=audit(1300709412.845:52): arch=x86_64 syscall=connect success=no exit=EACCES a0=3 a1=7f94dd2577c0 a2=6e a3=0 items=0 ppid=1534 pid=1537 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=unix_chkpwd exe=/sbin/unix_chkpwd subj=system_u:system_r:chkpwd_t:s0-s0:c0.c1023 key=(null)

Hash: unix_chkpwd,chkpwd_t,init_t,unix_dgram_socket,sendto

audit2allow

#============= chkpwd_t ==============
allow chkpwd_t init_t:unix_dgram_socket sendto;

audit2allow -R

#============= chkpwd_t ==============
allow chkpwd_t init_t:unix_dgram_socket sendto;

Comment 1 Daniel Walsh 2011-03-21 21:51:02 UTC

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


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