Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1019438

Bug#966343: libc6: Permission denied, intermittent in execve

From Alessandro Vesely <vesely@tana.it>
Newsgroups linux.debian.bugs.dist, linux.debian.maint.glibc
Subject Bug#966343: libc6: Permission denied, intermittent in execve
Date 2020-07-27 10:40 +0200
Message-ID <Ax6PT-3On-1@gated-at.bofh.it> (permalink)
References <Ax6PT-3On-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


Package: libc6
Version: GNU C Library (Debian GLIBC 2.28-10) stable release version 2.28.
Severity: normal


-------- Forwarded Message --------
Subject: libc6: Permission denied, intermittent in execve
Date: Mon, 27 Jul 2020 10:25:27 +0200
From: Alessandro Vesely <vesely@tana.it>
To: Devuan Bug Tracking System <submit@bugs.devuan.org>


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

Back to linux.debian.bugs.dist | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#966343: libc6: Permission denied, intermittent in execve Alessandro Vesely <vesely@tana.it> - 2020-07-27 10:40 +0200
  Bug#966343: bug#498: libc6: Permission denied, intermittent in execve Mark Hindley <mark@hindley.org.uk> - 2020-07-27 12:00 +0200
  Bug#966343: bug#498: libc6: Permission denied, intermittent in execve Alessandro Vesely <vesely@tana.it> - 2020-07-27 12:00 +0200
    Bug#966343: bug#498: libc6: Permission denied, intermittent in execve Samuel Thibault <sthibault@debian.org> - 2020-07-27 12:20 +0200
      Bug#966343: bug#498: libc6: Permission denied, intermittent in execve Alessandro Vesely <vesely@tana.it> - 2020-07-27 19:10 +0200

csiph-web