spiegel_podman/vendor/github.com/moby/sys/capability/capability_noop.go
tomsweeneyredhat 2e8bce201e [v4.4.1-rhel] Bump runc to 1.2.9, Buidah 1.29.6
Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2025-12-17 15:39:55 -05:00

26 lines
529 B
Go

// Copyright 2023 The Capability Authors.
// Copyright 2013 Suryandaru Triandana <syndtr@gmail.com>
// All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !linux
package capability
import "errors"
var errNotSup = errors.New("not supported")
func newPid(_ int) (Capabilities, error) {
return nil, errNotSup
}
func newFile(_ string) (Capabilities, error) {
return nil, errNotSup
}
func lastCap() (Cap, error) {
return -1, errNotSup
}