Demonstration of setting up a secure pipe using containers and SELinux
dnf install docker atomic buildah systemctl start docker
buildah bud -t securepipe . buildah push securepipe docker-daemon:securepipe:latest
or
docker build -t securepipe .
atomic install securepipe
In three different terminals execute:
/tmp/setup.sh sp3 /tmp/setup.sh sp2 /tmp/setup.sh sp1
Now type into the terminal running sp1, and you will see output in sp3
You can also cat entire files to sp1
cat /etc/passwd | /tmp/setup.sh sp1
In a fourth terminal execute
docker exec -ti sp1 sh
And play around