|
6 | 6 | [id="virt-extended-selinux-policies-for-virt-launcher_{context}"]
|
7 | 7 | = Extended SELinux policies for virt-launcher pods
|
8 | 8 |
|
9 |
| -The `container_t` SELinux policy for virt-launcher pods is extended with the following rules: |
| 9 | +The `container_t` SELinux policy for `virt-launcher` pods is extended to enable essential functions of {VirtProductName}. |
10 | 10 |
|
11 |
| -* `allow process self (tun_socket (relabelfrom relabelto attach_queue))` |
12 |
| -* `allow process sysfs_t (file (write))` |
13 |
| -* `allow process hugetlbfs_t (dir (add_name create write remove_name rmdir setattr))` |
14 |
| -* `allow process hugetlbfs_t (file (create unlink))` |
| 11 | +* The following policy is required for network multi-queue, which enables network performance to scale as the number of available vCPUs increases: |
15 | 12 |
|
16 |
| -These rules enable the following virtualization features: |
| 13 | +** `allow process self (tun_socket (relabelfrom relabelto attach_queue))` |
17 | 14 |
|
18 |
| -* Relabel and attach queues to its own TUN sockets, which is required to support network multi-queue. Multi-queue enables network performance to scale as the number of available vCPUs increases. |
| 15 | +* The following policy allows `virt-launcher` to read files under the `/proc` directory, including `/proc/cpuinfo` and `/proc/uptime`: |
19 | 16 |
|
20 |
| -* Allows virt-launcher pods to write information to sysfs (`/sys`) files, which is required to enable Single Root I/O Virtualization (SR-IOV). |
| 17 | +** `allow process proc_type (file (getattr open read))` |
21 | 18 |
|
22 |
| -* Read/write `hugetlbfs` entries, which is required to support huge pages. Huge pages are a method of managing large amounts of memory by increasing the memory page size. |
| 19 | +* The following policy allows `libvirtd` to relay network-related debug messages. |
23 | 20 |
|
| 21 | +** `allow process self (netlink_audit_socket (nlmsg_relay))` |
| 22 | ++ |
| 23 | +[NOTE] |
| 24 | +==== |
| 25 | +Without this policy, any attempt to relay network debug messages is blocked. This might fill the node's audit logs with SELinux denials. |
| 26 | +==== |
| 27 | + |
| 28 | +* The following policies allow `libvirtd` to access `hugetblfs`, which is required to support huge pages: |
| 29 | +
|
| 30 | +** `allow process hugetlbfs_t (dir (add_name create write remove_name rmdir setattr))` |
| 31 | +** `allow process hugetlbfs_t (file (create unlink))` |
| 32 | + |
| 33 | +* The following policies allow `virtiofs` to mount filesystems and access NFS: |
| 34 | +
|
| 35 | +** `allow process nfs_t (dir (mounton))` |
| 36 | +** `allow process proc_t (dir (mounton))` |
| 37 | +** `allow process proc_t (filesystem (mount unmount))` |
0 commit comments