2d6d9ac Ticket 47433 - With SeLinux, setup-ds.pl and setup-ds-admin.pl fail to detect already ranged labelled ports

Authored and Committed by tbordaz 10 years ago
    Ticket 47433 - With SeLinux, setup-ds.pl and setup-ds-admin.pl fail to detect already ranged labelled ports
    
    Bug Description:
    	With SeLinux ports may be labelled per range. In the output of 'semanage port -l' a range is displayed
    	with <portMin>-<portMax> rather than with an individual <portNum>.
    	When parsing the output, DSCreate.pm(updateSelinuxPolicy) expects a list of individual ports so it fails
    	to detect that a given port is in the range of ports.
    
    Fix Description:
    	When parsing the output of 'semanage port -l', if a range exists it checks that the provided port is
    	in the range or not.
    
    https://fedorahosted.org/389/ticket/47433
    
    Reviewed by: Rich Megginson (thanks Rich)
    
    Platforms tested: Fedora 17
    
    Flag Day: no
    
    Doc impact: no