Bug 670668

Summary: SELinux is preventing /usr/sbin/ipa_kpasswd from 'name_bind' accesses on the udp_socket port 464.
Product: [Fedora] Fedora Reporter: Dmitri Pal <dpal>
Component: ipaAssignee: Rob Crittenden <rcritten>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 14CC: dwalsh, mgrepl, mkosek, rcritten, ssorce
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:d0abc34f2676fa4b71450d9a3ea61240b8c991865fd5c7de1ff604bb35497136
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-27 06:52:32 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 Dmitri Pal 2011-01-18 23:07:06 UTC
SELinux is preventing /usr/sbin/ipa_kpasswd from 'name_bind' accesses on the udp_socket port 464.

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

If you believe that ipa_kpasswd should be allowed name_bind access on the port 464 udp_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 ipa_kpasswd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:system_r:ipa_kpasswd_t:s0
Target Context                system_u:object_r:kerberos_password_port_t:s0
Target Objects                port 464 [ udp_socket ]
Source                        ipa_kpasswd
Source Path                   /usr/sbin/ipa_kpasswd
Port                          464
Host                          (removed)
Source RPM Packages           ipa-server-2.0-0.2011011418gita68b2d2.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-19.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.10-72.fc14.i686.PAE #1
                              SMP Mon Dec 20 21:47:25 UTC 2010 i686 i686
Alert Count                   8
First Seen                    Wed 12 Jan 2011 10:14:40 PM EST
Last Seen                     Mon 17 Jan 2011 12:51:07 PM EST
Local ID                      1419e8f3-5574-49b8-ab41-5a931006569e

Raw Audit Messages
type=AVC msg=audit(1295286667.88:212): avc:  denied  { name_bind } for  pid=20148 comm="ipa_kpasswd" src=464 scontext=unconfined_u:system_r:ipa_kpasswd_t:s0 tcontext=system_u:object_r:kerberos_password_port_t:s0 tclass=udp_socket

ipa_kpasswd,ipa_kpasswd_t,kerberos_password_port_t,udp_socket,name_bind
type=SYSCALL msg=audit(1295286667.88:212): arch=i386 syscall=socketcall success=no exit=EACCES a0=2 a1=bf979670 a2=830b2c0 a3=804d711 items=0 ppid=1 pid=20148 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=2 comm=ipa_kpasswd exe=/usr/sbin/ipa_kpasswd subj=unconfined_u:system_r:ipa_kpasswd_t:s0 key=(null)
ipa_kpasswd,ipa_kpasswd_t,kerberos_password_port_t,udp_socket,name_bind

#============= ipa_kpasswd_t ==============
allow ipa_kpasswd_t kerberos_password_port_t:udp_socket name_bind;

Comment 1 Rob Crittenden 2011-03-10 23:12:48 UTC
master: b270542863eb5d9fec2b9c66f700ae54dd1584a9

Requires selinux-policy-3.6.32-123 on F12
Requires selinux-policy-3.7.19-40 on F13