]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Fixes selinux relabeling issue for nfs container
authorTeoman ONAY <tonay@ibm.com>
Thu, 2 Mar 2023 22:01:48 +0000 (23:01 +0100)
committerGuillaume Abrioux <gabrioux@ibm.com>
Tue, 14 Mar 2023 07:25:48 +0000 (08:25 +0100)
Signed-off-by: Teoman ONAY <tonay@ibm.com>
(cherry picked from commit c1b541f69e02f0d6d5cedfc706d332bf017f16eb)

roles/ceph-nfs/templates/ceph-nfs.service.j2

index 4369fe82ee4a1788b16ee41b95db374057606436..d9b2bbdfba0dc5e581f4d75a64b1b386641a7ad3 100644 (file)
@@ -23,6 +23,7 @@ ExecStart=/usr/bin/{{ container_binary }} run --rm --net=host \
   -d --log-driver journald --conmon-pidfile /%t/%n-pid --cidfile /%t/%n-cid \
 {% endif %}
   --pids-limit={{ 0 if container_binary == 'podman' else -1 }} \
+  --security-opt label=disable \
   -v /var/lib/ceph/bootstrap-rgw/:/var/lib/ceph/bootstrap-rgw:z \
   -v /etc/ceph:/etc/ceph:z \
   -v /var/lib/nfs/ganesha:/var/lib/nfs/ganesha:z \