2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 11:01:09 +00:00

Fix directory traversal

This commit is contained in:
Jarrod Johnson 2022-04-25 13:11:43 -04:00
parent 8947ab08da
commit 128cb61eaa

View File

@ -8,11 +8,11 @@ dracut --no-early-microcode --xz -N -m "genesis base" -f boot/initramfs/distribu
tdir=$(mktemp -d)
tfile=$(mktemp)
cp boot/initramfs/distribution $tdir
cd $tdir
pushd $tdir
xzcat distribution|cpio -dumi
rm distribution
find . -type f -exec rpm -qf /{} \; 2> /dev/null | grep -v 'not owned' | sort -u > $tfile
cd -
popd
rm -rf $tdir
cp $tfile rpmlist
cp -f /boot/vmlinuz-$(uname -r) boot/kernel