Skip to content

Commit

Permalink
Merge pull request #243 from rhatdan/map
Browse files Browse the repository at this point in the history
Allow containers which use devices to map them
  • Loading branch information
rhatdan authored May 14, 2023
2 parents eca999a + 8dc0977 commit c1c72fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions container.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(container, 2.212.0)
policy_module(container, 2.213.0)

gen_require(`
class passwd rootok;
Expand Down Expand Up @@ -1327,8 +1327,8 @@ optional_policy(`
')

tunable_policy(`container_use_devices',`
allow container_domain device_node:chr_file rw_chr_file_perms;
allow container_domain device_node:blk_file rw_blk_file_perms;
allow container_domain device_node:chr_file {rw_chr_file_perms map};
allow container_domain device_node:blk_file {rw_blk_file_perms map};
')

tunable_policy(`virt_sandbox_use_sys_admin',`
Expand Down

0 comments on commit c1c72fc

Please sign in to comment.