This commit updates to images v0.117.0 so that the cross-distro.sh test works again (images removed fedora-39.json in main but the uses the previous version of images that includes fedora-39 so there is a mismatch (we should look into if there is a way to get github.com/osbuild/images@latest instead of main in the cross-arch test). It also updates all the vendor stuff that got pulled via the new images release (which is giantonormous). This update requires updating the Go version to 1.22.8
46 lines
827 B
Go
46 lines
827 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
|
|
}
|
|
|
|
func getAmbient(_ Cap) (bool, error) {
|
|
return false, errNotSup
|
|
}
|
|
|
|
func setAmbient(_ bool, _ ...Cap) error {
|
|
return errNotSup
|
|
}
|
|
|
|
func resetAmbient() error {
|
|
return errNotSup
|
|
}
|
|
|
|
func getBound(_ Cap) (bool, error) {
|
|
return false, errNotSup
|
|
}
|
|
|
|
func dropBound(_ ...Cap) error {
|
|
return errNotSup
|
|
}
|