Bug 364931

Summary: logins with NIS are denied
Product: [Fedora] Fedora Reporter: Chris Lumens <clumens>
Component: selinux-policy-targetedAssignee: Daniel Walsh <dwalsh>
Status: CLOSED NOTABUG QA Contact: Ben Levenson <benl>
Severity: low Docs Contact:
Priority: low    
Version: 8   
Target Milestone: ---   
Target Release: ---   
Hardware: powerpc   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-11-10 13:10:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Chris Lumens 2007-11-03 00:46:53 UTC
With selinux-policy-targeted-3.0.8-42.fc8.noarch running, I am unable to login
either at the console or via gdm if I am using NIS and in enforcing mode.  The
following policy blob adapted from the similar dovecot bug fixes this:

module nis 1.0;

require {
        type system_chkpwd_t;
        type hi_reserved_port_t;
        type updpwd_t;
        class capability net_bind_service;
        class tcp_socket { name_bind name_connect };
        class udp_socket name_bind;
}

allow system_chkpwd_t hi_reserved_port_t:tcp_socket { name_bind name_connect };
allow system_chkpwd_t hi_reserved_port_t:udp_socket name_bind;
allow system_chkpwd_t self:capability net_bind_service;

allow updpwd_t hi_reserved_port_t:udp_socket name_bind;
allow updpwd_t self:capability net_bind_service;

Comment 1 Daniel Walsh 2007-11-05 15:49:33 UTC
Do you have the allow_ypbind boolean turned on ?

setsebool -P allow_ypbind=1

Comment 2 Chris Lumens 2007-11-05 15:58:42 UTC
chris@monolith:~$ /usr/sbin/getsebool allow_ypbind
allow_ypbind --> on

Perhaps it wasn't set before I started messing around with new policy, though. 
I would need to bring up another machine and see if it works or not to be sure.