Debian Codegraph @

python/semanage/semanage-port.8

raw
1 .TH "semanage-port" "8" "20130617" "" ""
2 .SH "NAME"
3 .B semanage\-port \- SELinux Policy Management port mapping tool
4 .SH "SYNOPSIS"
5 .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 ]
6
7 .SH "DESCRIPTION"
8 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.
9
10 .SH "OPTIONS"
11 .TP
12 .I \-h, \-\-help
13 show this help message and exit
14 .TP
15 .I \-n, \-\-noheading
16 Do not print heading when listing the specified object type
17 .TP
18 .I \-N, \-\-noreload
19 Do not reload policy after commit
20 .TP
21 .I \-S STORE, \-\-store STORE
22 Select an alternate SELinux Policy Store to manage
23 .TP
24 .I \-C, \-\-locallist
25 List local customizations
26 .TP
27 .I \-a, \-\-add
28 Add a record of the specified object type
29 .TP
30 .I \-d, \-\-delete
31 Delete a record of the specified object type
32 .TP
33 .I \-m, \-\-modify
34 Modify a record of the specified object type
35 .TP
36 .I \-l, \-\-list
37 List records of the specified object type
38 .TP
39 .I \-E, \-\-extract
40 Extract customizable commands, for use within a transaction
41 .TP
42 .I \-D, \-\-deleteall
43 Remove all local customizations
44 .TP
45 .I \-t TYPE, \-\-type TYPE
46 SELinux type for the object
47 .TP
48 .I \-r RANGE, \-\-range RANGE
49 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.
50 .TP
51 .I \-p PROTO, \-\-proto PROTO
52 Protocol for the specified port (tcp|udp) or internet protocol version for the specified node (ipv4|ipv6).
53
54 .SH EXAMPLE
55 .nf
56 List all port definitions
57 # semanage port \-l
58 Allow Apache to listen on tcp port 81
59 # semanage port \-a \-t http_port_t \-p tcp 81
60 Allow sshd to listen on tcp port 8991
61 # semanage port \-a \-t ssh_port_t \-p tcp 8991
62
63 .SH "SEE ALSO"
64 .BR selinux (8),
65 .BR semanage (8)
66
67 .SH "AUTHOR"
68 This man page was written by Daniel Walsh <[email protected]>