summaryrefslogtreecommitdiff
path: root/libpod/define
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-12-23 15:14:10 +0100
committerGitHub <noreply@github.com>2021-12-23 15:14:10 +0100
commit5570b5b9751894d509be2b478685097cf8fde923 (patch)
tree69c520e6e114309c69bd2c1e2a73736de675a74f /libpod/define
parenta7f1c05366c86a05e247049f8837b4aadc54fc50 (diff)
parent1aa4e4d4d183aa07ea7453e4be70d31eaa8edb13 (diff)
downloadpodman-5570b5b9751894d509be2b478685097cf8fde923.tar.gz
podman-5570b5b9751894d509be2b478685097cf8fde923.tar.bz2
podman-5570b5b9751894d509be2b478685097cf8fde923.zip
Merge pull request #12679 from vrothberg/fix-12671
clarify `io.podman.annotations.seccomp`
Diffstat (limited to 'libpod/define')
-rw-r--r--libpod/define/annotations.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/libpod/define/annotations.go b/libpod/define/annotations.go
index f6b1c06ea..3964a1237 100644
--- a/libpod/define/annotations.go
+++ b/libpod/define/annotations.go
@@ -66,3 +66,15 @@ const (
// annotation.
InspectResponseFalse = "FALSE"
)
+
+// IsReservedAnnotation returns true if the specified value corresponds to an
+// already reserved annotation that Podman sets during container creation.
+func IsReservedAnnotation(value string) bool {
+ switch value {
+ case InspectAnnotationCIDFile, InspectAnnotationAutoremove, InspectAnnotationVolumesFrom, InspectAnnotationPrivileged, InspectAnnotationPublishAll, InspectAnnotationInit, InspectAnnotationLabel, InspectAnnotationSeccomp, InspectAnnotationApparmor, InspectResponseTrue, InspectResponseFalse:
+ return true
+
+ default:
+ return false
+ }
+}