Skip to content

Commit

Permalink
Merge pull request #266 from rhatdan/pods
Browse files Browse the repository at this point in the history
Don't allow containers to read /var/lib/kublet/pods by default
  • Loading branch information
rhatdan authored Aug 29, 2023
2 parents ed30ab0 + 341fb1d commit bfb44d3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion container.fc
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ HOME_DIR/\.local/share/containers/storage/volumes/[^/]*/.* gen_context(system_u:

/var/lib/cni(/.*)? gen_context(system_u:object_r:container_var_lib_t,s0)
/var/run/flannel(/.*)? gen_context(system_u:object_r:container_var_run_t,s0)
/var/lib/kubelet/pods(/.*)? gen_context(system_u:object_r:container_file_t,s0)
/var/log/containers(/.*)? gen_context(system_u:object_r:container_log_t,s0)
/var/log/pods(/.*)? gen_context(system_u:object_r:container_log_t,s0)

Expand Down
2 changes: 1 addition & 1 deletion container.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(container, 2.221.0)
policy_module(container, 2.221.1)

gen_require(`
class passwd rootok;
Expand Down

0 comments on commit bfb44d3

Please sign in to comment.