]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
selinux: Allow ceph to read udev db
authorBoris Ranto <branto@redhat.com>
Tue, 16 Jul 2019 17:10:48 +0000 (19:10 +0200)
committerBoris Ranto <branto@redhat.com>
Tue, 16 Jul 2019 17:10:51 +0000 (19:10 +0200)
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>
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