]> git-server-git.apps.pok.os.sepia.ceph.com Git - cephmetrics.git/commitdiff
selinux: Update the policy 126/head
authorBoris Ranto <branto@redhat.com>
Wed, 27 Sep 2017 11:56:21 +0000 (13:56 +0200)
committerBoris Ranto <branto@redhat.com>
Wed, 27 Sep 2017 13:35:57 +0000 (15:35 +0200)
This policy update should cover all the newly found avc denials.

Signed-off-by: Boris Ranto <branto@redhat.com>
selinux/cephmetrics.te

index 9e95937f420d8573bd74c140025ce88a23859229..23ef40929a161848b2dbc7dd292a3e77f9e7ee69 100644 (file)
@@ -1,25 +1,35 @@
-policy_module(cephmetrics, 1.0.0)
+policy_module(cephmetrics, 1.1.0)
 
 require {
+       type bin_t;
        type collectd_t;
        type ceph_t;
+       type ceph_exec_t;
        type ceph_var_run_t;
        type ceph_var_lib_t;
        type fixed_disk_device_t;
+       type tmp_t;
        class unix_stream_socket connectto;
        class dir read;
        class file getattr;
        class capability2 block_suspend;
+       class lnk_file read;
+       class unix_stream_socket connectto;
+       class dir { read write };
+       class capability2 block_suspend;
+       class file { getattr execute execute_no_trans open read write };
 }
 
 #============= collectd_t ==============
 
+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;
+allow collectd_t ceph_exec_t:file { execute execute_no_trans open read };
 allow collectd_t ceph_var_run_t:dir read;
-allow collectd_t ceph_var_lib_t:file getattr;
-allow collectd_t ceph_var_lib_t:lnk_file getattr;
-allow collectd_t ceph_var_lib_t:lnk_file read;
+allow collectd_t ceph_var_lib_t:dir read;
+allow collectd_t ceph_var_lib_t:file { getattr open read };
+allow collectd_t ceph_var_lib_t:lnk_file { getattr open read };
 allow collectd_t fixed_disk_device_t:blk_file getattr;
 allow collectd_t self:capability2 block_suspend;
 allow collectd_t var_log_t:dir { add_name write };