Skip to content

Commit 9693071

Browse files
rhatdanlsm5
authored andcommitted
Containers need to use hsa devices for ROCM
Signed-off-by: Daniel J Walsh <[email protected]>
1 parent 36e8f21 commit 9693071

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

container.te

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
policy_module(container, 2.238.0)
1+
policy_module(container, 2.239.0)
22

33
gen_require(`
44
class passwd rootok;
@@ -707,6 +707,14 @@ optional_policy(`
707707
udev_read_db(container_runtime_domain)
708708
')
709709

710+
optional_policy(`
711+
require {
712+
type hsa_device_t;
713+
}
714+
715+
allow container_domain hsa_device_t:chr_file rw_chr_file_perms;
716+
')
717+
710718
optional_policy(`
711719
gen_require(`
712720
role unconfined_r;

0 commit comments

Comments
 (0)