Skip to content

Commit

Permalink
Merge pull request #4 from cmurphy/var-log
Browse files Browse the repository at this point in the history
Allow logreader to read var_log_t
  • Loading branch information
cmurphy authored Apr 23, 2021
2 parents 0f51b6d + eb1001b commit aa99598
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions policy/centos7/rancher.te
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ gen_require(`
type container_runtime_t, unconfined_service_t;
type container_log_t;
type syslogd_var_run_t;
type var_log_t;
class dir { read search };
class file { open read };
class lnk_file { getattr read };
Expand All @@ -26,3 +27,5 @@ allow rke_logreader_t container_var_lib_t:file { getattr open read };
allow rke_logreader_t container_var_lib_t:lnk_file { getattr read };
allow rke_logreader_t syslogd_var_run_t:dir read;
allow rke_logreader_t syslogd_var_run_t:file { getattr open read };
allow rke_logreader_t var_log_t:dir read;
allow rke_logreader_t var_log_t:file { getattr open read };
3 changes: 3 additions & 0 deletions policy/centos8/rancher.te
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ gen_require(`
type container_runtime_t, unconfined_service_t;
type container_log_t;
type syslogd_var_run_t;
type var_log_t;
class dir { read search };
class file { open read };
class lnk_file { getattr read };
Expand All @@ -26,3 +27,5 @@ allow rke_logreader_t container_var_lib_t:file { getattr open read };
allow rke_logreader_t container_var_lib_t:lnk_file { getattr read };
allow rke_logreader_t syslogd_var_run_t:dir read;
allow rke_logreader_t syslogd_var_run_t:file { getattr map open read };
allow rke_logreader_t var_log_t:dir read;
allow rke_logreader_t var_log_t:file { getattr map open read };

0 comments on commit aa99598

Please sign in to comment.