Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/sudo.spec'], chrootPath='/var/lib/mock/dist-an8.9-build-365795-71163/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/sudo.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/sudo-1.9.5p2-1.0.2.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/sudo.spec'], chrootPath='/var/lib/mock/dist-an8.9-build-365795-71163/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/sudo.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.6jGiwz + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf sudo-1.9.5p2 + /usr/bin/gzip -dc /builddir/build/SOURCES/sudo-1.9.5p2.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd sudo-1.9.5p2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #2 (sudo-1.9.5-undefined-symbol.patch):' Patch #2 (sudo-1.9.5-undefined-symbol.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .undefined --fuzz=0 patching file plugins/sudoers/audit.c + echo 'Patch #3 (sudo-1.9.5-selinux-t.patch):' Patch #3 (sudo-1.9.5-selinux-t.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .selinux-t --fuzz=0 patching file src/selinux.c + echo 'Patch #4 (sudo-1.9.5-sesh-bad-condition.patch):' Patch #4 (sudo-1.9.5-sesh-bad-condition.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .bad-cond --fuzz=0 patching file src/sudo_edit.c Hunk #1 succeeded at 532 (offset 3 lines). Hunk #2 succeeded at 543 (offset 3 lines). Hunk #3 succeeded at 586 (offset 3 lines). Patch #5 (sudo-1.9.5-utmp-leak.patch): + echo 'Patch #5 (sudo-1.9.5-utmp-leak.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .utmp-leak --fuzz=0 patching file src/utmp.c + echo 'Patch #6 (covscan.patch):' Patch #6 (covscan.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .covscan --fuzz=0 patching file lib/eventlog/eventlog.c patching file plugins/sudoers/ldap.c + echo 'Patch #7 (sha-digest-calc.patch):' Patch #7 (sha-digest-calc.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .sha-digest --fuzz=0 patching file lib/util/sha2.c Patch #8 (sudo-1.9.12-CVE-2023-22809.patch): + echo 'Patch #8 (sudo-1.9.12-CVE-2023-22809.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cve-fix --fuzz=0 patching file plugins/sudoers/editor.c patching file plugins/sudoers/sudoers.c patching file plugins/sudoers/visudo.c + echo 'Patch #9 (sudo-1.9.13-CVE-2023-28486-7-1.patch):' Patch #9 (sudo-1.9.13-CVE-2023-28486-7-1.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cve-escape-1 --fuzz=0 patching file lib/eventlog/eventlog.c Hunk #1 succeeded at 953 (offset 3 lines). + echo 'Patch #10 (sudo-1.9.13-CVE-2023-28486-7-2.patch):' Patch #10 (sudo-1.9.13-CVE-2023-28486-7-2.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cve-escape-2 --fuzz=0 patching file MANIFEST patching file lib/eventlog/Makefile.in Hunk #2 succeeded at 227 (offset 14 lines). patching file lib/eventlog/eventlog.c Hunk #1 succeeded at 1262 (offset 6 lines). patching file lib/eventlog/eventlog_free.c + echo 'Patch #11 (sudo-1.9.13-CVE-2023-28486-7-3.patch):' Patch #11 (sudo-1.9.13-CVE-2023-28486-7-3.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cve-escape-3 --fuzz=0 patching file MANIFEST patching file include/sudo_eventlog.h patching file lib/eventlog/Makefile.in Hunk #2 succeeded at 227 (offset 14 lines). patching file lib/eventlog/eventlog.c Hunk #7 succeeded at 355 (offset 3 lines). Hunk #8 succeeded at 376 (offset 3 lines). Hunk #9 succeeded at 392 (offset 3 lines). Hunk #10 succeeded at 493 (offset 3 lines). Hunk #11 succeeded at 553 (offset 3 lines). Hunk #12 succeeded at 858 (offset 3 lines). Hunk #13 succeeded at 876 (offset 3 lines). Hunk #14 succeeded at 905 (offset 3 lines). Hunk #15 succeeded at 920 (offset 3 lines). Hunk #16 succeeded at 931 (offset 3 lines). Hunk #17 succeeded at 947 (offset 3 lines). Hunk #18 succeeded at 973 (offset 3 lines). Hunk #19 succeeded at 993 (offset 3 lines). Hunk #20 succeeded at 1003 (offset 3 lines). Hunk #21 succeeded at 1015 (offset 3 lines). Hunk #22 succeeded at 1026 (offset 3 lines). Hunk #23 succeeded at 1049 (offset 3 lines). Hunk #24 succeeded at 1063 (offset 6 lines). Hunk #25 succeeded at 1072 (offset 6 lines). Hunk #26 succeeded at 1121 (offset 6 lines). Hunk #27 succeeded at 1130 (offset 6 lines). Hunk #28 succeeded at 1153 (offset 6 lines). Hunk #29 succeeded at 1163 (offset 6 lines). Hunk #30 succeeded at 1175 (offset 6 lines). Hunk #31 succeeded at 1202 (offset 6 lines). Hunk #32 succeeded at 1226 (offset 6 lines). Hunk #33 succeeded at 1245 (offset 6 lines). patching file lib/eventlog/eventlog_conf.c Patch #12 (sudo-1.9.13-CVE-2023-28486-7-4.patch): + echo 'Patch #12 (sudo-1.9.13-CVE-2023-28486-7-4.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cve-escape-4 --fuzz=0 patching file include/sudo_eventlog.h patching file lib/eventlog/eventlog.c Hunk #2 succeeded at 828 (offset 3 lines). + echo 'Patch #13 (sudo-1.9.13-CVE-2023-28486-7-5.patch):' Patch #13 (sudo-1.9.13-CVE-2023-28486-7-5.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cve-escape-5 --fuzz=0 patching file include/sudo_eventlog.h patching file lib/eventlog/eventlog.c Hunk #7 succeeded at 404 (offset 3 lines). Hunk #8 succeeded at 583 (offset 3 lines). Hunk #9 succeeded at 601 (offset 3 lines). Hunk #10 succeeded at 778 (offset 3 lines). Hunk #11 succeeded at 814 (offset 3 lines). Hunk #12 succeeded at 831 (offset 3 lines). Hunk #13 succeeded at 855 (offset 3 lines). Hunk #14 succeeded at 982 (offset 3 lines). Hunk #15 succeeded at 1007 (offset 3 lines). Hunk #16 succeeded at 1018 (offset 3 lines). Hunk #17 succeeded at 1036 (offset 3 lines). Hunk #18 succeeded at 1062 (offset 3 lines). Hunk #19 succeeded at 1131 (offset 6 lines). Hunk #20 succeeded at 1145 (offset 6 lines). Hunk #21 succeeded at 1187 (offset 6 lines). Hunk #22 succeeded at 1197 (offset 6 lines). Hunk #23 succeeded at 1215 (offset 6 lines). Hunk #24 succeeded at 1237 (offset 6 lines). Hunk #25 succeeded at 1264 (offset 6 lines). Hunk #26 succeeded at 1292 (offset 6 lines). Patch #14 (sudo-1.9.13-CVE-2023-28486-7-6.patch): + echo 'Patch #14 (sudo-1.9.13-CVE-2023-28486-7-6.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cve-escape-6 --fuzz=0 patching file lib/eventlog/eventlog.c + echo 'Patch #15 (sudo-1.9.13-CVE-2023-28486-7-7.patch):' Patch #15 (sudo-1.9.13-CVE-2023-28486-7-7.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cve-escape-7 --fuzz=0 patching file lib/eventlog/eventlog.c Patch #16 (sudo-1.9.13-CVE-2023-28486-7-8.patch): + echo 'Patch #16 (sudo-1.9.13-CVE-2023-28486-7-8.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cve-escape-8 --fuzz=0 patching file plugins/sudoers/sudoreplay.c Hunk #1 succeeded at 1367 (offset -21 lines). Hunk #2 succeeded at 1393 (offset -21 lines). + echo 'Patch #17 (sudo-1.9.13-CVE-2023-28486-7-9.patch):' Patch #17 (sudo-1.9.13-CVE-2023-28486-7-9.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cve-escape-9 --fuzz=0 patching file doc/sudoers.man.in patching file doc/sudoers.mdoc.in patching file doc/sudoreplay.man.in patching file doc/sudoreplay.mdoc.in patching file include/sudo_lbuf.h patching file lib/eventlog/eventlog.c patching file lib/iolog/iolog_json.c patching file lib/util/lbuf.c patching file lib/util/util.exp.in patching file plugins/sudoers/sudoreplay.c + echo 'Patch #18 (linker.patch):' Patch #18 (linker.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .linker --fuzz=0 patching file lib/iolog/Makefile.in patching file plugins/sudoers/Makefile.in Hunk #3 succeeded at 320 (offset -3 lines). Patch #19 (sudo-1.9.15-CVE-2023-42465.patch): + echo 'Patch #19 (sudo-1.9.15-CVE-2023-42465.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .rowhammer --fuzz=0 patching file plugins/sudoers/auth/passwd.c patching file plugins/sudoers/auth/sudo_auth.c patching file plugins/sudoers/auth/sudo_auth.h patching file plugins/sudoers/cvtsudoers.c patching file plugins/sudoers/match.c patching file plugins/sudoers/parse.c patching file plugins/sudoers/parse.h + echo 'Patch #20 (sudo-1.9.12p1-CVE-2022-43955.patch):' Patch #20 (sudo-1.9.12p1-CVE-2022-43955.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .CVE-2022-43955 --fuzz=0 patching file plugins/sudoers/auth/passwd.c + echo 'Patch #27 (sudo-1.8.29-sw.patch):' Patch #27 (sudo-1.8.29-sw.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file include/compat/endian.h patching file plugins/sudoers/auth/secureware.c Hunk #1 succeeded at 46 (offset -5 lines). Hunk #2 FAILED at 60. Hunk #3 succeeded at 77 (offset -5 lines). 1 out of 3 hunks FAILED -- saving rejects to file plugins/sudoers/auth/secureware.c.rej patching file plugins/sudoers/getspwuid.c Hunk #1 succeeded at 51 (offset -8 lines). Hunk #2 succeeded at 87 (offset -5 lines). error: Bad exit status from /var/tmp/rpm-tmp.6jGiwz (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.6jGiwz (%prep) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/sudo.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/sudo.spec