Skip to content

Commit

Permalink
Merge pull request #124 from rhatdan/rand
Browse files Browse the repository at this point in the history
Allow containers to write to /dev/rand, /dev/urand
  • Loading branch information
rhatdan authored Mar 22, 2021
2 parents e78ac4f + 690076c commit d89a599
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion container.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(container, 2.158.0)
policy_module(container, 2.159.0)
gen_require(`
class passwd rootok;
')
Expand Down Expand Up @@ -885,7 +885,9 @@ fs_mounton_cgroup(container_t)
fs_unmount_cgroup(container_t)

dev_read_rand(container_domain)
dev_write_rand(container_domain)
dev_read_urand(container_domain)
dev_write_urand(container_domain)

files_read_kernel_modules(container_domain)

Expand Down

0 comments on commit d89a599

Please sign in to comment.