selinux: Allow ceph to execute ldconfig
authorBoris Ranto <branto@redhat.com>
Thu, 25 Jan 2018 15:31:30 +0000 (16:31 +0100)
committerKefu Chai <kchai@redhat.com>
Mon, 14 May 2018 10:49:46 +0000 (18:49 +0800)
The ceph-volume testing showed that the ceph daemons can run ldconfig in
a corner case when they are forbidden access to some files. This patch
allows ceph to execute ldconfig in Enforcing mode.

Fixes: https://tracker.ceph.com/issues/22302
Signed-off-by: Boris Ranto <branto@redhat.com>
(cherry picked from commit fa5071b6d7182f54cd7b1ffe171a4b006f5255cb)

selinux/ceph.te

index 0a9349803b12831eb72b266d4e74d5ac38c3e98a..2dabd05c7f0ed1cb821a170de41ca45121844595 100644 (file)
@@ -103,6 +103,7 @@ fstools_exec(ceph_t)
 nis_use_ypbind_uncond(ceph_t)
 storage_raw_rw_fixed_disk(ceph_t)
 files_manage_generic_locks(ceph_t)
+libs_exec_ldconfig(ceph_t)
 
 allow ceph_t sysfs_t:dir read;
 allow ceph_t sysfs_t:file { read getattr open };