]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
selinux: Allow getattr access to /proc/kcore 34870/head
authorBrad Hubbard <bhubbard@redhat.com>
Wed, 8 Apr 2020 04:49:04 +0000 (14:49 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Fri, 1 May 2020 02:07:37 +0000 (12:07 +1000)
Required for an fstat call in BlkDev::get_devid

Fixes: https://tracker.ceph.com/issues/40743
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
selinux/ceph.te

index 15f3e1c12e0fc8ee5053ab26262e2a0389a9ffd4..bcdafec7f1eacc08388d2dabffc214276a7c875e 100644 (file)
@@ -13,6 +13,7 @@ require {
        type setfiles_t;
        type nvme_device_t;
        type httpd_config_t;
+       type proc_kcore_t;
        class sock_file unlink;
        class tcp_socket name_connect_t;
        class lnk_file { create getattr read unlink };
@@ -151,6 +152,8 @@ allow init_t ceph_t:process2 { nnp_transition nosuid_transition };
 
 allow ceph_t httpd_config_t:dir search;
 
+allow ceph_t proc_kcore_t:file getattr;
+
 fsadm_manage_pid(ceph_t)
 
 #============= setfiles_t ==============