From unknown Thu Mar 28 13:03:35 2024 X-Loop: owner@bugs.devuan.org Subject: bug#497: libc6: Permission denied, intermittent in execve Reply-To: Alessandro Vesely , 497@bugs.devuan.org Resent-From: Alessandro Vesely Resent-To: devuan-bugs@lists.dyne.org Resent-CC: devuan-dev@lists.dyne.org X-Loop: owner@bugs.devuan.org Resent-Date: Mon, 27 Jul 2020 08:33:01 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.devuan.org X-Devuan-PR-Message: report 497 X-Devuan-PR-Package: libc6 X-Devuan-PR-Keywords: Received: via spool by submit@bugs.devuan.org id=B.159583861214966 (code B); Mon, 27 Jul 2020 08:33:01 +0000 Received: (at submit) by bugs.devuan.org; 27 Jul 2020 08:30:12 +0000 Delivered-To: devuanbugs@dyne.org Received: from tupac3.dyne.org [195.169.149.119] by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4) for (single-drop); Mon, 27 Jul 2020 08:30:12 +0000 (UTC) Received: from wmail.tana.it (wmail.tana.it [62.94.243.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by vm6.ganeti.dyne.org (Postfix) with UTF8SMTPS id 31FE6F60ACF for ; Mon, 27 Jul 2020 10:25:41 +0200 (CEST) Authentication-Results: vm6.ganeti.dyne.org; dkim=pass (1152-bit key; secure) header.d=tana.it header.i=@tana.it header.b="AEE32H+G"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tana.it; s=delta; t=1595838339; bh=aF8WPNP4tXMGBJJ20DnID4CLBFpMF1gzxyS6WeuXFDw=; l=1335; h=From:To:Date; b=AEE32H+GsYHzy40u24EZvMP/2eIm2eame0GT4O/q6FEdlvQ5TV8Y3i11tFBnrR/hn VsTO4czqmxnMS+6jfFrtl47BCS4IBtfYUqdDnjMG1yxS0gBxdPUfIIWNuaYrREU63w miphOcvqdh+A5+2gmRbLpehv2ytYMlYGUuugzoxgJe1AYt+niMsscX9eNFUyO Authentication-Results: tana.it; auth=pass (details omitted) Received: from pcale.tana (pcale.tana [172.25.197.111]) (AUTH: CRAM-MD5 uXDGrn@SYT0/k) by wmail.tana.it with ESMTPA id 00000000005DC053.000000005F1E8F82.00007306; Mon, 27 Jul 2020 10:25:38 +0200 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Alessandro Vesely To: Devuan Bug Tracking System Message-ID: <159583832778.5523.4267786497736057480.reportbug@pcale.tana> X-Mailer: reportbug 7.5.3+devuan3 Date: Mon, 27 Jul 2020 10:25:27 +0200 X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org Package: libc6 Version: GNU C Library (Debian GLIBC 2.28-10) stable release version 2.28. Severity: normal Dear Maintainer, in certain situations, execve fails setting errno to EACCESS. The same program, launched by the same user in different ways, succeeds or fails according to preceding actions. None of the failure conditions for EACCESS is met. The case at hand happens with an old version of Thunderbird and a LibreOffice attachment. After saving the attachment, Thunderbird execs gio-launch-desktop. The latter tries to exec libreoffice6.4 and fails. I strace'd the full arguments used in the failed execve(), and copied them to a simple C program which runs just that execve() call. When called from the command line, the program succeeds. Then I replaced the gio-launch-desktop executable with my straw men. When called from Thunderbird, the program fails. See also: https://unix.stackexchange.com/questions/600174/permission-denied-intermittent- in-execve -- System Information: Distributor ID: Debian Description: Devuan GNU/Linux 3 (beowulf) Release: 3 Codename: beowulf Architecture: x86_64 Kernel: Linux 4.19.0-9-amd64 (SMP w/8 CPU cores) Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8), LANGUAGE=en_IE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash