]> sourceware.org Git - systemtap.git/commit
PR23512: fix staprun/stapio operation via less-than-root privileges
authorFrank Ch. Eigler <fche@redhat.com>
Mon, 14 Dec 2020 02:05:23 +0000 (21:05 -0500)
committerFrank Ch. Eigler <fche@redhat.com>
Mon, 14 Dec 2020 02:05:23 +0000 (21:05 -0500)
commite3d03db82853049f65f16dc40c03f3f7f617ffb5
treea0af7074ea00dd16939e33c72cf532c08ca6431f
parent341bf33f14062269c52bcebaa309518d9972ca00
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.
staprun/ctl.c
This page took 0.022774 seconds and 5 git commands to generate.