mirror of
https://github.com/Gu1llaum-3/sshm.git
synced 2025-09-06 21:00:45 +02:00
12 lines
271 B
Go
12 lines
271 B
Go
//go:build !windows
|
|
|
|
package config
|
|
|
|
import "os"
|
|
|
|
// SetSecureFilePermissions configures secure permissions on Unix systems
|
|
func SetSecureFilePermissions(filepath string) error {
|
|
// Set file permissions to 0600 (owner read/write only)
|
|
return os.Chmod(filepath, 0600)
|
|
}
|