//go:build !windows

package profile

import "os"

// SecureRuntimeDir restricts a process-lifetime runtime directory to its owner.
func SecureRuntimeDir(path string) error {
	return os.Chmod(path, 0o700)
}

// SecureRuntimeFile restricts a file inside RuntimeDir to its owner.
func SecureRuntimeFile(path string) error {
	return os.Chmod(path, 0o600)
}
