Add Security information to podman info

When debugging issues, it would be helpful to know the
security settings of the system running into the problem.
Adding security info to `podman info` is also useful to users.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2020-12-21 10:10:47 -05:00
parent 182646b01a
commit 04b43ccf64
11 changed files with 123 additions and 82 deletions

View File

@ -380,7 +380,7 @@ default_sysctls = [
# Directory for temporary files. Must be tmpfs (wiped after reboot)
#
# tmp_dir = "/var/run/libpod"
# tmp_dir = "/run/libpod"
# Directory for libpod named volumes.
# By default, this will be configured relative to where containers/storage

View File

@ -320,7 +320,7 @@ func defaultConfigFromMemory() (*EngineConfig, error) {
func defaultTmpDir() (string, error) {
if !unshare.IsRootless() {
return "/var/run/libpod", nil
return "/run/libpod", nil
}
runtimeDir, err := getRuntimeDir()

View File

@ -1,10 +1,10 @@
// +build !seccomp
// +build !linux !seccomp
// SPDX-License-Identifier: Apache-2.0
// Copyright 2013-2018 Docker, Inc.
package seccomp
package seccomp
import (
"errors"
@ -38,3 +38,9 @@ func LoadProfileFromConfig(config *Seccomp, specgen *specs.Spec) (*specs.LinuxSe
func IsEnabled() bool {
return false
}
// IsSupported returns true if the system has been configured to support
// seccomp.
func IsSupported() bool {
return false
}

View File

@ -1,4 +1,4 @@
// +build !windows
// +build linux,seccomp
package seccomp

View File

@ -1,4 +1,4 @@
package version
// Version is the version of the build.
const Version = "0.31.2-dev"
const Version = "0.31.2"