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-354241-70802/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.8.29-11.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-354241-70802/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.BQWlyU + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf sudo-1.8.29 + /usr/bin/gzip -dc /builddir/build/SOURCES/sudo-1.8.29.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd sudo-1.8.29 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (sudo-1.6.7p5-strip.patch):' Patch #1 (sudo-1.6.7p5-strip.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .strip --fuzz=0 patching file install-sh Hunk #1 succeeded at 147 (offset 9 lines). + echo 'Patch #2 (sudo-1.8.23-sudoldapconfman.patch):' Patch #2 (sudo-1.8.23-sudoldapconfman.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .sudoldapconfman --fuzz=0 patching file doc/Makefile.in Hunk #1 succeeded at 289 (offset -56 lines). Hunk #2 succeeded at 313 (offset -56 lines). + echo 'Patch #3 (sudo-1.7.2p1-envdebug.patch):' Patch #3 (sudo-1.7.2p1-envdebug.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .env-debug --fuzz=0 patching file configure.ac Hunk #1 succeeded at 1427 (offset 37 lines). + echo 'Patch #4 (sudo-1.8.23-legacy-group-processing.patch):' Patch #4 (sudo-1.8.23-legacy-group-processing.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .legacy-processing --fuzz=0 patching file plugins/sudoers/cvtsudoers.c patching file plugins/sudoers/defaults.c patching file plugins/sudoers/def_data.c patching file plugins/sudoers/def_data.h patching file plugins/sudoers/def_data.in patching file plugins/sudoers/sudoers.c + echo 'Patch #5 (sudo-1.8.23-nowaitopt.patch):' Patch #5 (sudo-1.8.23-nowaitopt.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .nowait --fuzz=0 patching file plugins/sudoers/def_data.c patching file plugins/sudoers/def_data.h patching file plugins/sudoers/def_data.in patching file plugins/sudoers/sudoers.c + echo 'Patch #6 (sudo-1.8.6p7-logsudouser.patch):' Patch #6 (sudo-1.8.6p7-logsudouser.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .logsudouser --fuzz=0 patching file plugins/sudoers/logging.c Hunk #1 succeeded at 118 (offset 14 lines). Hunk #2 succeeded at 134 (offset 14 lines). Hunk #3 succeeded at 142 (offset 14 lines). Hunk #4 succeeded at 193 (offset 14 lines). Hunk #5 succeeded at 905 (offset 159 lines). patching file plugins/sudoers/sudoers.h Hunk #1 succeeded at 190 (offset 10 lines). Patch #7 (sudo-1.8.29-CVE-2019-19232.patch): + echo 'Patch #7 (sudo-1.8.29-CVE-2019-19232.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .CVE-2019-19232 --fuzz=0 patching file doc/sudoers.man.in patching file doc/sudoers.mdoc.in patching file plugins/sudoers/defaults.c patching file plugins/sudoers/def_data.c patching file plugins/sudoers/def_data.h patching file plugins/sudoers/def_data.in patching file plugins/sudoers/sudoers.c + echo 'Patch #8 (sudo-1.8.29-CVE-2019-19234.patch):' Patch #8 (sudo-1.8.29-CVE-2019-19234.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .target-shell --fuzz=0 patching file config.h.in patching file configure.ac patching file configure patching file doc/sudoers.man.in patching file doc/sudoers.mdoc.in patching file include/sudo_compat.h patching file lib/util/getusershell.c patching file lib/util/Makefile.in patching file MANIFEST patching file mkdep.pl patching file plugins/sudoers/check.c patching file plugins/sudoers/def_data.c patching file plugins/sudoers/def_data.h patching file plugins/sudoers/def_data.in patching file plugins/sudoers/sudoers.c patching file plugins/sudoers/sudoers.h + echo 'Patch #9 (sudo-1.8.29-CVE-2019-18634.patch):' Patch #9 (sudo-1.8.29-CVE-2019-18634.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .CVE-2019-18634 --fuzz=0 patching file src/tgetpass.c + echo 'Patch #10 (sudo-1.8.29-expired-password-part1.patch):' Patch #10 (sudo-1.8.29-expired-password-part1.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .expired1 --fuzz=0 patching file plugins/sudoers/check.c Patch #11 (sudo-1.8.29-expired-password-part2.patch): + echo 'Patch #11 (sudo-1.8.29-expired-password-part2.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .expired2 --fuzz=0 patching file plugins/sudoers/check.c + echo 'Patch #12 (sudo-1.8.31-CVE-2021-3156.patch):' Patch #12 (sudo-1.8.31-CVE-2021-3156.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .heap-buffer --fuzz=0 patching file plugins/sudoers/policy.c patching file plugins/sudoers/sudoers.c patching file plugins/sudoers/timestamp.c patching file src/parse_args.c + echo 'Patch #13 (sudo-1.9.5-CVE-2021-23239.patch):' Patch #13 (sudo-1.9.5-CVE-2021-23239.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .sudoedit-race --fuzz=0 patching file src/sudo_edit.c Hunk #1 succeeded at 569 (offset 28 lines). Patch #14 (sudo-1.9.5-CVE-2021-23240-1.patch): + echo 'Patch #14 (sudo-1.9.5-CVE-2021-23240-1.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .symbolic-link-attack-1 --fuzz=0 patching file src/sudo_edit.c Hunk #2 succeeded at 688 (offset 38 lines). Hunk #3 succeeded at 791 (offset 38 lines). Hunk #4 succeeded at 1163 (offset 38 lines). + echo 'Patch #15 (sudo-1.9.5-CVE-2021-23240-2.patch):' Patch #15 (sudo-1.9.5-CVE-2021-23240-2.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .symbolic-link-attack-2 --fuzz=0 patching file src/copy_file.c patching file src/Makefile.in patching file src/sesh.c patching file src/sudo_edit.c patching file src/sudo_exec.h + echo 'Patch #16 (sudo-1.9.5-CVE-2021-23240-3.patch):' Patch #16 (sudo-1.9.5-CVE-2021-23240-3.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .symbolic-link-attack-3 --fuzz=0 patching file src/exec_monitor.c patching file src/exec_nopty.c patching file src/selinux.c patching file src/sudo.c patching file src/sudo_edit.c patching file src/sudo_exec.h patching file src/sudo.h + echo 'Patch #17 (sudo-1.9.5-CVE-2021-23240-4.patch):' Patch #17 (sudo-1.9.5-CVE-2021-23240-4.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .symbolic-link-attack-4 --fuzz=0 patching file src/copy_file.c patching file src/sesh.c patching file src/sudo_edit.c patching file src/sudo_exec.h Patch #18 (sudo-1.9.5-CVE-2021-23240-5.patch): + echo 'Patch #18 (sudo-1.9.5-CVE-2021-23240-5.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .symbolic-link-attack-5 --fuzz=0 patching file src/copy_file.c patching file src/sudo_edit.c + echo 'Patch #19 (sudo-1.9.5-sudoedit-selinux.patch):' Patch #19 (sudo-1.9.5-sudoedit-selinux.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .sudoedit-selinux --fuzz=0 patching file src/sudo_edit.c + echo 'Patch #20 (sudo-1.9.7-sigchild.patch):' Patch #20 (sudo-1.9.7-sigchild.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .sigchild --fuzz=0 patching file src/signal.c Hunk #1 succeeded at 144 (offset 11 lines). + echo 'Patch #21 (sudo-1.9.7-krb5ccname.patch):' Patch #21 (sudo-1.9.7-krb5ccname.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .krb5ccname --fuzz=0 patching file plugins/sudoers/auth/pam.c Patch #22 (sudo-1.9.7-utmp-leak.patch): + echo 'Patch #22 (sudo-1.9.7-utmp-leak.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .utmp-leak --fuzz=0 patching file src/utmp.c Hunk #1 succeeded at 218 (offset 8 lines). + echo 'Patch #23 (sha-digest-calc.patch):' Patch #23 (sha-digest-calc.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .sha-digest --fuzz=0 patching file lib/util/sha2.c Hunk #1 succeeded at 499 (offset 9 lines). Patch #24 (sudo-1.9.12-CVE-2023-22809-whitelist.patch): + echo 'Patch #24 (sudo-1.9.12-CVE-2023-22809-whitelist.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .whitelist --fuzz=0 patching file plugins/sudoers/editor.c Patch #25 (sudo-1.9.12-CVE-2023-22809-backports.patch): + echo 'Patch #25 (sudo-1.9.12-CVE-2023-22809-backports.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .backports --fuzz=0 patching file plugins/sudoers/editor.c + echo 'Patch #26 (sudo-1.9.12-CVE-2023-22809.patch):' Patch #26 (sudo-1.9.12-CVE-2023-22809.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cve --fuzz=0 patching file plugins/sudoers/editor.c patching file plugins/sudoers/sudoers.c patching file plugins/sudoers/visudo.c + echo 'Patch #27 (sudo-1.9.15-CVE-2023-42465.patch):' Patch #27 (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 Hunk #1 FAILED at 62. Hunk #2 FAILED at 85. 2 out of 2 hunks FAILED -- saving rejects to file plugins/sudoers/auth/passwd.c.rej patching file plugins/sudoers/auth/sudo_auth.c Hunk #1 succeeded at 117 (offset 5 lines). Hunk #2 succeeded at 173 (offset 6 lines). Hunk #3 FAILED at 208. Hunk #4 succeeded at 309 (offset 6 lines). Hunk #5 succeeded at 362 (offset 8 lines). Hunk #6 FAILED at 365. Hunk #7 FAILED at 403. 3 out of 7 hunks FAILED -- saving rejects to file plugins/sudoers/auth/sudo_auth.c.rej patching file plugins/sudoers/auth/sudo_auth.h patching file plugins/sudoers/cvtsudoers.c Hunk #1 succeeded at 699 (offset 14 lines). Hunk #2 succeeded at 725 (offset 14 lines). Hunk #3 succeeded at 801 (offset 14 lines). patching file plugins/sudoers/match.c Hunk #1 FAILED at 26. Hunk #2 FAILED at 70. Hunk #3 FAILED at 119. Hunk #4 FAILED at 164. Hunk #5 FAILED at 226. Hunk #6 succeeded at 299 (offset 4 lines). Hunk #7 FAILED at 324. Hunk #8 FAILED at 375. Hunk #9 FAILED at 397. 8 out of 9 hunks FAILED -- saving rejects to file plugins/sudoers/match.c.rej patching file plugins/sudoers/parse.c Hunk #1 FAILED at 151. Hunk #2 FAILED at 365. Hunk #3 FAILED at 373. 3 out of 3 hunks FAILED -- saving rejects to file plugins/sudoers/parse.c.rej patching file plugins/sudoers/parse.h Hunk #1 FAILED at 20. Hunk #2 succeeded at 30 (offset -1 lines). 1 out of 2 hunks FAILED -- saving rejects to file plugins/sudoers/parse.h.rej error: Bad exit status from /var/tmp/rpm-tmp.BQWlyU (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.BQWlyU (%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