Detect OCI containers
authorRichard W.M. Jones <rjones@redhat.com>
Thu, 5 Jan 2023 12:34:02 +0000 (12:34 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 5 Jan 2023 12:49:55 +0000 (12:49 +0000)
commit54c2ad4a764658ec8a9aadc52c749eabf1de73a0
treed43d6399c9bfa00469c948395803a63d2c82e7db
parent1cbcbb801c86f8f791ecd930c4ac311f034e3e1a
Detect OCI containers

Podman using OCI containers sets container=oci in PID 1's environment.
Detect that and print "oci" fact.

This patch was originally contributed by Alessandro Valentini.  I
modified it and added tests and documentation.

Reported-by: Alessandro Valentini
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2155233
configure.ac
tests/oci/Makefile.am [new file with mode: 0644]
tests/oci/proc/1/environ [new file with mode: 0644]
tests/oci/proc/cpuinfo [new file with mode: 0644]
tests/oci/sbin/dmidecode [new file with mode: 0755]
tests/oci/sbin/uname [new file with mode: 0755]
tests/oci/sbin/virt-what-cpuid-helper [new file with mode: 0755]
tests/oci/test.sh [new file with mode: 0755]
virt-what.in
virt-what.pod