-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkexec: Use realpath when comparing org.freedesktop.policykit.exec.path
This changes the pkexec path that is compared from the original supplied path to the path resolved by realpath(3). That means that "/bin/something" might now be matched as "/usr/bin/something", a review of your <annotate key="org.freedesktop.policykit.exec.path"> actions might be in order. Fixes: #194 See also: systemd/systemd#34714
- Loading branch information
Showing
2 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9aa43e0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, seems like _POSIX_C_SOURCE >= 200809L is too new for Alpine, breaking our CI, which I hadn't noticed before merging. I'll investigate it later today.
9aa43e0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIUC, the issue here is that glibc defines
_POSIX_C_SOURCE
itself if not defined, whereas musl doesn't this:glibc:
musl:
So, again IIUC, to make this work we'd have to define this feature macro ourselves (i.e. throw it next to our
_GNU_SOURCE
definition here in meson.build) to make this work properly.