| 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. |
| 7 | package nodump |
| 8 | |
| 9 | import "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. |
| 13 | func Set() error { |
| 14 | return errors.New("making the process non-dumpable needs Linux") |
| 15 | } |