Debian Codegraph @

libsemanage/man/man3/semanage_node.3

raw
1 .TH semanage_node 3 "16 March 2006" "[email protected]" "Libsemanage API documentation"
2
3 .SH "NAME"
4 semanage_node \- SELinux Network Nodes Management API
5
6 .SH "SYNOPSIS"
7 .B #include <semanage/node_record.h>
8 .br
9 .B #include <semanage/nodes_policy.h>
10 .br
11 .B #include <semanage/nodes_local.h>
12
13 .PP
14 This object contains properties associated with a network node.
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_node_create "(3)" \-
23 .br
24 create a node
25
26 .HP
27 .BR semanage_node_free "(3)" \-
28 .br
29 release resources for this node
30
31 .HP
32 .BR semanage_node_key_create "(3)" \-
33 .br
34 create a key, which can be used to identify a node
35
36 .HP
37 .BR semanage_node_key_free "(3)" \-
38 .br
39 release resources for this node key
40
41 .HP
42 .BR semanage_node_key_extract "(3)" \-
43 .br
44 create a key matching this node
45
46 .HP
47 .BR semanage_node_clone "(3)" \-
48 .br
49 create an identical node (deep-copy clone)
50
51 .HP
52 .BR semanage_node_compare "(3)" \-
53 .br
54 compare this node to the provided key
55
56 .HP
57 .BR semanage_node_compare2 "(3)" \-
58 .br
59 compare this node to another
60
61 .SH "Properties API Overview"
62
63 .HP
64 .BR semanage_node_get_addr "(3)" \-
65 .br
66 return the IP address of this node in string representation
67
68 .HP
69 .BR semanage_node_set_addr "(3)" \-
70 .br
71 set the IP address of this node from the provided string representation and protocol
72
73 .HP
74 .BR semanage_node_get_addr_bytes "(3)" \-
75 .br
76 return the IP address of this node as a byte array in network byte order
77
78 .HP
79 .BR semanage_node_set_addr_bytes "(3)" \-
80 .br
81 set the IP address of this node from the provided byte array in network byte order
82
83 .HP
84 .BR semanage_node_get_mask "(3)" \-
85 .br
86 return the IP mask of this node in string representation
87
88 .HP
89 .BR semanage_node_set_mask "(3)" \-
90 .br
91 set the IP mask of this node from the provided string representation and protocol version
92
93 .HP
94 .BR semanage_node_get_mask_bytes "(3)" \-
95 .br
96 return the IP mask of this node as a byte array in network byte order
97
98 .HP
99 .BR semanage_node_set_mask_bytes "(3)" \-
100 .br
101 set the IP mask of this node from the provided byte array in network byte order
102
103 .HP
104 .BR semanage_node_get_proto "(3)" \-
105 .br
106 return the IP protocol version for this node
107
108 .HP
109 .BR semanage_node_get_proto_str "(3)" \-
110 .br
111 return a string representation of the given node protocol
112
113 .HP
114 .BR semanage_node_set_proto "(3)" \-
115 .br
116 set the IP protocol version for this node
117
118 .HP
119 .BR semanage_node_get_con "(3)" \-
120 .br
121 return the SELinux context associated with this node
122
123 .HP
124 .BR semanage_node_set_con "(3)" \-
125 .br
126 set the SELinux context associated with this node
127
128 .SH "Record Store API Overview"
129
130 .HP
131 .BR semanage_node_modify_local "(3)" \-
132 .br
133 add or update an interface in the local store
134
135 .HP
136 .BR semanage_node_del_local "(3)" \-
137 .br
138 delete an interface from the local store
139
140 .HP
141 .BR semanage_node_exists "(3)" \-
142 .br
143 check if an interface is defined in the persistent policy
144
145 .HP
146 .BR semanage_node_exists_local "(3)" \-
147 .br
148 check if an interface is defined in the local store
149
150 .HP
151 .BR semanage_node_query "(3)" \-
152 .br
153 query an interface in the persistent policy
154
155 .HP
156 .BR semanage_node_query_local "(3)" \-
157 .br
158 query an interface in the local store
159
160 .HP
161 .BR semanage_node_count "(3)" \-
162 .br
163 count the number of nodes defined in the persistent policy
164
165 .HP
166 .BR semanage_node_count_local "(3)" \-
167 .br
168 count the number of nodes defined in the local store
169
170 .HP
171 .BR semanage_node_iterate "(3)" \-
172 .br
173 execute a callback for each interface in the persistent policy
174
175 .HP
176 .BR semanage_node_iterate_local "(3)" \-
177 .br
178 execute a callback for each interface in the local store
179
180 .HP
181 .BR semanage_node_list "(3)" \-
182 .br
183 return an array containing all nodes in the persistent policy
184
185 .HP
186 .BR semanage_node_list_local "(3)" \-
187 .br
188 return an array containing all nodes in the local store