carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1//go:build !linux
2
3package cgroup
4
5import (
6 "context"
7 "errors"
8)
9
10// VerifyPlacement needs cgroup v2 and the placement shim, so it is linux
11// only: elsewhere every check fails.
12func (m *Manager) VerifyPlacement(ctx context.Context) error {
13 if m == nil {
14 return ErrNoDelegation
15 }
16 return errors.New("cgroup: placement check: placement before exec needs linux")
17}
18