Skip to content

Commit aa99598

Browse files
authored
Merge pull request #4 from cmurphy/var-log
Allow logreader to read var_log_t
2 parents 0f51b6d + eb1001b commit aa99598

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

policy/centos7/rancher.te

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ gen_require(`
1111
type container_runtime_t, unconfined_service_t;
1212
type container_log_t;
1313
type syslogd_var_run_t;
14+
type var_log_t;
1415
class dir { read search };
1516
class file { open read };
1617
class lnk_file { getattr read };
@@ -26,3 +27,5 @@ allow rke_logreader_t container_var_lib_t:file { getattr open read };
2627
allow rke_logreader_t container_var_lib_t:lnk_file { getattr read };
2728
allow rke_logreader_t syslogd_var_run_t:dir read;
2829
allow rke_logreader_t syslogd_var_run_t:file { getattr open read };
30+
allow rke_logreader_t var_log_t:dir read;
31+
allow rke_logreader_t var_log_t:file { getattr open read };

policy/centos8/rancher.te

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ gen_require(`
1111
type container_runtime_t, unconfined_service_t;
1212
type container_log_t;
1313
type syslogd_var_run_t;
14+
type var_log_t;
1415
class dir { read search };
1516
class file { open read };
1617
class lnk_file { getattr read };
@@ -26,3 +27,5 @@ allow rke_logreader_t container_var_lib_t:file { getattr open read };
2627
allow rke_logreader_t container_var_lib_t:lnk_file { getattr read };
2728
allow rke_logreader_t syslogd_var_run_t:dir read;
2829
allow rke_logreader_t syslogd_var_run_t:file { getattr map open read };
30+
allow rke_logreader_t var_log_t:dir read;
31+
allow rke_logreader_t var_log_t:file { getattr map open read };

0 commit comments

Comments
 (0)