OwlCyberDefense / setools

setools has moved to https://github.com/SELinuxProject/setools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

seinfo --portcon ignores numbers inside a defined interval

milosmalik opened this issue · comments

# rpm -qa setools\*
setools-console-4.1.0-3.fc26.x86_64
setools-python3-4.1.0-3.fc26.x86_64
# seinfo --portcon | grep 1023
   portcon tcp 512-1023 system_u:object_r:hi_reserved_port_t:s0
   portcon udp 512-1023 system_u:object_r:hi_reserved_port_t:s0
# seinfo --portcon 789

Portcon: 0
# seinfo --portcon | grep 5005
   portcon tcp 5004-5005 system_u:object_r:rtp_media_port_t:s0
   portcon udp 5004-5005 system_u:object_r:rtp_media_port_t:s0
# seinfo --portcon 5004

Portcon: 0
# seinfo --portcon 5005

Portcon: 0
# 

This currently is working as intended. It is searching exact equality for the port range.