diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-11-03 11:44:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-03 11:44:23 +0100 |
commit | aae3e71f9a6e32307956c3c890455cb11af2ccbf (patch) | |
tree | 9cf284a5b81013c5580014c68bae302cb8f5df25 /pkg/specgen/generate/config_linux.go | |
parent | 8dfbdb561be5e2313dfa9f665e1f184089c8e967 (diff) | |
parent | afa4ec0db01b620be540e72e25fc86092e2fa303 (diff) | |
download | podman-aae3e71f9a6e32307956c3c890455cb11af2ccbf.tar.gz podman-aae3e71f9a6e32307956c3c890455cb11af2ccbf.tar.bz2 podman-aae3e71f9a6e32307956c3c890455cb11af2ccbf.zip |
Merge pull request #8217 from giuseppe/caps-ambient
specgen: add support for ambient capabilities
Diffstat (limited to 'pkg/specgen/generate/config_linux.go')
-rw-r--r-- | pkg/specgen/generate/config_linux.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/specgen/generate/config_linux.go b/pkg/specgen/generate/config_linux.go index fcb7641d2..2d40dba8f 100644 --- a/pkg/specgen/generate/config_linux.go +++ b/pkg/specgen/generate/config_linux.go @@ -350,3 +350,8 @@ func deviceFromPath(path string) (*spec.LinuxDevice, error) { Minor: int64(unix.Minor(devNumber)), }, nil } + +func supportAmbientCapabilities() bool { + err := unix.Prctl(unix.PR_CAP_AMBIENT, unix.PR_CAP_AMBIENT_IS_SET, 0, 0, 0) + return err == nil +} |