Skip to content

Commit

Permalink
[Backport 1.21] Cannot write data to local PVC (#3721)
Browse files Browse the repository at this point in the history
* Fix to allow non-root users access to storage volumes. (#3714)

* Fix to prevent non-root users from accessing storage directory, while allowing non-root users access to subdirectories.

Signed-off-by: dereknola <[email protected]>
  • Loading branch information
dereknola authored Jul 28, 2021
1 parent 1d1f220 commit e6247d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion manifests/local-storage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ data:
;;
esac
done
mkdir -m 0700 -p ${absolutePath}
mkdir -m 0777 -p ${absolutePath}
chmod 701 ${absolutePath}/..
teardown: |-
#!/bin/sh
while getopts "m:s:p:" opt
Expand Down
2 changes: 1 addition & 1 deletion pkg/deploy/zz_generated_bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e6247d5

Please sign in to comment.