Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 912994 - sys-auth/polkit: pkexec doesn't completely respect working directories
Summary: sys-auth/polkit: pkexec doesn't completely respect working directories
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-25 09:28 UTC by Neko-san
Modified: 2023-08-28 22:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Emerge Info (polkit-emerge-info.log,10.15 KB, text/x-log)
2023-08-25 09:28 UTC, Neko-san
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Neko-san 2023-08-25 09:28:41 UTC
Created attachment 868675 [details]
Emerge Info

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 context; an example:

cd /tmp
pkexec mkdir -p somefolder/subfolder

Will 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
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-08-28 15:29:14 UTC
Please report this upstream and link it here.
Comment 2 Neko-san 2023-08-28 22:04:42 UTC
Here's the new upstream report:
https://gitlab.freedesktop.org/polkit/polkit/-/issues/204