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>
(cherry picked from commit
351b92acdacd2bea0c7c0e7c08b0b82f277621f8)
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