Debian Codegraph @

capability/capability_noop.go

raw symbols SCIP
1 // Copyright 2023 The Capability Authors.
2 // Copyright 2013 Suryandaru Triandana <[email protected]>
3 // All rights reserved.
4 //
5 // Use of this source code is governed by a BSD-style
6 // license that can be found in the LICENSE file.
7
8 //go:build !linux
9
10 package capability
11
12 import "errors"
13
14 var errNotSup = errors.New("not supported")
15
16 func newPid(_ int) (Capabilities, error) {
17 return nil, errNotSup
18 }
19
20 func newFile(_ string) (Capabilities, error) {
21 return nil, errNotSup
22 }
23
24 func lastCap() (Cap, error) {
25 return -1, errNotSup
26 }
27
28 func getAmbient(_ Cap) (bool, error) {
29 return false, errNotSup
30 }
31
32 func setAmbient(_ bool, _ ...Cap) error {
33 return errNotSup
34 }
35
36 func resetAmbient() error {
37 return errNotSup
38 }
39
40 func getBound(_ Cap) (bool, error) {
41 return false, errNotSup
42 }
43
44 func dropBound(_ ...Cap) error {
45 return errNotSup
46 }