Mock Version: 1.2.17 Mock Version: 1.2.17 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/chkrootkit.spec'], timeout=172800logger=printOutput=FalsechrootPath='/var/lib/mock/f22-build-5863963-612585/root'shell=Falseenv={'SHELL': '/bin/bash', 'TERM': 'vt100', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'HOME': '/builddir', 'LANG': 'en_US.UTF-8', 'HOSTNAME': 'mock'}gid=425uid=1000user='mockbuild') Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/chkrootkit.spec'] with env {'SHELL': '/bin/bash', 'TERM': 'vt100', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'HOME': '/builddir', 'LANG': 'en_US.UTF-8', 'HOSTNAME': 'mock'} and shell False warning: Could not canonicalize hostname: buildvm-11.phx2.fedoraproject.org Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/chkrootkit-0.50-8.fc22.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/chkrootkit.spec'], timeout=172800logger=printOutput=FalsechrootPath='/var/lib/mock/f22-build-5863963-612585/root'private_network=Trueshell=Falseenv={'SHELL': '/bin/bash', 'TERM': 'vt100', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'HOME': '/builddir', 'LANG': 'en_US.UTF-8', 'HOSTNAME': 'mock'}gid=425uid=1000user='mockbuild') Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/chkrootkit.spec'] with env {'SHELL': '/bin/bash', 'TERM': 'vt100', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'HOME': '/builddir', 'LANG': 'en_US.UTF-8', 'HOSTNAME': 'mock'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.NZSfuX + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf chkrootkit-0.50 + /usr/bin/gzip -dc /builddir/build/SOURCES/chkrootkit-0.50.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd chkrootkit-0.50 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (chkrootkit-0.44-getCMD.patch):' Patch #1 (chkrootkit-0.44-getCMD.patch): + /usr/bin/cat /builddir/build/SOURCES/chkrootkit-0.44-getCMD.patch + /usr/bin/patch -p1 -b --suffix .getCMD --fuzz=0 patching file chkrootkit Hunk #1 succeeded at 1245 (offset 185 lines). Patch #2 (chkrootkit-0.44-inetd.patch): + echo 'Patch #2 (chkrootkit-0.44-inetd.patch):' + /usr/bin/cat /builddir/build/SOURCES/chkrootkit-0.44-inetd.patch + /usr/bin/patch -p1 -b --suffix .inetd --fuzz=0 patching file chkrootkit Hunk #1 succeeded at 1410 (offset 194 lines). Patch #6 (chkrootkit-0.47-chklastlog.patch): + echo 'Patch #6 (chkrootkit-0.47-chklastlog.patch):' + /usr/bin/cat /builddir/build/SOURCES/chkrootkit-0.47-chklastlog.patch + /usr/bin/patch -p1 -b --suffix .chklastlog --fuzz=0 patching file chklastlog.c Hunk #1 succeeded at 65 (offset 3 lines). patching file README.chklastlog Patch #9 (chkrootkit-0.49-chkproc-psver.patch): + echo 'Patch #9 (chkrootkit-0.49-chkproc-psver.patch):' + /usr/bin/cat /builddir/build/SOURCES/chkrootkit-0.49-chkproc-psver.patch + /usr/bin/patch -p0 -b --suffix .chkproc-psver --fuzz=0 patching file chkproc.c Patch #10 (chkrootkit-0.49-chkutmp-outofbounds.patch): + echo 'Patch #10 (chkrootkit-0.49-chkutmp-outofbounds.patch):' + /usr/bin/cat /builddir/build/SOURCES/chkrootkit-0.49-chkutmp-outofbounds.patch + /usr/bin/patch -p1 --fuzz=0 patching file chkutmp.c Patch #11 (chkrootkit-0.49-CVE-2014-0476.patch): + echo 'Patch #11 (chkrootkit-0.49-CVE-2014-0476.patch):' + /usr/bin/cat /builddir/build/SOURCES/chkrootkit-0.49-CVE-2014-0476.patch + /usr/bin/patch -p1 --fuzz=0 patching file debian/patches/CVE-2014-0476.patch Patch #12 (chkrootkit-suckit.patch): + echo 'Patch #12 (chkrootkit-suckit.patch):' + /usr/bin/cat /builddir/build/SOURCES/chkrootkit-suckit.patch + /usr/bin/patch -p1 --fuzz=0 patching file chkrootkit Patch #13 (chkrootkit-0.50-openssh-windigo.patch): + echo 'Patch #13 (chkrootkit-0.50-openssh-windigo.patch):' + /usr/bin/cat /builddir/build/SOURCES/chkrootkit-0.50-openssh-windigo.patch patching file chkrootkit + /usr/bin/patch -p0 --fuzz=0 + echo 'Patch #14 (chkrootkit-0.50-netstat-l2cap.patch):' Patch #14 (chkrootkit-0.50-netstat-l2cap.patch): + /usr/bin/cat /builddir/build/SOURCES/chkrootkit-0.50-netstat-l2cap.patch + /usr/bin/patch -p0 --fuzz=0 patching file chkrootkit + sed -i -e 's!\s\+@strip.*!!g' Makefile + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.3uY5ge + umask 022 + cd /builddir/build/BUILD + cd chkrootkit-0.50 + make sense 'CC=gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_FILE_OFFSET_BITS=64' gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_FILE_OFFSET_BITS=64 -DHAVE_LASTLOG_H -o chklastlog chklastlog.c chklastlog.c: In function 'main': chklastlog.c:170:36: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Wformat=] fprintf(stderr, "MAX_ID is %ld and current uid is %ld, please check\n\r", MAX_ID, *uid ); ^ chklastlog.c:170:36: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'uid_t {aka unsigned int}' [-Wformat=] gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_FILE_OFFSET_BITS=64 -DHAVE_LASTLOG_H -o chkwtmp chkwtmp.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_FILE_OFFSET_BITS=64 -DHAVE_LASTLOG_H -D_FILE_OFFSET_BITS=64 -o ifpromisc ifpromisc.c ifpromisc.c: In function 'read_proc_net_packet': ifpromisc.c:107:5: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(buf, 80, proc); ^ ifpromisc.c: In function 'walk_process': ifpromisc.c:203:13: warning: ignoring return value of 'readlink', declared with attribute warn_unused_result [-Wunused-result] readlink(path, link, sizeof(link) - 1); ^ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_FILE_OFFSET_BITS=64 -o chkproc chkproc.c chkproc.c: In function 'main': chkproc.c:187:32: warning: "/*" within comment [-Wcomment] /* printf("pv = %d\n\r", pv); /* -- DEBUG */ ^ chkproc.c:190:37: warning: "/*" within comment [-Wcomment] /* printf("pscmd = %s\n\r", pscmd); /* -- DEBUG */ ^ chkproc.c:235:29: warning: "/*" within comment [-Wcomment] /* printf(">>%s<<\n", p); /* -- DEBUG */ ^ chkproc.c:270:37: warning: "/*" within comment [-Wcomment] /* printf("%s\n", tmp_d_name); /* -- DEBUG */ ^ chkproc.c: In function 'readline': chkproc.c:121:5: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(buf, MAX_BUF, stream); ^ chkproc.c:124:7: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(buf, MAX_BUF, stream); ^ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_FILE_OFFSET_BITS=64 -o chkdirs chkdirs.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_FILE_OFFSET_BITS=64 -o check_wtmpx check_wtmpx.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_FILE_OFFSET_BITS=64 -static -o strings-static strings.c strings.c: In function 'main': strings.c:105:11: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if (strcmp(argv[i], "-a") == 0) continue; ^ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_FILE_OFFSET_BITS=64 -o chkutmp chkutmp.c chkutmp.c: In function 'fetchps': chkutmp.c:90:2: warning: ignoring return value of 'getline', declared with attribute warn_unused_result [-Wunused-result] getline(&line, &linelen, ps_fp); /* skip header */ ^ + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.MP2AFx + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64 ++ dirname /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64 + cd chkrootkit-0.50 + rm -rf /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64 + mkdir -p /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/sbin + cat + install -p -D -m0755 .tmp.chkrootkit.sbin /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/sbin/chkrootkit + mkdir -p /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/bin + ln -s /usr/bin/consolehelper /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/bin/chkrootkit + install -p -D -m0755 /builddir/build/SOURCES/chkrootkitX /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/bin/chkrootkitX + perl -pi -e 's!/usr/bin!/usr/bin!' /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/bin/chkrootkitX + install -p -D -m0644 /builddir/build/SOURCES/chkrootkit.png /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/share/pixmaps/chkrootkit.png + install -p -D -m0644 /builddir/build/SOURCES/chkrootkit.console /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/etc/security/console.apps/chkrootkit + perl -pi -e 's!/usr/sbin!/usr/sbin!' /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/etc/security/console.apps/chkrootkit + install -p -D -m0644 /builddir/build/SOURCES/chkrootkit.pam /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/etc/pam.d/chkrootkit + for f in check_wtmpx chkdirs chklastlog chkproc chkrootkit chkutmp chkwtmp ifpromisc strings-static + install -p -D -m0755 check_wtmpx /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/lib64/chkrootkit-0.50/check_wtmpx + for f in check_wtmpx chkdirs chklastlog chkproc chkrootkit chkutmp chkwtmp ifpromisc strings-static + install -p -D -m0755 chkdirs /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/lib64/chkrootkit-0.50/chkdirs + for f in check_wtmpx chkdirs chklastlog chkproc chkrootkit chkutmp chkwtmp ifpromisc strings-static + install -p -D -m0755 chklastlog /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/lib64/chkrootkit-0.50/chklastlog + for f in check_wtmpx chkdirs chklastlog chkproc chkrootkit chkutmp chkwtmp ifpromisc strings-static + install -p -D -m0755 chkproc /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/lib64/chkrootkit-0.50/chkproc + for f in check_wtmpx chkdirs chklastlog chkproc chkrootkit chkutmp chkwtmp ifpromisc strings-static + install -p -D -m0755 chkrootkit /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/lib64/chkrootkit-0.50/chkrootkit + for f in check_wtmpx chkdirs chklastlog chkproc chkrootkit chkutmp chkwtmp ifpromisc strings-static + install -p -D -m0755 chkutmp /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/lib64/chkrootkit-0.50/chkutmp + for f in check_wtmpx chkdirs chklastlog chkproc chkrootkit chkutmp chkwtmp ifpromisc strings-static + install -p -D -m0755 chkwtmp /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/lib64/chkrootkit-0.50/chkwtmp + for f in check_wtmpx chkdirs chklastlog chkproc chkrootkit chkutmp chkwtmp ifpromisc strings-static + install -p -D -m0755 ifpromisc /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/lib64/chkrootkit-0.50/ifpromisc + for f in check_wtmpx chkdirs chklastlog chkproc chkrootkit chkutmp chkwtmp ifpromisc strings-static + install -p -D -m0755 strings-static /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/lib64/chkrootkit-0.50/strings-static + ln -s strings-static /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/lib64/chkrootkit-0.50/strings + desktop-file-install --dir /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/share/applications /builddir/build/SOURCES/chkrootkit.desktop + install -p -m0644 /builddir/build/SOURCES/README.false_positives . + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /builddir/build/BUILD/chkrootkit-0.50 extracting debug info from /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/lib64/chkrootkit-0.50/ifpromisc extracting debug info from /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/lib64/chkrootkit-0.50/chkproc extracting debug info from /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/lib64/chkrootkit-0.50/chkutmp extracting debug info from /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/lib64/chkrootkit-0.50/chkwtmp extracting debug info from /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/lib64/chkrootkit-0.50/chkdirs extracting debug info from /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/lib64/chkrootkit-0.50/chklastlog extracting debug info from /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/lib64/chkrootkit-0.50/check_wtmpx extracting debug info from /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/lib64/chkrootkit-0.50/strings-static nm: /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/lib64/chkrootkit-0.50/strings-static: no symbols /usr/lib/rpm/sepdebugcrcfix: Updated 8 CRC32s, 0 CRC32s did match. symlinked /usr/lib/debug/usr/lib64/chkrootkit-0.50/strings-static.debug to /usr/lib/debug/usr/lib64/chkrootkit-0.50/strings.debug 101 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Processing files: chkrootkit-0.50-8.fc22.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.sTp8VV + umask 022 + cd /builddir/build/BUILD + cd chkrootkit-0.50 + DOCDIR=/builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/share/doc/chkrootkit + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/share/doc/chkrootkit + cp -pr ACKNOWLEDGMENTS /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/share/doc/chkrootkit + cp -pr COPYRIGHT /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/share/doc/chkrootkit + cp -pr README /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/share/doc/chkrootkit + cp -pr README.chklastlog /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/share/doc/chkrootkit + cp -pr README.chkwtmp /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/share/doc/chkrootkit + cp -pr chkrootkit.lsm /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/share/doc/chkrootkit + cp -pr README.false_positives /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64/usr/share/doc/chkrootkit + exit 0 Provides: application() application(chkrootkit.desktop) chkrootkit = 0.50-8.fc22 chkrootkit(x86-64) = 0.50-8.fc22 config(chkrootkit) = 0.50-8.fc22 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /bin/sh libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_2.7)(64bit) rtld(GNU_HASH) Processing files: chkrootkit-debuginfo-0.50-8.fc22.x86_64 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64 warning: Could not canonicalize hostname: buildvm-11.phx2.fedoraproject.org Wrote: /builddir/build/RPMS/chkrootkit-0.50-8.fc22.x86_64.rpm Wrote: /builddir/build/RPMS/chkrootkit-debuginfo-0.50-8.fc22.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.G9XZVk + umask 022 + cd /builddir/build/BUILD + cd chkrootkit-0.50 + rm -rf /builddir/build/BUILDROOT/chkrootkit-0.50-8.fc22.x86_64 + exit 0 Child return code was: 0