sepolicy-network (8) - Linux Manuals
sepolicy-network: Examine the SELinux Policy and generate a network report
NAME
sepolicy-network - Examine the SELinux Policy and generate a network reportSYNOPSIS
sepolicy network [-h] (-l | -a application [application ...] | -p PORT [PORT ...] | -t TYPE [TYPE ...] | -d DOMAIN [DOMAIN ...])
DESCRIPTION
Use sepolicy network to examine SELinux Policy and generate network reports.OPTIONS
- -a, --application
- Generate a report listing the ports to which the specified init application is allowed to connect and or bind.
- -d, --domain
- Generate a report listing the ports to which the specified domain is allowed to connect and or bind.
- -l, --list
- List all Network Port Types defined in SELinux Policy
- -h, --help
- Display help message
- -t, --type
- Generate a report listing the port numbers associate with the specified SELinux port type.
- -p, --port
-
Generate a report listing the SELinux port types associate with the specified port number.
EXAMPLES
sepolicy network -p 22
22: tcp ssh_port_t 22
22: udp reserved_port_t 1-511
22: tcp reserved_port_t 1-511
sepolicy network -a /usr/sbin/sshd
sshd_t: tcp name_connect
sshd_t: tcp name_bind
sshd_t: udp name_bind