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


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

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

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

Cross-posted to 2 groups.

Show all headers | View raw


Hi Mark,

On Mon 27/Jul/2020 11:14:01 +0200 Mark Hindley wrote:
> On Mon, Jul 27, 2020 at 10:32:15AM +0200, Alessandro Vesely wrote:
>> Package: libc6
>> Version: GNU C Library (Debian GLIBC 2.28-10) stable release version 2.28.
>> Severity: normal
>> 
>> 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.
> 
> Thanks for this. As you have realised, libc6 is a Debian package that Devuan
> uses directly without recompilation so this issue is correctly dealt with in
> Debian's BTS.
> 
> However, one thought that occurs to me is whether apparmor is causing this? Does
> disabling it[1] restore predictable behaviour?


Bingo!

Jul 27 09:47:25 pcale kernel: [ 1569.887279] audit: type=1400 audit(1595836045.642:33): apparmor="DENIED" operation="exec" profile="thunderbird" name="/opt/lib
reoffice6.4/program/soffice" pid=5402 comm="gio-launch-desk" requested_mask="x" denied_mask="x" fsuid=1000 ouid=0

I dunno how come apparmor got installed.  Probably it happened when I upgraded to Beowulf.

After aa-teardown and purging apparmor, execve works as expected.

So this turns out to be a documentation bug.  The execve man page should mention that EACCESS can result as an (unforeseen) apparmor impediment.


Thank you so much
Ale

Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | 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