Skip to content

Commit

Permalink
add error handling for SELinux context setting in hostpath-init-confi…
Browse files Browse the repository at this point in the history
…gmap.yaml
  • Loading branch information
gshaibi committed Nov 28, 2024
1 parent ce655c0 commit 73dc468
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ data:
# Allow containers to read/write to RUNAI_DIR
chmod 777 $RUNAI_DIR
chcon -Rt svirt_sandbox_file_t $RUNAI_DIR
chcon -Rt svirt_sandbox_file_t $RUNAI_DIR || echo "Failed to set SELinux context, this is expected if SELinux is not enabled"

0 comments on commit 73dc468

Please sign in to comment.