Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package virt-libguestfs-tools-container for
openSUSE:Factory checked in at 2022-10-10 18:47:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/virt-libguestfs-tools-container (Old)
and /work/SRC/openSUSE:Factory/.virt-libguestfs-tools-container.new.2275
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "virt-libguestfs-tools-container"
Mon Oct 10 18:47:20 2022 rev:8 rq:1009148 version:unknown
Changes:
--------
---
/work/SRC/openSUSE:Factory/virt-libguestfs-tools-container/virt-libguestfs-tools-container.changes
2022-08-12 16:07:18.575590153 +0200
+++
/work/SRC/openSUSE:Factory/.virt-libguestfs-tools-container.new.2275/virt-libguestfs-tools-container.changes
2022-10-10 18:48:02.475319731 +0200
@@ -1,0 +2,6 @@
+Fri Oct 7 11:43:11 UTC 2022 - Vasily Ulyanov <[email protected]>
+
+- Create an unprivileged user to run as non-root
+- Make entrypoint.sh compliant with the upstream
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ Dockerfile ++++++
--- /var/tmp/diff_new_pack.T77oeM/_old 2022-10-10 18:48:02.975320818 +0200
+++ /var/tmp/diff_new_pack.T77oeM/_new 2022-10-10 18:48:02.979320826 +0200
@@ -51,6 +51,7 @@
parted \
qemu-tools \
reiserfs \
+ shadow \
supermin \
xfsprogs \
xorriso \
@@ -68,7 +69,8 @@
fi;
RUN zypper -n remove kubevirt-manifests && \
- zypper clean -a
+ zypper clean -a && \
+ useradd -u 1001 --create-home -s /bin/bash virt-libguestfs-tools
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x entrypoint.sh
@@ -82,5 +84,6 @@
mv appliance-*.tar.xz appliance.tar.xz && \
rm -rf /var/tmp/.guestfs-*
+USER 1001
ENTRYPOINT [ "/entrypoint.sh" ]
++++++ entrypoint.sh ++++++
--- /var/tmp/diff_new_pack.T77oeM/_old 2022-10-10 18:48:03.039320957 +0200
+++ /var/tmp/diff_new_pack.T77oeM/_new 2022-10-10 18:48:03.043320966 +0200
@@ -1,12 +1,12 @@
#!/bin/bash -xe
#KubeVirt provides LIBGUESTFS_PATH via the pod environemnt.
-DIR=/usr/local/lib/guestfs
+LIBGUESTFS_PATH=${LIBGUESTFS_PATH:-/tmp/guestfs}
LIBGUESTFS_APPLIANCE=/appliance.tar.xz
-mkdir -p ${DIR}
-tar -Jxf ${LIBGUESTFS_APPLIANCE} -C ${DIR}
-touch ${DIR}/done
+mkdir -p ${LIBGUESTFS_PATH}
+tar -Jxf ${LIBGUESTFS_APPLIANCE} -C ${LIBGUESTFS_PATH} --strip-components=1
+touch ${LIBGUESTFS_PATH}/done
/bin/bash