Skip to content

Commit f958d0c

Browse files
committed
Allow systemd_logind_t to transition to container_runtime_t
Signed-off-by: Daniel J Walsh <[email protected]>
1 parent 0b25a4a commit f958d0c

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

container.te

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
policy_module(container, 2.123.0)
1+
policy_module(container, 2.124.0)
22
gen_require(`
33
class passwd rootok;
44
')
@@ -510,6 +510,14 @@ optional_policy(`
510510
lvm_domtrans(container_runtime_domain)
511511
')
512512

513+
optional_policy(`
514+
gen_require(`
515+
type systemd_logind_t;
516+
')
517+
518+
domtrans_pattern(systemd_logind_t, container_runtime_exec_t , container_runtime_t)
519+
')
520+
513521
optional_policy(`
514522
udev_read_db(container_runtime_domain)
515523
')
@@ -653,7 +661,7 @@ allow container_domain self:lnk_file setattr;
653661
dontaudit container_domain self:capability fsetid;
654662
allow container_domain self:association sendto;
655663
allow container_domain self:dir list_dir_perms;
656-
dontaudit container_domain self:dir write;
664+
dontaudit container_domain self:dir { write add_name };
657665
allow container_domain self:file rw_file_perms;
658666
allow container_domain self:lnk_file read_file_perms;
659667
allow container_domain self:fifo_file create_fifo_file_perms;

0 commit comments

Comments
 (0)