Debian Codegraph @

libsemanage/man/man3/semanage_port.3

raw
1 .TH semanage_port 3 "16 March 2006" "[email protected]" "Libsemanage API documentation"
2
3 .SH "NAME"
4 semanage_port \- SELinux Network Ports Management API
5
6 .SH "SYNOPSIS"
7 .B #include <semanage/port_record.h>
8 .br
9 .B #include <semanage/ports_policy.h>
10 .br
11 .B #include <semanage/ports_local.h>
12
13 .PP
14 This object contains properties associated with a range of network ports.
15
16 .PP
17 For details on a specific function, see its manual page.
18
19 .SH "Record API Overview"
20
21 .HP
22 .BR semanage_port_create "(3)" \-
23 .br
24 create a port range
25
26 .HP
27 .BR semanage_port_free "(3)" \-
28 .br
29 release resources for this port range
30
31 .HP
32 .BR semanage_port_key_create "(3)" \-
33 .br
34 create a key, which can be used to identify a port range
35
36 .HP
37 .BR semanage_port_key_free "(3)" \-
38 .br
39 release resources for this port range key
40
41 .HP
42 .BR semanage_port_key_extract "(3)" \-
43 .br
44 create a key matching this port range
45
46 .HP
47 .BR semanage_port_clone "(3)" \-
48 .br
49 create an identical port range (deep-copy clone)
50
51 .HP
52 .BR semanage_port_compare "(3)" \-
53 .br
54 compare this port range to the provided key
55
56 .HP
57 .BR semanage_port_compare2 "(3)" \-
58 .br
59 compare this port range to another
60
61 .SH "Properties API Overview"
62
63 .HP
64 .BR semanage_port_get_proto "(3)" \-
65 .br
66 return the protocol for this port range
67
68 .HP
69 .BR semanage_port_get_proto_str "(3)" \-
70 .br
71 return a string representation of the given port protocol
72
73 .HP
74 .BR semanage_port_set_proto "(3)" \-
75 .br
76 set the protocol for this port range
77
78 .HP
79 .BR semanage_port_get_low "(3)" \-
80 .br
81 return the low port number for this port range
82
83 .HP
84 .BR semanage_port_get_high "(3)" \-
85 .br
86 return the high port number for this port range
87
88 .HP
89 .BR semanage_port_set_port "(3)" \-
90 .br
91 set the port number (same low and high) for this port range
92
93 .HP
94 .BR semanage_port_set_range "(3)" \-
95 .br
96 set the low and high port number for this port range
97
98 .HP
99 .BR semanage_port_get_con "(3)" \-
100 .br
101 return the SELinux context for this port range
102
103 .HP
104 .BR semanage_port_set_con "(3)" \-
105 .br
106 set the SELinux context for this port range
107
108
109 .SH "Record Store API Overview"
110
111 .HP
112 .BR semanage_port_modify_local "(3)" \-
113 .br
114 add or update a port range in the local store
115
116 .HP
117 .BR semanage_port_del_local "(3)" \-
118 .br
119 delete a port range from the local store
120
121 .HP
122 .BR semanage_port_exists "(3)" \-
123 .br
124 check if a port range is defined in the persistent policy
125
126 .HP
127 .BR semanage_port_exists_local "(3)" \-
128 .br
129 check if a port range is defined in the local store
130
131 .HP
132 .BR semanage_port_query "(3)" \-
133 .br
134 query a port range in the persistent policy
135
136 .HP
137 .BR semanage_port_query_local "(3)" \-
138 .br
139 query a port range in the local store
140
141 .HP
142 .BR semanage_port_count "(3)" \-
143 .br
144 count the number of port ranges defined in the persistent policy
145
146 .HP
147 .BR semanage_port_count_local "(3)" \-
148 .br
149 count the number of port ranges defined in the local store
150
151 .HP
152 .BR semanage_port_iterate "(3)" \-
153 .br
154 execute a callback for each port range in the persistent policy
155
156 .HP
157 .BR semanage_port_iterate_local "(3)" \-
158 .br
159 execute a callback for each port range in the local store
160
161 .HP
162 .BR semanage_port_list "(3)" \-
163 .br
164 return an array containing all port ranges in the persistent policy
165
166 .HP
167 .BR semanage_port_list_local "(3)" \-
168 .br
169 return an array containing all port ranges in the local store