From: Boris Ranto Date: Tue, 16 Jul 2019 17:10:48 +0000 (+0200) Subject: selinux: Allow ceph to read udev db X-Git-Tag: v14.2.8~93^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ffcaac803597515679cc04d0b6823e60fbddec51;p=ceph.git selinux: Allow ceph to read udev db 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 (cherry picked from commit ef191068d6c8147f52ac264097a62698d1f67be8) --- diff --git a/selinux/ceph.te b/selinux/ceph.te index 90b4e1bee642..c3be384c56ba 100644 --- a/selinux/ceph.te +++ b/selinux/ceph.te @@ -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