mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 11:38:02 +00:00
Fixing excessive unix file permissions (#14791)
* Fixing excessive unix file permissions * CL * reduce the permission from 750 to 700
This commit is contained in:
@@ -979,7 +979,7 @@ func (c *AgentCommand) storePidFile(pidPath string) error {
|
||||
}
|
||||
|
||||
// Open the PID file
|
||||
pidFile, err := os.OpenFile(pidPath, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0o644)
|
||||
pidFile, err := os.OpenFile(pidPath, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0o600)
|
||||
if err != nil {
|
||||
return fmt.Errorf("could not open pid file: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user