From nobody Wed Jul 7 18:47:36 2021 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 3FC231226266; Wed, 7 Jul 2021 18:47:46 +0000 (UTC) (envelope-from trashcan@ellael.org) Received: from mx2.enfer-du-nord.net (mx2.enfer-du-nord.net [IPv6:2001:41d0:701:1000::1685]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4GKpMQ0XpRz4jH0; Wed, 7 Jul 2021 18:47:45 +0000 (UTC) (envelope-from trashcan@ellael.org) Received: from smtpclient.apple (p200300fb4f0558010938F8309a8230D1.dip0.t-ipconnect.de [IPv6:2003:fb:4f05:5801:938:f830:9a82:30d1]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx2.enfer-du-nord.net (Postfix) with ESMTPSA id 4GKpMF4DCRzfR; Wed, 7 Jul 2021 20:47:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellael.org; s=dkim; t=1625683657; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zgKVcjthq8dFr1kuYQ22kGOTlEpCJZeYixvGiyzH6SY=; b=YYejBfHy8xLk49coqWSYJ5599YLAMkKeB4K/B1Wt8uPR5Bkcz747BqxNRLpvwqEMNNb889 uZfL/hWMp9q0KAVpmfF1099w73+kUnE4MGVCAyQfsJ+qIT5ppI+HBNI6z8EMBf6fOFqGTe yHCAPVOCLjRa4vDUZAt/JEdPZofGdyZQFZzMZxseZBNL7dBAeE2MHOi/iH42OEImsd9RKd NiUBXbUZFrqqi98/2EpJJ1kkzOUBWnDhjf+oba2sTG7uTnUxyPXbAbqj96fjCb1vrPXWpG jEGGogAW4aGfPeNqPWwBmHbgT4PYsNrvZq6YorvHaAz8SYmi08IHSDOzhIrJ0A== Content-Type: text/plain; charset=utf-8 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Subject: Re: security/rkhunter without hashes after recent STABLE-13 update In-Reply-To: Date: Wed, 7 Jul 2021 20:47:36 +0200 Cc: FreeBSD-STABLE Mailing List , FreeBSD ports , lukasz@wasikowski.net, Stefan Esser Content-Transfer-Encoding: quoted-printable Message-Id: <08637D0D-9D65-4F53-9A64-F4742BA8E415@ellael.org> References: <416D3033-138D-4BBB-84FA-FAEA2944C837@ellael.org> To: Warner Losh X-Mailer: Apple Mail (2.3654.100.0.2.22) X-Rspamd-Queue-Id: 4GKpMQ0XpRz4jH0 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] Reply-To: trashcan@ellael.org From: Michael Grimm via freebsd-stable X-Original-From: Michael Grimm X-ThisMailContainsUnwantedMimeParts: N Warner Losh wrote: > On Wed, Jul 7, 2021 at 9:26 AM Michael Grimm = wrote: >> Warner Losh wrote: >>> What's the hash that you have at n246157? I think it should be = fd5b08977630. >>=20 >> No, it's stable/13-n246157-fd5b0897763 >>=20 >> I will give a n246188+ user land a try, and ... >=20 > Great. Please do let me know... I started this for compatibility so I > didn't have > to keep hacking simple scripts for FreeBSD and if something is screwed = up > that means it's falling short of the goal... >=20 >>> So the change is expected, but if the change to all the *sum = programs is >>> incompatible still, I know I'd like to know (as I'm sure se@ would = as >>> well). All the *sum programs are very new and designed to be 100% >>> compatible with the linux versions and if they aren't that needs to = be >>> fixed. >>=20 >> =E2=80=A6 I will report back. >=20 > Excellent! I am running stable/13-n246205-9e06b34bb5d, now.=20 But I do have to report that rkhunter is still lacking to calculate = hashes when using sha256sum instead of sha256. In a previous mail you wrote: "I recently added the 'sum' variations".=20= Does that mean that sha256sum (et al.) didn't exist before? That could = explain why rkhunter didn't fail before. Example output: KBN> sha256 crontab.mike=20 SHA256 (test.dat) =3D = 829f9293639f1a590757bf3eaa369c102b071ef450d3f196e29d5c810f23a2c9 KBN> sha256sum test.dat 829f9293639f1a590757bf3eaa369c102b071ef450d3f196e29d5c810f23a2c9 = test.dat If I am not mistaken does rkhunter cut that output string into relevant = junks. In both cases the hash is at different positions, though ... > Sorry for any hassle this work is causing. No big deal for rkhunter, a workaround exists ;-) Regards, Michael