From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Thoughts on GuixSD and IDS like AIDE and Tripwire Date: Mon, 02 Jan 2017 23:28:55 +0100 Message-ID: <877f6d85aw.fsf@gnu.org> References: <20161231132814.GA25102@khaalida> <20170101065609.GA4651@mail.thebird.nl> <20170102152426.GA29868@khaalida> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53805) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOB6H-0002CX-DG for guix-devel@gnu.org; Mon, 02 Jan 2017 17:29:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOB6C-0000wh-EN for guix-devel@gnu.org; Mon, 02 Jan 2017 17:29:05 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43317) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOB6C-0000wd-AS for guix-devel@gnu.org; Mon, 02 Jan 2017 17:29:00 -0500 Received: from reverse-83.fdn.fr ([80.67.176.83]:60680 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cOB6B-0001Y0-0v for guix-devel@gnu.org; Mon, 02 Jan 2017 17:29:00 -0500 In-Reply-To: <20170102152426.GA29868@khaalida> (dian cecht's message of "Mon, 2 Jan 2017 07:24:26 -0800") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Hi! dian_cecht@zoho.com skribis: > P.S. On second thought (and after a cup of coffee), could the database fi= le be > generated using the same format programs like md5sum, sha1sum, et al use = so we'd > just have to run (for example) md5sum -C database? That sounds like a good idea to complement =E2=80=98guix publish=E2=80=99 += =E2=80=98guix challenge=E2=80=99. A simple way to dump the database is like this: --8<---------------cut here---------------start------------->8--- $ sudo sqlite3 /var/guix/db/db.sqlite SQLite version 3.14.1 2016-08-11 18:53:32 Enter ".help" for usage hints. sqlite> select path,hash from validpaths; /gnu/store/98xcn26354r70nyamkgywqzjxvw3qikx-guile-2.0.9.tar.xz|sha256:a475e= 4bad3d39a94f01c590f239e80dbd84688e480ca74de3e335f6f36a0d975 /gnu/store/hyh7kwkqlxc0x9s8cs5mjnih5v524486-make-impure-dirs.patch|sha256:d= 697a02be5fea425ac93eb650b1359e3e8053d84f70677c8c0a80291ed03585e /gnu/store/hv15hq91vm3ajv23lkq0kgd56d4kmd08-findutils-absolute-paths.patch|= sha256:c4fc83e01a7f448b598905bcf6ca39b5ba0f1f0f131145b379f0de9c2fbe109b [=E2=80=A6] --8<---------------cut here---------------end--------------->8--- (Of course you have to trust the database to contain the right hashes in the first place.) Ludo=E2=80=99.