Skip to content

Commit

Permalink
Merge pull request #255 from rhatdan/cert
Browse files Browse the repository at this point in the history
Add boolean to allow containers to read all cert files
  • Loading branch information
rhatdan committed Jun 15, 2023
2 parents c0328f4 + d6dfcc6 commit 124acb6
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion container.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(container, 2.218.0)
policy_module(container, 2.219.0)

gen_require(`
class passwd rootok;
Expand All @@ -17,6 +17,13 @@ gen_require(`
## </desc>
gen_tunable(container_connect_any, false)

## <desc>
## <p>
## Allow all container domains to read cert files and directories
## </p>
## </desc>
gen_tunable(container_read_certs, false)

## <desc>
## <p>
## Determine whether sshd can launch container engines
Expand Down Expand Up @@ -606,6 +613,10 @@ tunable_policy(`container_use_cephfs',`
allow container_domain cephfs_t:file execmod;
')

tunable_policy(`container_read_certs',`
miscfiles_read_all_certs(container_domain)
')

gen_require(`
type ecryptfs_t;
')
Expand Down

0 comments on commit 124acb6

Please sign in to comment.