From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +HTJFOBT8GPFWwEAbAwnHQ (envelope-from ) for ; Sat, 18 Feb 2023 05:28:16 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yFLWE+BT8GNI9wAAG6o9tA (envelope-from ) for ; Sat, 18 Feb 2023 05:28:16 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AF18123888 for ; Sat, 18 Feb 2023 05:28:15 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pTEpP-000138-P8; Fri, 17 Feb 2023 23:28:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pTEpO-00012v-9C for bug-guix@gnu.org; Fri, 17 Feb 2023 23:28:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pTEpO-0000mz-0m for bug-guix@gnu.org; Fri, 17 Feb 2023 23:28:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pTEpN-0005YI-Iy for bug-guix@gnu.org; Fri, 17 Feb 2023 23:28:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#59292: libreoffice password protection doesn't work Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 18 Feb 2023 04:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59292 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 59292@debbugs.gnu.org Received: via spool by 59292-submit@debbugs.gnu.org id=B59292.167669443321270 (code B ref 59292); Sat, 18 Feb 2023 04:28:01 +0000 Received: (at 59292) by debbugs.gnu.org; 18 Feb 2023 04:27:13 +0000 Received: from localhost ([127.0.0.1]:42135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTEoa-0005Wz-NU for submit@debbugs.gnu.org; Fri, 17 Feb 2023 23:27:13 -0500 Received: from mail-qt1-f180.google.com ([209.85.160.180]:37868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTEoY-0005Wk-Cp for 59292@debbugs.gnu.org; Fri, 17 Feb 2023 23:27:11 -0500 Received: by mail-qt1-f180.google.com with SMTP id f20so49562qto.4 for <59292@debbugs.gnu.org>; Fri, 17 Feb 2023 20:27:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=6roUGS9dWaQdpgnZ1Lf7tkx8gpqaCiPoyrdmF+wWUe0=; b=fmll1vOUBM9kDCiY/pOHVzPdZXNNigczmDjcmDnDduHBz7qf8Sek4/1goYFYWCVOCx HPyyfGPv0hk+mv8vjIonW/5CwexcpNb976lPYEieGCmbXg7qkifu8r4KHB2RXVRNr274 jLlgSS3UjIIv1lHa+GEDOUVRDCH9C4bfDEIT6UpMVpY3/NhkJ+zw9SAkauPEABwcG2iB LPeYzXqoMyYsEhkPhSC6PFlqEVcz5wmypkpOpoWS75RfG0Di5v8/RjWZFQK+6iCc0Uy8 XSfl8hfv3xaGGzwDaCGRLMMmo8qvKIQVBcmXn46Lg/0c+wzytjb9WMfuqsTydXHEuqUK 8sUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=6roUGS9dWaQdpgnZ1Lf7tkx8gpqaCiPoyrdmF+wWUe0=; b=NcIch7arR3apeAcTFsouksJgrm5982oWEl/jcDncabtX6w6a+r8j3GPVhoaIYa+AyL sxU/jJo1rgSfvuhbL5gGvxhQyD60wXh+GtOuddd1f10ayO3nVnHWXQUljSIVv8NWPspX aFthqEarDy5pBDqHuzivHrIv7LxzdcRk4KJD9gJMjzptj1j21FYFdHhWg1+XSYLstw8+ YNes32BKmioYpdi5wVCP0ZJ4sQQ6jyoRhm+BLPlVwlDMyU/Xd3NpmiZqpYFwqKm877Cy fwchUq2Q5PGM1Vtqm+nUv2BTVm6UJNRWdFBU5mUfRPagwJPBi1LADkJaHNk66xAjuWCE Egrw== X-Gm-Message-State: AO0yUKWyhF2GR2/t9u5gQfOhFMASokNb/L7c2+orMADvUoZDTW5woE6K SHabiJQ1f2guJeIuICLsfwx6Ccw+B+acgtRq X-Google-Smtp-Source: AK7set8zSV1Ii026jJmOml+bg/CcHdw+GQORW4FP0l9/ymDDx/+b64p0HFpav9K6s19bLTjKjJqjgA== X-Received: by 2002:a05:622a:1443:b0:3b6:5d23:8748 with SMTP id v3-20020a05622a144300b003b65d238748mr1160266qtx.52.1676694424534; Fri, 17 Feb 2023 20:27:04 -0800 (PST) Received: from hurd (dsl-157-123.b2b2c.ca. [66.158.157.123]) by smtp.gmail.com with ESMTPSA id q12-20020ac8450c000000b003a527d29a41sm4540864qtn.75.2023.02.17.20.27.03 for <59292@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Feb 2023 20:27:04 -0800 (PST) From: Maxim Cournoyer References: <87sfijln98.fsf@gmail.com> <87ilg0qazj.fsf@gmail.com> Date: Fri, 17 Feb 2023 23:27:02 -0500 In-Reply-To: <87ilg0qazj.fsf@gmail.com> (Maxim Cournoyer's message of "Fri, 17 Feb 2023 15:43:12 -0500") Message-ID: <877cwfr42x.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676694496; a=rsa-sha256; cv=none; b=LeUyPbR+s6JadUxsJ7DuptAM3TtkM56o0zIcZGtxTMaDDbVHxvWRM81hDxC2oxs9AvLQG/ N5LARFtHfHsoqiJLBDtdOKZhJOsfqSzQXXf2JhcQfy3TadwbzerIGLD5xi7+r9Jy7cDKp1 Vs0ZTJpCznlSNQvjSTT3ruhqcdMo22Nuk5D8EraJuz8iK8VC6RNJcrS6Y5xe4wXncHtDgy tRH5+R6iWkvaUzS81HuCwRsp2RPkXWaxpyfZqM7H57/Sg3OqlVku+3Jw6tozpl/OLnkBE+ IJdhxtDqlOyHzuMNXwBmvV27rQKN9IX7g+JNZW0JuYOP3QplCfEPMNK/5OOVcQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=fmll1vOU; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676694496; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=6roUGS9dWaQdpgnZ1Lf7tkx8gpqaCiPoyrdmF+wWUe0=; b=fY3qO2/Rvh0Wgg9N6awKZQfMqybOqnVr/NQ0uZ/XMiZxmsKOhY+ppQezQkTBtfPD3RpSQv YJ9qgqdPDAQSCQL9kiQDAW3x0MQrk34RklLM5FczcpDy0FrfWykSPAwhYhWpUJXvs5yOZv jOWPUFMjHz+re/Az7ESx7yprZs3qxmjL0O83bFeajJ++TxyTGl3y4g0K2HPIb+LQEsLwva nTW3j25KSQOideJtPZ9e1+ttY9IlCzdtjALJcnXqEQHJR5pU9esNKsQuKtxu180LfRTP0v gE2KA9pCElFps4CadlwtXwiiJBVLNtXpie1bYVh8WA3JmrkPk2WNkKu3p4fHDQ== X-Migadu-Spam-Score: -1.28 X-Spam-Score: -1.28 X-Migadu-Queue-Id: AF18123888 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=fmll1vOU; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-TUID: o3zvVbm8Xyzp Hi, It may have to do with not correctly finding the "libnssckbi.so" share library, which is from NSS. Here's what tipped me to it, in strace output: --8<---------------cut here---------------start------------->8--- 13 matches for "ckbi" in buffer: *scratch* 169:[pid 2594] openat(AT_FDCWD, "/home/maxim/.thunderbird/sjp3hftb.default/libnssckbi.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) 171:[pid 2594] openat(AT_FDCWD, "/gnu/store/rrid5nx9cbrq0flkhc1rv4b5hk4w70ib-nspr-4.34/lib/libnssckbi.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) 172:[pid 2594] openat(AT_FDCWD, "/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/libnssckbi.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) 173:[pid 2594] openat(AT_FDCWD, "/gnu/store/094bbaq6glba86h1d4cj16xhdi6fk2jl-gcc-10.3.0-lib/lib/libnssckbi.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) 174:[pid 2594] openat(AT_FDCWD, "/gnu/store/094bbaq6glba86h1d4cj16xhdi6fk2jl-gcc-10.3.0-lib/lib/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../tls/x86_64/x86_64/libnssckbi.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) 176:[pid 2594] openat(AT_FDCWD, "/gnu/store/094bbaq6glba86h1d4cj16xhdi6fk2jl-gcc-10.3.0-lib/lib/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../tls/x86_64/libnssckbi.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) 178:[pid 2594] openat(AT_FDCWD, "/gnu/store/094bbaq6glba86h1d4cj16xhdi6fk2jl-gcc-10.3.0-lib/lib/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../tls/x86_64/libnssckbi.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) 180:[pid 2594] openat(AT_FDCWD, "/gnu/store/094bbaq6glba86h1d4cj16xhdi6fk2jl-gcc-10.3.0-lib/lib/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../tls/libnssckbi.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) 182:[pid 2594] openat(AT_FDCWD, "/gnu/store/094bbaq6glba86h1d4cj16xhdi6fk2jl-gcc-10.3.0-lib/lib/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../x86_64/x86_64/libnssckbi.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) 184:[pid 2594] openat(AT_FDCWD, "/gnu/store/094bbaq6glba86h1d4cj16xhdi6fk2jl-gcc-10.3.0-lib/lib/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../x86_64/libnssckbi.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) 186:[pid 2594] openat(AT_FDCWD, "/gnu/store/094bbaq6glba86h1d4cj16xhdi6fk2jl-gcc-10.3.0-lib/lib/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../x86_64/libnssckbi.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) 188:[pid 2594] openat(AT_FDCWD, "/gnu/store/094bbaq6glba86h1d4cj16xhdi6fk2jl-gcc-10.3.0-lib/lib/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../libnssckbi.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) 190:[pid 2594] openat(AT_FDCWD, "/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/libnssckbi.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) --8<---------------cut here---------------end--------------->8--- It never resolves libnssckbi.so. LibreOffice attempts to load this library in xmlsecurity/source/xmlsec/nss/nssinitializer.cxx, in the 'nsscrypto_initialize' procedure. The library appears to be dynamically loaded via SECMOD_LoadUserModule. Perhaps we can patch 'OUString rootModule("libnssckbi" SAL_DLLEXTENSION)' to its full name. Some more output, after building libreoffice with "--enable-sal-log" and setting the 'SAL_LOG=+INFO' environment variable: --8<---------------cut here---------------start------------->8--- info:sal.bootstrap:8927:8927:sal/rtl/bootstrap.cxx:857: expandMacros called with: libnssckbi.so info:sal.bootstrap:8927:8927:sal/rtl/bootstrap.cxx:985: expandMacros result: libnssckbi.so info:xmlsecurity.xmlsec:8927:8927:xmlsecurity/source/xmlsec/nss/nssinitializer.cxx:471: FAILED to load the new root certificate module Root Certs for OpenOffice.orgcontained in libnssckbi.so warn:legacy.osl:8927:8927:comphelper/source/misc/storagehelper.cxx:406: Can not create SHA256 digest! warn:package.xstor:8927:8927:package/source/xstor/owriteablestream.cxx:1138: Can't write encryption related properties com.sun.star.uno.RuntimeException message: "No expected key is provided! at /tmp/guix-build-libreoffice-7.5.0.3.drv-0/libreoffice-7.5.0.3/package/source/zippackage/ZipPackageStream.cxx:243" info:package.xstor:8927:8927:package/source/xstor/xstorage.cxx:2274: Rethrow com.sun.star.io.IOException message: "No expected key is provided! at /tmp/guix-build-libreoffice-7.5.0.3.drv-0/libreoffice-7.5.0.3/package/source/zippackage/ZipPackageStream.cxx:243 at /tmp/guix-build-libreoffice-7.5.0.3.drv-0/libreoffice-7.5.0.3/package/source/xstor/owriteablestream.cxx:1140" --8<---------------cut here---------------end--------------->8--- So it seems to cause an error, which is apparently ignored. -- Thanks, Maxim