Skip to content

Commit

Permalink
set default context for local-path-provisioner
Browse files Browse the repository at this point in the history
The kubernetes local-path-provisioner uses either
/opt/local-path-provisioner or
/var/local-path-provisioner for its physical volumes

Signed-off-by: Pat Riehecky <[email protected]>
  • Loading branch information
jcpunk committed Apr 20, 2023
1 parent 36709f0 commit a300106
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions container.fc
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ HOME_DIR/\.local/share/containers/storage/volumes/[^/]*/.* gen_context(system_u:

/var/run/kata-containers(/.*)? gen_context(system_u:object_r:container_kvm_var_run_t,s0)

/(var|opt)/local-path-provisioner(/.*)? gen_context(system_u:object_r:container_file_t,s0)

/var/lib/origin(/.*)? gen_context(system_u:object_r:container_file_t,s0)
/var/lib/kubernetes/pods(/.*)? gen_context(system_u:object_r:container_file_t,s0)

Expand Down

0 comments on commit a300106

Please sign in to comment.