summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-11-05 21:52:22 +0100
committerGitHub <noreply@github.com>2019-11-05 21:52:22 +0100
commitb4b727256c728295e6a3fcb69593347df9e90b23 (patch)
tree347305da1e3e0c8141b0f54a6451d8b21ff051fc /libpod
parent7eda1b08401ad9ab430261f2b2d236eb9a834454 (diff)
parent65ed81993223e96243e0380b34afa40296ea11b3 (diff)
downloadpodman-b4b727256c728295e6a3fcb69593347df9e90b23.tar.gz
podman-b4b727256c728295e6a3fcb69593347df9e90b23.tar.bz2
podman-b4b727256c728295e6a3fcb69593347df9e90b23.zip
Merge pull request #4370 from rhatdan/seccomp
Set SELinux labels based on the security context in the kube.yaml
Diffstat (limited to 'libpod')
-rw-r--r--libpod/util.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/libpod/util.go b/libpod/util.go
index 7bd834e30..bae2f4eb8 100644
--- a/libpod/util.go
+++ b/libpod/util.go
@@ -187,6 +187,9 @@ func programVersion(mountProgram string) (string, error) {
return strings.TrimSuffix(output, "\n"), nil
}
+// DefaultSeccompPath returns the path to the default seccomp.json file
+// if it exists, first it checks OverrideSeccomp and then default.
+// If neither exist function returns ""
func DefaultSeccompPath() (string, error) {
_, err := os.Stat(config.SeccompOverridePath)
if err == nil {