File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -178,10 +178,14 @@ It is also possible to add these outside of the policy using the
178
178
*** semanage** (8)* * node* command that will associate the node to a security
179
179
context.
180
180
181
+ Since *** checkpolicy** (8)* 3.7 the subnet and netmask can be specified together
182
+ by using the Classless Inter-Domain Routing (CIDR) notation.
183
+
181
184
** The statement definition is:**
182
185
183
186
```
184
187
nodecon subnet netmask node_context
188
+ nodecon cidr_address node_context
185
189
```
186
190
187
191
** Where:**
@@ -200,6 +204,11 @@ Note that the subnet and netmask values are used to ensure that the
200
204
201
205
The subnet mask in IPv4 or IPv6 format.
202
206
207
+ * cidr_address*
208
+
209
+ The IP address in CIDR notation, consisting of a IPv4 or IPv6 address, and the
210
+ netmask as a digit of leading bits, joined by a slash ('/').
211
+
203
212
* node_context*
204
213
205
214
The security context for the node.
@@ -224,13 +233,15 @@ Conditional Policy Statements
224
233
# The MLS policy nodecon statement using an IPv4 address:
225
234
226
235
nodecon 127.0.0.1 255.255.255.255 system_u:object_r:lo_node_t:s0 - s15:c0.c255
236
+ nodecon 127.0.0.1/32 system_u:object_r:lo_node_t:s0 - s15:c0.c255
227
237
```
228
238
229
239
```
230
240
# The MLS policy nodecon statement for the multicast address
231
241
# using an IPv6 address:
232
242
233
243
nodecon ff00:: ff00:: system_u:object_r:multicast_node_t:s0 - s15:c0.c255
244
+ nodecon ff00::/8 system_u:object_r:multicast_node_t:s0 - s15:c0.c255
234
245
```
235
246
236
247
*** semanage** (8)* ** Command example:**
You can’t perform that action at this time.
0 commit comments