File: capability_noop.go

package info (click to toggle)
golang-gocapability-dev 0.0%2Bgit20200815.42c35b4-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports, bookworm-proposed-updates, forky, sid, trixie
  • size: 108 kB
  • sloc: makefile: 3
file content (19 lines) | stat: -rw-r--r-- 432 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (c) 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.

// +build !linux

package capability

import "errors"

func newPid(pid int) (Capabilities, error) {
	return nil, errors.New("not supported")
}

func newFile(path string) (Capabilities, error) {
	return nil, errors.New("not supported")
}