| 1 |
.TH "sepolicy-network" "8" "20121005" "" "" |
| 2 |
.SH "NAME" |
| 3 |
sepolicy-network \- Examine the SELinux Policy and generate a network report |
| 4 |
|
| 5 |
.SH "SYNOPSIS" |
| 6 |
|
| 7 |
.br |
| 8 |
.B sepolicy network [\-h] (\-l | \-a application [application ...] | \-p PORT [PORT ...] | \-t TYPE [TYPE ...] | \-d DOMAIN [DOMAIN ...]) |
| 9 |
|
| 10 |
.SH "DESCRIPTION" |
| 11 |
Use sepolicy network to examine SELinux Policy and generate network reports. |
| 12 |
|
| 13 |
.SH "OPTIONS" |
| 14 |
.TP |
| 15 |
.I \-a, \-\-application |
| 16 |
Generate a report listing the ports to which the specified init application is allowed to connect and or bind. |
| 17 |
.TP |
| 18 |
.I \-d, \-\-domain |
| 19 |
Generate a report listing the ports to which the specified domain is allowed to connect and or bind. |
| 20 |
.TP |
| 21 |
.I \-l, \-\-list |
| 22 |
List all Network Port Types defined in SELinux Policy |
| 23 |
.TP |
| 24 |
.I \-h, \-\-help |
| 25 |
Display help message |
| 26 |
.TP |
| 27 |
.I \-t, \-\-type |
| 28 |
Generate a report listing the port numbers associate with the specified SELinux port type. |
| 29 |
.TP |
| 30 |
.I \-p, \-\-port |
| 31 |
Generate a report listing the SELinux port types associate with the specified port number. |
| 32 |
|
| 33 |
.SH "EXAMPLES" |
| 34 |
|
| 35 |
.B sepolicy network -p 22 |
| 36 |
.br |
| 37 |
22: tcp ssh_port_t 22 |
| 38 |
.br |
| 39 |
22: udp reserved_port_t 1-511 |
| 40 |
.br |
| 41 |
22: tcp reserved_port_t 1-511 |
| 42 |
|
| 43 |
.B sepolicy network -a /usr/sbin/sshd |
| 44 |
.br |
| 45 |
sshd_t: tcp name_connect |
| 46 |
.br |
| 47 |
111 (portmap_port_t) |
| 48 |
.br |
| 49 |
53 (dns_port_t) |
| 50 |
.br |
| 51 |
88, 750, 4444 (kerberos_port_t) |
| 52 |
.br |
| 53 |
9080 (ocsp_port_t) |
| 54 |
.br |
| 55 |
9180, 9701, 9443-9447 (pki_ca_port_t) |
| 56 |
.br |
| 57 |
32768-61000 (ephemeral_port_t) |
| 58 |
.br |
| 59 |
all ports < 1024 (reserved_port_type) |
| 60 |
.br |
| 61 |
all ports with out defined types (port_t) |
| 62 |
.br |
| 63 |
sshd_t: tcp name_bind |
| 64 |
.br |
| 65 |
22 (ssh_port_t) |
| 66 |
.br |
| 67 |
5900-5983, 5985-5999 (vnc_port_t) |
| 68 |
.br |
| 69 |
6000-6020 (xserver_port_t) |
| 70 |
.br |
| 71 |
32768-61000 (ephemeral_port_t) |
| 72 |
.br |
| 73 |
all ports > 500 and < 1024 (rpc_port_type) |
| 74 |
.br |
| 75 |
all ports with out defined types (port_t) |
| 76 |
.br |
| 77 |
sshd_t: udp name_bind |
| 78 |
.br |
| 79 |
32768-61000 (ephemeral_port_t) |
| 80 |
.br |
| 81 |
all ports > 500 and < 1024 (rpc_port_type) |
| 82 |
.br |
| 83 |
all ports with out defined types (port_t) |
| 84 |
|
| 85 |
|
| 86 |
.SH "AUTHOR" |
| 87 |
This man page was written by Daniel Walsh <[email protected]> |
| 88 |
|
| 89 |
.SH "SEE ALSO" |
| 90 |
sepolicy(8), selinux(8), semanage(8) |
| 91 |
|