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