i9_5-fuzzing
ebasov 2 weeks ago
parent cc3945ac88
commit 73bb74b8c0
Signed by: ebasov
GPG Key ID: 23356EDA24E5499D

@ -14,14 +14,15 @@ MODPUBKEY=$2
moddir=$3
modules=$(find "$moddir" -type f -name '*.ko')
sign_file=$(find . -name 'sign-file' | head -n1)
NPROC=$(nproc)
[ -z "$NPROC" ] && NPROC=1
# NB: this loop runs 2000+ iterations. Try to be fast.
echo "$modules" | xargs -r -n16 -P "$NPROC" sh -c "
echo "$modules" | xargs -r -n16 -P $NPROC sh -c "
for mod; do
./scripts/sign-file sha256 $MODSECKEY $MODPUBKEY \$mod
$sign_file sha256 $MODSECKEY $MODPUBKEY \$mod
rm -f \$mod.sig \$mod.dig
done
" DUMMYARG0 # xargs appends ARG1 ARG2..., which go into $mod in for loop.

@ -2901,8 +2901,6 @@ find Documentation -type d | xargs chmod u+w
#
# Don't sign modules for the zfcpdump variant as it is monolithic.
cd %{_builddir}/%{name}-%{tarfile_release}/
%define __modsign_install_post \

Loading…
Cancel
Save