Change ownership of admin socket before dropping permissions (#1336)

This is to allow access to the socket by members of the group that
permissions are dropped to.
This commit is contained in:
state-plumber
2026-05-12 20:39:55 +00:00
committed by GitHub
parent be5daeba7a
commit aaf263957b
4 changed files with 22 additions and 10 deletions

View File

@@ -293,7 +293,7 @@ func main() {
// Change user if requested
if *chuserto != "" {
err = chuser(*chuserto)
err = chuser(*chuserto, cfg.AdminListen)
if err != nil {
panic(err)
}