Try to use the virt_sandbox_use_netlink selinux boolean to avoid getting
selinux AVC errors in smb tests using ctdb. Some tests run ctdb with
public addresses and the scripts that ctdb uses to manage those IPs
calls ss which uses netlink which can cause selinux denials.
Attempt to work around that problem by using a selinux boolean
documented in `container_selinux(8)`.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
tasks:
- cephadm.configure_samba_client_container:
role: host.d
+- pexec:
+ all:
+ - setsebool -P virt_sandbox_use_netlink 1 || true
- cephadm:
- cephadm.shell:
role: host.d
- vip:
count: 1
+- pexec:
+ all:
+ - setsebool -P virt_sandbox_use_netlink 1 || true
- cephadm:
- cephadm.shell:
tasks:
- cephadm.configure_samba_client_container:
role: host.d
+- pexec:
+ all:
+ - setsebool -P virt_sandbox_use_netlink 1 || true
- cephadm:
- cephadm.shell:
tasks:
- cephadm.deploy_samba_ad_dc:
role: host.d
+- pexec:
+ all:
+ - setsebool -P virt_sandbox_use_netlink 1 || true
- cephadm:
- cephadm.shell:
role: host.d
- vip:
count: 2
+- pexec:
+ all:
+ - setsebool -P virt_sandbox_use_netlink 1 || true
- cephadm:
- cephadm.shell: