]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
selinux: Allow ceph to read udev db 32259/head
authorBoris Ranto <branto@redhat.com>
Tue, 16 Jul 2019 17:10:48 +0000 (19:10 +0200)
committerNathan Cutler <ncutler@suse.com>
Fri, 24 Jan 2020 15:19:54 +0000 (16:19 +0100)
We are using libudev and reading the udev db files because of that. We
need to allow ceph to access these files in the SELinux policy.

Signed-off-by: Boris Ranto <branto@redhat.com>
(cherry picked from commit ef191068d6c8147f52ac264097a62698d1f67be8)

selinux/ceph.te

index 90b4e1bee642d2c584ac6edba9a59e2e4ba2dc4c..c3be384c56bae027dd762a70eedf354f21dd6326 100644 (file)
@@ -105,6 +105,8 @@ logging_send_syslog_msg(ceph_t)
 
 sysnet_dns_name_resolve(ceph_t)
 
+udev_read_db(ceph_t)
+
 allow ceph_t nvme_device_t:blk_file { getattr ioctl open read write };
 
 # basis for future security review