server: abstract out linux capability per platform
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
d6966951d6
commit
4d88008a65
3 changed files with 24 additions and 4 deletions
12
server/utils_linux.go
Normal file
12
server/utils_linux.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
// +build linux
|
||||
|
||||
package server
|
||||
|
||||
import (
|
||||
"github.com/opencontainers/runtime-tools/validate"
|
||||
"github.com/syndtr/gocapability/capability"
|
||||
)
|
||||
|
||||
func lastCapability() capability.Cap {
|
||||
return validate.LastCap()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue