core: MkdirAll appDataDir in InstanceID with 0o700 (#6340)

appDataDir components should be searchable (u+x) when they are
created, or else Caddy is unable to start with an empty HOME.
This commit is contained in:
Anton Kovalenko 2024-05-30 13:38:09 +03:00 committed by GitHub
parent e6f46c8d78
commit a52917a37d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -869,7 +869,7 @@ func InstanceID() (uuid.UUID, error) {
if err != nil {
return uuid, err
}
err = os.MkdirAll(appDataDir, 0o600)
err = os.MkdirAll(appDataDir, 0o700)
if err != nil {
return uuid, err
}