File: capability_noop.go

package info (click to toggle)
golang-github-moby-sys 0.0~git20241107.638aa7c-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid, trixie
  • size: 616 kB
  • sloc: makefile: 58
file content (46 lines) | stat: -rw-r--r-- 827 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// 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
}