| 1 |
//go:build linux && landlocktsync |
| 2 |
|
| 3 |
package syscall |
| 4 |
|
| 5 |
// AllThreadsLandlockRestrictSelf is a stub for landlocktsync builds. |
| 6 |
// It is never called at runtime: with the landlocktsync build tag, |
| 7 |
// pre-V8 multi-thread enforcement is disabled, so only the TSYNC path |
| 8 |
// is taken. |
| 9 |
func AllThreadsLandlockRestrictSelf(rulesetFd int, flags uint32) error { |
| 10 |
panic("unreachable: landlocktsync build disables pre-V8 multi-thread enforcement") |
| 11 |
} |
| 12 |
|
| 13 |
// AllThreadsPrctl is a stub for landlocktsync builds. |
| 14 |
// It is never called at runtime: with the landlocktsync build tag, |
| 15 |
// pre-V8 multi-thread enforcement is disabled, so only the TSYNC path |
| 16 |
// is taken. |
| 17 |
func AllThreadsPrctl(option int, arg2, arg3, arg4, arg5 uintptr) error { |
| 18 |
panic("unreachable: landlocktsync build disables pre-V8 multi-thread enforcement") |
| 19 |
} |