Blame python/semanage/semanage-port.8

Packit Service 9fb14c
.TH "semanage-port" "8" "20130617" "" ""
Packit Service 9fb14c
.SH "NAME"
Packit Service 9fb14c
.B semanage\-port \- SELinux Policy Management port mapping tool
Packit Service 9fb14c
.SH "SYNOPSIS"
Packit Service 9fb14c
.B semanage port [\-h] [\-n] [\-N] [\-S STORE] [ \-\-add \-t TYPE \-p PROTOCOL \-r RANGE port_name | port_range | \-\-delete \-p PROTOCOL port_name | port_range | \-\-deleteall  | \-\-extract  | \-\-list [\-C] | \-\-modify \-t TYPE \-p PROTOCOL \-r RANGE port_name | port_range ]
Packit Service 9fb14c
Packit Service 9fb14c
.SH "DESCRIPTION"
Packit Service 9fb14c
semanage is used to configure certain elements of SELinux policy without requiring modification to or recompilation from policy sources.  semanage port controls the port number to port type definitions.
Packit Service 9fb14c
Packit Service 9fb14c
.SH "OPTIONS"
Packit Service 9fb14c
.TP
Packit Service 9fb14c
.I  \-h, \-\-help
Packit Service 9fb14c
show this help message and exit
Packit Service 9fb14c
.TP
Packit Service 9fb14c
.I   \-n, \-\-noheading
Packit Service 9fb14c
Do not print heading when listing the specified object type
Packit Service 9fb14c
.TP
Packit Service 9fb14c
.I   \-N, \-\-noreload
Packit Service 9fb14c
Do not reload policy after commit
Packit Service 9fb14c
.TP
Packit Service 9fb14c
.I   \-S STORE, \-\-store STORE
Packit Service 9fb14c
Select an alternate SELinux Policy Store to manage
Packit Service 9fb14c
.TP
Packit Service 9fb14c
.I   \-C, \-\-locallist
Packit Service 9fb14c
List local customizations
Packit Service 9fb14c
.TP
Packit Service 9fb14c
.I   \-a, \-\-add
Packit Service 9fb14c
Add a record of the specified object type
Packit Service 9fb14c
.TP
Packit Service 9fb14c
.I   \-d, \-\-delete
Packit Service 9fb14c
Delete a record of the specified object type
Packit Service 9fb14c
.TP
Packit Service 9fb14c
.I   \-m, \-\-modify
Packit Service 9fb14c
Modify a record of the specified object type
Packit Service 9fb14c
.TP
Packit Service 9fb14c
.I   \-l, \-\-list
Packit Service 9fb14c
List records of the specified object type
Packit Service 9fb14c
.TP
Packit Service 9fb14c
.I   \-E, \-\-extract
Packit Service 9fb14c
Extract customizable commands, for use within a transaction
Packit Service 9fb14c
.TP
Packit Service 9fb14c
.I   \-D, \-\-deleteall
Packit Service 9fb14c
Remove all local customizations
Packit Service 9fb14c
.TP
Packit Service 9fb14c
.I   \-t TYPE, \-\-type TYPE
Packit Service 9fb14c
SELinux type for the object
Packit Service 9fb14c
.TP
Packit Service 9fb14c
.I   \-r RANGE, \-\-range RANGE
Packit Service 9fb14c
MLS/MCS Security Range (MLS/MCS Systems only) SELinux Range for SELinux login mapping defaults to the SELinux user record range. SELinux Range for SELinux user defaults to s0.
Packit Service 9fb14c
.TP
Packit Service 9fb14c
.I   \-p PROTO, \-\-proto PROTO
Packit Service 9fb14c
Protocol for the specified port (tcp|udp) or internet protocol version for the specified node (ipv4|ipv6).
Packit Service 9fb14c
Packit Service 9fb14c
.SH EXAMPLE
Packit Service 9fb14c
.nf
Packit Service 9fb14c
List all port definitions
Packit Service 9fb14c
# semanage port \-l
Packit Service 9fb14c
Allow Apache to listen on tcp port 81
Packit Service 9fb14c
# semanage port \-a \-t http_port_t \-p tcp 81
Packit Service 9fb14c
Allow sshd to listen on tcp port 8991
Packit Service 9fb14c
# semanage port \-a \-t ssh_port_t \-p tcp 8991
Packit Service 9fb14c
Packit Service 9fb14c
.SH "SEE ALSO"
Packit Service 9fb14c
.BR selinux (8),
Packit Service 9fb14c
.BR semanage (8)
Packit Service 9fb14c
Packit Service 9fb14c
.SH "AUTHOR"
Packit Service 9fb14c
This man page was written by Daniel Walsh <dwalsh@redhat.com>