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

feat(extension): allow to run admin tasks from extensions #4049

Merged
merged 1 commit into from Sep 25, 2023

Conversation

benoitf
Copy link
Collaborator

@benoitf benoitf commented Sep 22, 2023

What does this PR do?

I noticed several extensions have some code to run admin tasks using like sudo-prompt, or pkexec

here it brings a new parameter isAdmin in the exec API so extensions can run admin tasks

it uses for macOS osascript allowing to use touch ID

Screenshot/screencast of this PR

What issues does this PR fix or reference?

pre-req for #2998

How to test this PR?

there are some unit tests but the clients of this API are in
#4050

I noticed several extensions have some code to run admin tasks
using like sudo-prompt, or pkexec

here it brings a new parameter isAdmin in the exec API
so extensions can run admin tasks

it uses for macOS osascript allowing to use touch ID

pre-req of
containers#2998

Signed-off-by: Florent Benoit <fbenoit@redhat.com>
@benoitf benoitf requested a review from a team as a code owner September 22, 2023 14:17
@benoitf benoitf requested review from dgolovin and lstocchi and removed request for a team September 22, 2023 14:17
Copy link
Contributor

@lstocchi lstocchi left a comment

Choose a reason for hiding this comment

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

LGTM

@benoitf benoitf merged commit 12a5716 into containers:main Sep 25, 2023
10 checks passed
@podman-desktop-bot podman-desktop-bot added this to the 1.5.0 milestone Sep 25, 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