From nobody Mon Oct 11 21:09:39 2021 X-Original-To: mono@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 F00CE17F53E6 for ; Mon, 11 Oct 2021 21:09:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HSryq6FhCz3G0q for ; Mon, 11 Oct 2021 21:09:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id AF55D27970 for ; Mon, 11 Oct 2021 21:09:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 19BL9dR2048276 for ; Mon, 11 Oct 2021 21:09:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 19BL9dfI048275 for mono@FreeBSD.org; Mon, 11 Oct 2021 21:09:39 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: mono@FreeBSD.org Subject: [Bug 258709] lang/mono6.8: cert-sync doesn't work on iocage style base jails Date: Mon, 11 Oct 2021 21:09:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: will@worrbase.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: mono@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Mono and C# applications on FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-mono List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-mono@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258709 will@worrbase.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |will@worrbase.com --- Comment #2 from will@worrbase.com --- I'm experiencing this as well, although with my hand-rolled thinjails. It l= ooks like cert-sync tries to write to /usr/share/.mono, which is the culprit her= e. Running cert-sync yields the following: terra|worr|22:47:17|1$ sudo jexec j /usr/local/bin/cert-sync /usr/local/etc/ssl/cert.pem Mono Certificate Store Sync - version 6.8.0.123 Populate Mono certificate store from a concatenated list of certificates. Copyright 2002, 2003 Motus Technologies. Copyright 2004-2008 Novell. BSD licensed. Importing into legacy system store: I already trust 0, your new list has 130 Warning: Could not import C=3DES, O=3DFNMT-RCM, OU=3DAC RAIZ FNMT-RCM System.IO.IOException: Read-only file system at System.IO.FileSystem.CreateDirectory (System.String fullPath) [0x00191= ] in <0e6cb1433c7b46f598f86593dd03f528>:0=20 at System.IO.Directory.CreateDirectory (System.String path) [0x0002c] in <0e6cb1433c7b46f598f86593dd03f528>:0=20 at Mono.Security.X509.X509Store.CheckStore (System.String path, System.Boolean throwException) [0x00020] in <9d0b4d46cb9c4cd288c22cd9cdf5212a>:0=20 at Mono.Security.X509.X509Store.Import (Mono.Security.X509.X509Certificate certificate) [0x00000] in <9d0b4d46cb9c4cd288c22cd9cdf5212a>:0=20 at Mono.Tools.CertSync.ImportToStore (Mono.Security.X509.X509CertificateCollection roots, Mono.Security.X509.X509Store store) [0x00050] in <34bb119f69354d8986322c88a4400682>:0=20 Warning: Could not import C=3DES, O=3DFNMT-RCM, OU=3DCeres, OID.2.5.4.97=3DVATES-Q2826004J, CN=3DAC RAIZ FNMT-RCM SERVIDORES SEGUROS ... Running the following dtrace script yields: terra|worr|23:08:39|130$ cat ro-cert-sync.d=20 #!/usr/sbin/dtrace -s syscall:freebsd:mkdir:entry { self->path =3D copyinstr(arg0); } syscall:freebsd:mkdir:return { if (args[0] !=3D 0) { printf("Could not create %s: %d", self->path, errno); } } terra|worr|23:08:41|0$ sudo dtrace -s ro-cert-sync.d -c 'jexec j /usr/local/bin/cert-sync --quiet /usr/local/etc/ssl/cert.pem' | head -30 dtrace: script 'ro-cert-sync.d' matched 5 probes dtrace: pid 35449 has exited CPU ID FUNCTION:NAME 6 77594 mkdir:return Could not create /usr/share/.mo= no: 30 6 77594 mkdir:return Could not create /usr/share/.mono/certs: 2 6 77594 mkdir:return Could not create /usr/share/.mono/certs/Trust: 2 6 77594 mkdir:return Could not create /usr/share/.mo= no: 30 6 77594 mkdir:return Could not create /usr/share/.mono/certs: 2 6 77594 mkdir:return Could not create /usr/share/.mono/certs/Trust: 2 6 77594 mkdir:return Could not create /usr/share/.mo= no: 30 6 77594 mkdir:return Could not create /usr/share/.mono/certs: 2 6 77594 mkdir:return Could not create /usr/share/.mono/certs/Trust: 2 6 77594 mkdir:return Could not create /usr/share/.mo= no: 30 6 77594 mkdir:return Could not create /usr/share/.mono/certs: 2 6 77594 mkdir:return Could not create /usr/share/.mono/certs/Trust: 2 6 77594 mkdir:return Could not create /usr/share/.mo= no: 30 6 77594 mkdir:return Could not create /usr/share/.mono/certs: 2 6 77594 mkdir:return Could not create /usr/share/.mono/certs/Trust: 2 6 77594 mkdir:return Could not create /usr/share/.mo= no: 30 6 77594 mkdir:return Could not create /usr/share/.mono/certs: 2 6 77594 mkdir:return Could not create /usr/share/.mono/certs/Trust: 2 6 77594 mkdir:return Could not create /usr/share/.mo= no: 30 6 77594 mkdir:return Could not create /usr/share/.mono/certs: 2 6 77594 mkdir:return Could not create /usr/share/.mono/certs/Trust: 2 6 77594 mkdir:return Could not create /usr/share/.mo= no: 30 6 77594 mkdir:return Could not create /usr/share/.mono/certs: 2 6 77594 mkdir:return Could not create /usr/share/.mono/certs/Trust: 2 6 77594 mkdir:return Could not create /usr/share/.mo= no: 30 6 77594 mkdir:return Could not create /usr/share/.mono/certs: 2 6 77594 mkdir:return Could not create /usr/share/.mono/certs/Trust: 2 6 77594 mkdir:return Could not create /usr/share/.mo= no: 30 6 77594 mkdir:return Could not create /usr/share/.mono/certs: 2 --=20 You are receiving this mail because: You are the assignee for the bug.=