Skip to content

Commit

Permalink
nsenter: set --entrypoint env #417
Browse files Browse the repository at this point in the history
  • Loading branch information
mviereck committed Feb 27, 2022
1 parent 4e225d4 commit 7f61c6c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion x11docker
Original file line number Diff line number Diff line change
Expand Up @@ -7181,7 +7181,11 @@ $(rmcr < "$Containerlogfile" | uniq )"
[ "$Remountcgroup" = "yes" ] && {
debugnote "start_container(): Remounting /sys/fs/cgroup to :rw with nsenter"
# Compare https://github.com/mviereck/x11docker/issues/349
Remountcommand="$Backendbin run --rm --user root --cap-add SYS_ADMIN --cap-add=SYS_PTRACE --security-opt apparmor=unconfined --pid=container:$Containerid -- $Imagename"
Remountcommand="$Backendbin run --rm --user root"
Remountcommand="$Remountcommand --cap-add SYS_ADMIN --cap-add=SYS_PTRACE --security-opt apparmor=unconfined"
Remountcommand="$Remountcommand --pid=container:$Containerid"
Remountcommand="$Remountcommand --entrypoint /usr/bin/env"
Remountcommand="$Remountcommand -- $Imagename"
Remountcommand="$Remountcommand nsenter -t 1 -m -C -p /bin/sh -c '"
Remountcommand="$Remountcommand set -x ; "
Remountcommand="$Remountcommand mount -v -o remount,rw /sys/fs/cgroup/ && "
Expand Down

0 comments on commit 7f61c6c

Please sign in to comment.