Skip to content

Commit

Permalink
add noswap to secretdir tmpfs
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckyz committed Dec 10, 2024
1 parent 4cba81d commit aa0ae7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/allocdir/fs_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func createSecretDir(dir string, size int) error {
}

flags := uintptr(syscall.MS_NOEXEC)
// Permanantly disable swap for tmpfs for SecretDir.
// Permanently disable swap for tmpfs for SecretDir.
options := fmt.Sprintf("size=%dm,noswap", size)
if err := syscall.Mount("tmpfs", dir, "tmpfs", flags, options); err != nil {
return os.NewSyscallError("mount", err)
Expand Down

0 comments on commit aa0ae7c

Please sign in to comment.