GNU bug report logs - #43415
coreutils 8.32: install: fchmod fails with EBADF

Previous Next

Package: coreutils;

Reported by: Cameron Nemo <cnemo <at> tutanota.com>

Date: Tue, 15 Sep 2020 08:13:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Cameron Nemo <cnemo <at> tutanota.com>
Cc: 43415 <at> debbugs.gnu.org
Subject: bug#43415: coreutils 8.32: install: fchmod fails with EBADF
Date: Tue, 15 Sep 2020 16:49:04 -0700
On 9/14/20 6:31 PM, Cameron Nemo via GNU coreutils Bug Reports wrote:
> It seems like relying on the /proc link is not ideal,
> and a bug is being hidden by such behavior.
> Is there any chance that this can be resolved?

It really should be fixed in the Linux kernel: it needs a proper way to 
implement POSIX fchmodat <https://pubs.opengroup.org/onlinepubs/9699919799/> 
with the AT_SYMLINK_NOFOLLOW flag, in order to plug some security holes 
involving symlink attacks. See:

https://bugzilla.redhat.com/show_bug.cgi?id=1810141
https://lkml.org/lkml/2020/6/9/548

In the meantime, mounting /proc may be your best bet. I vaguely recall there are 
other places in glibc that assume /proc.




This bug report was last modified 4 years and 278 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.