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 3bc2c07 commit abde793
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/allocdir/fs_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ func createSecretDir(dir string, size int) error {
}

flags := uintptr(syscall.MS_NOEXEC)
options := fmt.Sprintf("size=%dm", size)
// Permanantly disable swap for tmpfs for SecretDir.

Check failure on line 76 in client/allocdir/fs_linux.go

View workflow job for this annotation

GitHub Actions / checks / checks

`Permanantly` is a misspelling of `Permanently` (misspell)
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 abde793

Please sign in to comment.