mirror of
https://github.com/containers/podman.git
synced 2025-11-02 23:39:52 +08:00
personality: Add support for setting execution domain.
Execution domains tell Linux how to map signal numbers into signal actions. The execution domain system allows Linux to provide limited support for binaries compiled under other UNIX-like operating systems. Reference: https://man7.org/linux/man-pages/man2/personality.2.html Signed-off-by: flouthoc <flouthoc.git@gmail.com>
This commit is contained in:
@ -1790,4 +1790,15 @@ WORKDIR /madethis`, BB)
|
||||
_, err = strconv.Atoi(containerPID) // Make sure it's a proper integer
|
||||
Expect(err).To(BeNil())
|
||||
})
|
||||
|
||||
It("podman run check personality support", func() {
|
||||
// TODO: Remove this as soon as this is merged and made available in our CI https://github.com/opencontainers/runc/pull/3126.
|
||||
if !strings.Contains(podmanTest.OCIRuntime, "crun") {
|
||||
Skip("Test only works on crun")
|
||||
}
|
||||
session := podmanTest.Podman([]string{"run", "--personality=LINUX32", "--name=testpersonality", ALPINE, "uname", "-a"})
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session).Should(Exit(0))
|
||||
Expect(session.OutputToString()).To(ContainSubstring("i686"))
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user