From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D50D7388E823; Fri, 29 Jan 2021 10:43:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D50D7388E823 From: "craig.ringer at 2ndquadrant dot com" To: systemtap@sourceware.org Subject: [Bug runtime/27224] stap 4.4 'cannot attach to module' in debugfs mode as non-root (WITH WORKAROUND) Date: Fri, 29 Jan 2021 10:43:18 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: runtime X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: craig.ringer at 2ndquadrant dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: systemtap@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Systemtap mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jan 2021 10:43:18 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27224 Craig Ringer changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|WAITING |RESOLVED --- Comment #6 from Craig Ringer --- That's ``` commit e3d03db82 Author: Frank Ch. Eigler Date: Sun Dec 13 21:05:23 2020 -0500 PR23512: fix staprun/stapio operation via less-than-root privileges Commit 7615cae790c899bc8a82841c75c8ea9c6fa54df3 for PR26665 introduced a regression in handling stapusr/stapdev/stapsys gid invocation of staprun/stapio. This patch simplifies the relevant code in staprun/ctl.c, init_ctl_channel(), to rely on openat/etc. to populate and use the relay_basedir_fd as much as possible. Also, we now avoid unnecessary use of access(), which was checking against the wrong (real rather than effective) uid/gid. ``` and sounds about right. Fine to close this. Workaround is documented by this bug now. *** This bug has been marked as a duplicate of bug 27067 *** --=20 You are receiving this mail because: You are the assignee for the bug.=