]> git-server-git.apps.pok.os.sepia.ceph.com Git - cephmetrics.git/commitdiff
selinux: Allow collectd to access iscsi resources
authorBoris Ranto <branto@redhat.com>
Tue, 22 May 2018 08:46:11 +0000 (10:46 +0200)
committerBoris Ranto <branto@redhat.com>
Tue, 22 May 2018 20:09:18 +0000 (22:09 +0200)
Signed-off-by: Boris Ranto <branto@redhat.com>
selinux/cephmetrics.te

index 23ef40929a161848b2dbc7dd292a3e77f9e7ee69..760963546fd55edf14ae230f6f4be32c9a3e1bbf 100644 (file)
@@ -9,6 +9,9 @@ require {
        type ceph_var_lib_t;
        type fixed_disk_device_t;
        type tmp_t;
+       type configfs_t;
+       type mount_exec_t;
+       type rpm_exec_t;
        class unix_stream_socket connectto;
        class dir read;
        class file getattr;
@@ -22,6 +25,9 @@ require {
 
 #============= collectd_t ==============
 
+allow collectd_t configfs_t:dir search;
+allow collectd_t mount_exec_t:file execute;
+allow collectd_t rpm_exec_t:file getattr;
 allow collectd_t bin_t:file { execute execute_no_trans };
 #!!!! This avc can be allowed using the boolean 'daemons_enable_cluster_mode'
 allow collectd_t ceph_t:unix_stream_socket connectto;