SELinux port type

The SELinux type given to a network port number, which decides which confined services may listen on it.

In more detail

The web server may bind only ports of type http_port_t, and the SSH server only ssh_port_t. semanage port -a -t adds a local rule for a new number, -m changes a number that already has a type, and -l -C lists the local rules. A firewall rule is still needed separately for clients to reach the port.

Example

semanage port -a -t http_port_t -p tcp 82

Related terms

Taught in

References

Certification courses