From e0bbc8fe6eb46e0f07afac2ddd5f79f4a37281d6 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Fri, 18 Jul 2014 20:03:55 +0000 Subject: [PATCH] And.. talk to the sock. --- .../base/files/selinux/fi-collectd.mod | Bin 1636 -> 1899 bytes .../base/files/selinux/fi-collectd.pp | Bin 1652 -> 1915 bytes .../base/files/selinux/fi-collectd.te | 5 ++++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/collectd/base/files/selinux/fi-collectd.mod b/roles/collectd/base/files/selinux/fi-collectd.mod index 83b8da15db99f07383dd7956e595c6f56312630e..fddd083c844de9c6f47e966b1d34700bd29e5042 100644 GIT binary patch delta 381 zcmZ9Iy-EW?6ou#BnbB;RXv75riDWwsq_D6zL0>@7ZefYCD?v$?&1jw0E}QcJYL~_$ zy^WonkD!H>R`wP$F+}vhX})_o_vg)gtc+T;o45TnC4_L6;zue^8u@WKzu6qnDy1mFctU=rub8R&p z*nSo#gUGs31mdc9)ybmlvKLvjb%2z8?a~NS-k>t>cneJ#=%s&bBx_^#@xW%@bjuZ_ ztVrQr)@Q7Wq4Lp^1&@Ug^*;gouv|vS1q`J^pehJe1%Wh}D1$H6B!y32#}gYj0~7U1 c3fKCe?36J4On|uEC2ui delta 254 zcmX|%ze>Yk97TWszRwb3Nok-3QxZo_z#@gEV4)9?fc+9>SAt6-n=y3?A0W%A?D7U` zm&PK!jh&sofsK_mGBHH-z-hjFIrrzod~HnHbWn7{KnWq7rTCF5M$IDei@PJ@;yrJ9 zOHM+p>@*ylU&d)KOV*c#i^O)V&C#XPiWWjRmt8Od-oYyw%qc3L_4=`OSR>#je2zA+ zhIWuA=`gl#79rr8H|pkbe%+5PI=X=|huXyv=DbZl9(WgrvZ2@hv8jyUbBHH4%dUH_ zV$6yZ9%X&OYM7`HZCUbI2vPr&aEu%Fk#PwVsnAkYWU7jmG?*y^qxVUHLYm8d!+HH(*^&%Wy~QmHs3iiSYQAE delta 254 zcmX|%&q@MO97cct?p21-CLB^|!fDwmq9+jADg`YCAxLOrp+k$FqRUtNo}f1|TnlrTv*N;iuwvx* Q@aQu(Jo_PLmf%V37s>2JJpcdz diff --git a/roles/collectd/base/files/selinux/fi-collectd.te b/roles/collectd/base/files/selinux/fi-collectd.te index 51bc23d090..d071220e01 100644 --- a/roles/collectd/base/files/selinux/fi-collectd.te +++ b/roles/collectd/base/files/selinux/fi-collectd.te @@ -1,11 +1,13 @@ -module fi-collectd 1.3; +module fi-collectd 1.4; require { + type var_run_t; type bin_t; type configfs_t; type pstorefs_t; type collectd_t; + class sock_file getattr; class capability { setuid dac_read_search sys_ptrace setgid dac_override }; class file { read execute execute_no_trans }; class dir getattr; @@ -16,3 +18,4 @@ allow collectd_t bin_t:file { execute execute_no_trans }; allow collectd_t configfs_t:dir getattr; allow collectd_t pstorefs_t:dir getattr; allow collectd_t self:capability { setuid dac_read_search sys_ptrace setgid dac_override }; +allow collectd_t var_run_t:sock_file getattr;