Local storage binding: disable access to other system folders for security reasons (#2947)
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
This commit is contained in:
parent
836e373b38
commit
760948a533
|
|
@ -40,6 +40,9 @@ const (
|
|||
|
||||
// List of root paths that are disallowed
|
||||
var disallowedRootPaths = []string{
|
||||
filepath.Clean("/proc"),
|
||||
filepath.Clean("/sys"),
|
||||
filepath.Clean("/boot"),
|
||||
// See: https://github.com/dapr/components-contrib/issues/2444
|
||||
filepath.Clean("/var/run/secrets"),
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue