mirror of
https://github.com/containers/podman.git
synced 2025-11-30 18:18:18 +08:00
17 lines
291 B
Go
17 lines
291 B
Go
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
|
|
}
|