Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New elevated privilege system #484

Closed

Conversation

zeno-endemann-kdab
Copy link
Contributor

This is currently only very minimally tested

For running perf with pkexec we need to get the full path to the binary,
so handle this consistently. This has the nice side effect of showing
clearly which perf binary is being used in the output console.
The new previlige handling will call perf directly without a helper, so
KAuth does not make sense for that anymore.
Instead of using a script that changes system configuration temporarily,
just run perf as root.

To properly synchronize with a launched app (that should not run as root),
launch the app in a separate, initially stopped process, and use the
control fifo feature of perf to properly synchronize with it.

The control fifos are also needed to be able to stop sudo-perf, as one
does not have permission to SIGINT it anymore.
Copy link
Member

@milianw milianw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great thanks, here's just some code review. I'll test the functionality in the next days

src/elevateprivilegeshelper.cpp Show resolved Hide resolved
src/perfrecord.cpp Show resolved Hide resolved
src/perfrecord.cpp Show resolved Hide resolved
src/elevateprivilegeshelper.h Show resolved Hide resolved
src/elevateprivilegeshelper.h Show resolved Hide resolved
src/elevateprivilegeshelper.cpp Show resolved Hide resolved
src/elevateprivilegeshelper.cpp Show resolved Hide resolved
src/elevateprivilegeshelper.cpp Show resolved Hide resolved
src/elevateprivilegeshelper.cpp Show resolved Hide resolved
src/elevateprivilegeshelper.cpp Show resolved Hide resolved
@lievenhey
Copy link
Contributor

lets continue the discussion in the update pr #493

@lievenhey lievenhey closed this Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants