Skip to content

Commit

Permalink
Allow systemd_logind_t to transition to container_runtime_t
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel J Walsh <[email protected]>
  • Loading branch information
rhatdan committed Dec 11, 2019
1 parent 0b25a4a commit f958d0c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions container.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(container, 2.123.0)
policy_module(container, 2.124.0)
gen_require(`
class passwd rootok;
')
Expand Down Expand Up @@ -510,6 +510,14 @@ optional_policy(`
lvm_domtrans(container_runtime_domain)
')

optional_policy(`
gen_require(`
type systemd_logind_t;
')

domtrans_pattern(systemd_logind_t, container_runtime_exec_t , container_runtime_t)
')

optional_policy(`
udev_read_db(container_runtime_domain)
')
Expand Down Expand Up @@ -653,7 +661,7 @@ allow container_domain self:lnk_file setattr;
dontaudit container_domain self:capability fsetid;
allow container_domain self:association sendto;
allow container_domain self:dir list_dir_perms;
dontaudit container_domain self:dir write;
dontaudit container_domain self:dir { write add_name };
allow container_domain self:file rw_file_perms;
allow container_domain self:lnk_file read_file_perms;
allow container_domain self:fifo_file create_fifo_file_perms;
Expand Down

0 comments on commit f958d0c

Please sign in to comment.