Skip to content

Commit 973d57e

Browse files
haircommanderlsm5
authored andcommitted
container_log{reader,writer}_t: allow watch file
Signed-off-by: Peter Hunt <[email protected]>
1 parent b27a1d0 commit 973d57e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

container.te

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,6 +1253,7 @@ logging_read_all_logs(container_logreader_t)
12531253
allow container_logreader_t logfile:lnk_file read_lnk_file_perms;
12541254
logging_read_audit_log(container_logreader_t)
12551255
logging_list_logs(container_logreader_t)
1256+
allow container_logreader_t container_log_t:file watch;
12561257

12571258
# Container Logwriter
12581259
container_domain_template(container_logwriter, container)
@@ -1262,6 +1263,7 @@ manage_files_pattern(container_logwriter_t, logfile, logfile)
12621263
manage_dirs_pattern(container_logwriter_t, logfile, logfile)
12631264
manage_lnk_files_pattern(container_logwriter_t, logfile, logfile)
12641265
logging_manage_audit_log(container_logwriter_t)
1266+
allow container_logwriter_t container_log_t:file watch;
12651267

12661268
optional_policy(`
12671269
gen_require(`

0 commit comments

Comments
 (0)