mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 01:22:00 +00:00
Fix directory traversal
This commit is contained in:
parent
8947ab08da
commit
128cb61eaa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user