File: lastcap.go

package info (click to toggle)
golang-github-opencontainers-runtime-tools 0.9.0.141.g5e63903-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 3,160 kB
  • sloc: sh: 559; makefile: 90
file content (16 lines) | stat: -rw-r--r-- 291 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package capabilities

import (
	"github.com/moby/sys/capability"
)

// LastCap returns last cap of system.
//
// Deprecated: use github.com/moby/sys/capability.LastCap instead.
func LastCap() capability.Cap {
	last, err := capability.LastCap()
	if err != nil {
		return -1
	}
	return last
}