You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pkexec doesn't respect relative commands passed from where the running terminal session is actually ran from
(More on this in the detailed description)
Desired behaviour
pkexec should respect relative parameters given to commands that are elevated by pkexec
Reproducer
# As unprivileged usercd~
pkexec mkdir -p testing/polkit
Detailed description
Running pkexec as a substitute for sudo or doas (I personally use doas but I noticed this behavior about pkexec) causes an issue if you use commands using relative contexts.
In the example above, pkexec actually cause polkit to make folders in /root rather than where the command was ran from; this isn't ideal behavior for an authentication program.
In gitlab.freedesktop.org by N3k0-san on Aug 29, 2023, 24:04
Link to the original issue: https://gitlab.freedesktop.org/polkit/polkit/-/issues/204
Current behaviour, description of the problem
pkexec
doesn't respect relative commands passed from where the running terminal session is actually ran from(More on this in the detailed description)
Desired behaviour
pkexec
should respect relative parameters given to commands that are elevated bypkexec
Reproducer
Detailed description
Running pkexec as a substitute for sudo or doas (I personally use doas but I noticed this behavior about pkexec) causes an issue if you use commands using relative contexts.
In the example above,
pkexec
actually cause polkit to make folders in/root
rather than where the command was ran from; this isn't ideal behavior for an authentication program.Version of polkit: 122
Version of OS: Gentoo (LLVM-OpenRC Profile)
Anything else related to the issue: Associated Gentoo Bug Report
The text was updated successfully, but these errors were encountered: