sync with upstream

- fix some selinux labelling issues

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2017-07-07 16:11:00 +02:00
commit eecdfb94e1
3 changed files with 9 additions and 4 deletions

View file

@ -1,6 +1,6 @@
FROM registry.fedoraproject.org/fedora:25
ENV VERSION=0 RELEASE=1 ARCH=x86_64
ENV VERSION=0 RELEASE=2 ARCH=x86_64
LABEL com.redhat.component="docker" \
name="docker" \
version="$VERSION" \

View file

@ -5,6 +5,7 @@
"arch": "amd64"
},
"process": {
"selinuxLabel": "system_u:system_r:container_runtime_t:s0",
"terminal": false,
"user": {
"uid": 0,
@ -393,7 +394,6 @@
{
"type": "mount"
}
],
"selinuxProcessLabel": "system_u:system_r:container_runtime_t:s0"
]
}
}

View file

@ -1,5 +1,10 @@
#!/bin/bash
# Ensure that new process maintain this SELinux label
PID=$$
LABEL=`tr -d '\000' < /proc/$PID/attr/current`
printf %s $LABEL > /proc/self/attr/exec
source /run/docker-bash-env
# set storage first
@ -22,7 +27,7 @@ do
sleep 0.1
done
# Run all the installed containers
# Run all the installed plugins
mkdir -p /run/docker/plugins/
ls -1 /usr/libexec/docker/*plugin | \
while read i;