sync with upstream
- fix some selinux labelling issues Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
47c808132e
commit
eecdfb94e1
3 changed files with 9 additions and 4 deletions
|
|
@ -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" \
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
7
init.sh
7
init.sh
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue