| 1 | //go:build !linux |
| 2 | |
| 3 | package main |
| 4 | |
| 5 | import "errors" |
| 6 | |
| 7 | // noCoreDump refuses outside Linux, where the publisher does not make its |
| 8 | // process non-dumpable, so no link's secret is made there. |
| 9 | func noCoreDump() error { |
| 10 | return errors.New("making the process non-dumpable needs Linux") |
| 11 | } |