Date: Sat, 01 Sep 2018 13:18:39 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 231072] Mtree calculates checksum wrong when verifying a specification against a directory. Message-ID: <bug-231072-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231072 Bug ID: 231072 Summary: Mtree calculates checksum wrong when verifying a specification against a directory. Product: Base System Version: 11.2-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: kpaasial@gmail.com https://www.freebsd.org/doc/handbook/security-intro.html the mtree(8) example at section 13.2.6 Binary Verification is not working correctly. The output from the verification step is empty as expected but the checksum printed differs from the one calculated at the specification creation step. # mtree -s 3483151339707503 -c -K cksum,sha256digest -p /bin > /root/.bin_chksum_mtree mtree: /bin checksum: 1817933408 # mtree -s 3483151339707503 -p /bin < /root/.bin_chksum_mtree >> /root/.bin_chksum_output mtree: /bin checksum: 1510745247 # file .bin_chksum_output .bin_chksum_output: empty The system I'm using is: # uname -a FreeBSD firewall 11.2-RELEASE-p2 FreeBSD 11.2-RELEASE-p2 #3 r338073: Mon Aug 20 16:44:39 EEST 2018 root@firewall:/usr/obj/usr/src/sys/GENERIC amd64 Filesystems used are ZFS all around except tmpfs /tmp and /var/run. -- You are receiving this mail because: You are the assignee for the bug.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-231072-227>
