Skip to content

Commit d127ed8

Browse files
committed
Remove setuid/setgid bits from any/all RunCVM binaries
1 parent 1624e31 commit d127ed8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,9 @@ RUN /usr/local/bin/elf-patcher.sh && \
129129
done && \
130130
mkdir -p $CODE_PATH/usr/share && \
131131
cp -a /usr/share/qemu $CODE_PATH/usr/share && \
132-
cp -a /etc/terminfo $CODE_PATH/usr/share
133-
132+
cp -a /etc/terminfo $CODE_PATH/usr/share && \
133+
# Remove setuid/setgid bits from any/all binaries
134+
chmod -R -s $CODE_PATH/
134135

135136
# --- BUILD STAGE ---
136137
# Build static runcvm-init

0 commit comments

Comments
 (0)