]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: remove z option from iSCSI dev and configfs mount 37094/head
authorAdam King <adking@redhat.com>
Fri, 4 Sep 2020 12:06:37 +0000 (08:06 -0400)
committerAdam King <adking@redhat.com>
Fri, 11 Sep 2020 00:45:28 +0000 (20:45 -0400)
selinux complains if you try to deploy iSCSI with the z option
on the /dev and /sys/kernel/config mounts

Signed-off-by: Adam King <adking@redhat.com>
src/cephadm/cephadm

index 83ccbd3368178cadf60e3e5907808e28369ff257..acd807a572e44c294f726a0df6842c80754867e6 100755 (executable)
@@ -414,9 +414,9 @@ class CephIscsi(object):
         mounts[os.path.join(data_dir, 'config')] = '/etc/ceph/ceph.conf:z'
         mounts[os.path.join(data_dir, 'keyring')] = '/etc/ceph/keyring:z'
         mounts[os.path.join(data_dir, 'iscsi-gateway.cfg')] = '/etc/ceph/iscsi-gateway.cfg:z'
-        mounts[os.path.join(data_dir, 'configfs')] = '/sys/kernel/config:z'
+        mounts[os.path.join(data_dir, 'configfs')] = '/sys/kernel/config'
         mounts[log_dir] = '/var/log/rbd-target-api:z'
-        mounts['/dev'] = '/dev:z'
+        mounts['/dev'] = '/dev'
         return mounts
 
     @staticmethod