Article View: linux.debian.bugs.dist
Article #6645Bug#1155720: fakeroot: stale ownership served silently after inode reuse by static binary
From: Clint Adams
Date: Sun, 29 Nov 2026 01:50
Date: Sun, 29 Nov 2026 01:50
21 lines
2679 bytes
2679 bytes
On Sun, Nov 29, 2026 at 01:27:56AM +0000, Chris Bainbridge wrote: > - The exec side is detectable before handoff: a PT_INTERP program header > means the loader will honour LD_PRELOAD (set-id and file-capability > binaries being the exceptions, cf. #544471), so libfakeroot can name the > binary and optionally refuse the exec, letting CI fail at the boundary > instead of three build steps later. We keep that opt-in > (FAKEROOT_EXEC_POLICY=fail) and it is what would have made our original > failure say what actually happened. A patch for this sounds fine. > - The serve side can compare faked's cached permission bits with the fresh > real stat and warn when they disagree (a static chmod, for example). > Warn-only, because a legitimate in-place modifier can change the bits; > it cannot catch the same-mode reuse above, for the reason in the first > paragraph. Warn how, exactly? >Happy to send either as a patch, or as a description only -- we are not >assuming you want the extra wrapped functions upstream.
Technical Details
Message-ID:
<O4Cdb-eMC1-5@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomodReferences:
<O4Cdb-eMC1-7@gated-at.bofh.it> <O4Cdb-eMC1-7@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod From: Clint Adams <clint@debian.org> Newsgroups: linux.debian.bugs.dist Subject: Bug#1155720: fakeroot: stale ownership served silently after inode reuse by static binary Date: Sun, 29 Nov 2026 02:50:01 +0100 Message-ID: <O4Cdb-eMC1-5@gated-at.bofh.it> References: <O4Cdb-eMC1-7@gated-at.bofh.it> <O4Cdb-eMC1-7@gated-at.bofh.it> X-Original-To: Chris Bainbridge <chris.bainbridge@canonical.com>, 1155720@bugs.debian.org X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Sun Nov 29 01:43:07 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.7 Reply-To: Clint Adams <clint@debian.org>, 1155720@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: clint@debian.org X-Debian-Pr-Message: followup 1155720 X-Debian-Pr-Package: fakeroot X-Debian-Pr-Source: fakeroot MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline X-Debian-User: clint X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2005750 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 21 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sun, 29 Nov 2026 01:40:02 +0000 X-Original-Message-ID: <awuCclPB5NIFQW2V@scru.org> X-Original-References: <awt_YnZmKeVxi4sB@px13> <awt_YnZmKeVxi4sB@px13>