gunk-dev/the-valley

nodump_other.go

sourcecfedff357a41main's published tip history
527 bytes
1//go:build !linux
2
3// Package nodump makes a process non-dumpable, so the secrets it holds in
4// memory stay in it alone. The publisher's link command holds a new
5// link's secret, and valley-web with readers holds the links readers
6// post and their sessions' tokens.
7package nodump
8
9import "errors"
10
11// Set refuses outside Linux, where this package cannot make a process
12// non-dumpable, so a program that needs it holds no secret there.
13func Set() error {
14 return errors.New("making the process non-dumpable needs Linux")
15}