Changed the permission of config file to allow access to only owner. This fixes CVE-2025-24337
This commit is contained in:
parent
a7fa19f2e4
commit
76581b6ed9
1 changed files with 1 additions and 1 deletions
2
app.go
2
app.go
|
@ -554,7 +554,7 @@ requests. We recommend supplying a valid host name.`)
|
||||||
}
|
}
|
||||||
|
|
||||||
if network == "unix" {
|
if network == "unix" {
|
||||||
err = os.Chmod(bindAddress, 0o666)
|
err = os.Chmod(bindAddress, 0o600)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("Could not update socket permissions: %v", err)
|
log.Error("Could not update socket permissions: %v", err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
|
|
Loading…
Add table
Reference in a new issue