1semanage_node(3)         Libsemanage API documentation        semanage_node(3)
2
3
4

NAME

6       semanage_node - SELinux Network Nodes Management API
7
8

SYNOPSIS

10       #include <semanage/node_record.h>
11       #include <semanage/nodes_policy.h>
12       #include <semanage/nodes_local.h>
13
14
15       This object contains properties associated with a network node.
16
17
18       For details on a specific function, see its manual page.
19
20

Record API Overview

22       semanage_node_create(3)-
23              create a node
24
25
26       semanage_node_free(3)-
27              release resources for this node
28
29
30       semanage_node_key_create(3)-
31              create a key, which can be used to identify a node
32
33
34       semanage_node_key_free(3)-
35              release resources for this node key
36
37
38       semanage_node_key_extract(3)-
39              create a key matching this node
40
41
42       semanage_node_clone(3)-
43              create an identical node (deep-copy clone)
44
45
46       semanage_node_compare(3)-
47              compare this node to the provided key
48
49
50       semanage_node_compare2(3)-
51              compare this node to another
52
53

Properties API Overview

55       semanage_node_get_addr(3)-
56              return the IP address of this node in string representation
57
58
59       semanage_node_set_addr(3)-
60              set  the IP address of this node from the provided string repre‐
61              sentation and protocol
62
63
64       semanage_node_get_addr_bytes(3)-
65              return the IP address of this node as a byte  array  in  network
66              byte order
67
68
69       semanage_node_set_addr_bytes(3)-
70              set  the IP address of this node from the provided byte array in
71              network byte order
72
73
74       semanage_node_get_mask(3)-
75              return the IP mask of this node in string representation
76
77
78       semanage_node_set_mask(3)-
79              set the IP mask of this node from the provided string  represen‐
80              tation and protocol version
81
82
83       semanage_node_get_mask_bytes(3)-
84              return  the IP mask of this node as a byte array in network byte
85              order
86
87
88       semanage_node_set_mask_bytes(3)-
89              set the IP mask of this node from the  provided  byte  array  in
90              network byte order
91
92
93       semanage_node_get_proto(3)-
94              return the IP protocol version for this node
95
96
97       semanage_node_get_proto_str(3)-
98              return a string representation of the given node protocol
99
100
101       semanage_node_set_proto(3)-
102              set the IP protocol version for this node
103
104
105       semanage_node_get_con(3)-
106              return the SELinux context associated with this node
107
108
109       semanage_node_set_con(3)-
110              set the SELinux context associated with this node
111
112

Record Store API Overview

114       semanage_node_modify_local(3)-
115              add or update an interface in the local store
116
117
118       semanage_node_del_local(3)-
119              delete an interface from the local store
120
121
122       semanage_node_exists(3)-
123              check if an interface is defined in the persistent policy
124
125
126       semanage_node_exists_local(3)-
127              check if an interface is defined in the local store
128
129
130       semanage_node_query(3)-
131              query an interface in the persistent policy
132
133
134       semanage_node_query_local(3)-
135              query an interface in the local store
136
137
138       semanage_node_count(3)-
139              count the number of nodes defined in the persistent policy
140
141
142       semanage_node_count_local(3)-
143              count the number of nodes defined in the local store
144
145
146       semanage_node_iterate(3)-
147              execute a callback for each interface in the persistent policy
148
149
150       semanage_node_iterate_local(3)-
151              execute a callback for each interface in the local store
152
153
154       semanage_node_list(3)-
155              return an array containing all nodes in the persistent policy
156
157
158       semanage_node_list_local(3)-
159              return an array containing all nodes in the local store
160
161
162
163ivg2@cornell.edu                 16 March 2006                semanage_node(3)
Impressum