Skip to content

Commit 7c9adcc

Browse files
cgzonesstephensmalley
authored andcommitted
secilc/docs: mention nlmsg extended permissions
In addition to ioctl CIL also supports nlmsg extended permissions. Signed-off-by: Christian Göttsche <cgzones@googlemail.com> Acked-by: James Carter <jwcart2@gmail.com>
1 parent cff88fa commit 7c9adcc

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

secilc/docs/cil_class_and_permission_statements.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,11 @@ Defines a named extended permission, which can be used in the [`allowx`](cil_acc
529529
<tbody>
530530
<tr class="odd">
531531
<td align="left"><p>ioctl</p></td>
532-
<td align="left"><p>Permissions define a whitelist of ioctl values. Permission values must range from <code>0x0000</code> to <code>0xFFFF</code>, inclusive.</p></td>
532+
<td align="left"><p>Permissions define a whitelist of ioctl command values. Permission values must range from <code>0x0000</code> to <code>0xFFFF</code>, inclusive.</p></td>
533+
</tr>
534+
<tr class="even">
535+
<td align="left"><p>nlmsg</p></td>
536+
<td align="left"><p>Permissions define a whitelist of netlink message type values. Permission values must range from <code>0x0000</code> to <code>0xFFFF</code>, inclusive.</p></td>
533537
</tr>
534538
</tbody>
535539
</table></td>
@@ -561,4 +565,5 @@ Defines a named extended permission, which can be used in the [`allowx`](cil_acc
561565
(permissionx ioctl_1 (ioctl tcp_socket (0x2000 0x3000 0x4000)))
562566
(permissionx ioctl_2 (ioctl tcp_socket (range 0x6000 0x60FF)))
563567
(permissionx ioctl_3 (ioctl tcp_socket (and (range 0x8000 0x90FF) (not (range 0x8100 0x82FF)))))
568+
(permissionx nlmsg_1 (nlmsg netlink_route_socket (range 0x0010 0x0018)))
564569
```

0 commit comments

Comments
 (0)