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: Allow Podman machine create with root privileges #2427

Merged
merged 2 commits into from
May 10, 2023

Conversation

jeffmaury
Copy link
Contributor

Fixes #2078

What does this PR do?

Add a new flag to allow Podman machine to be created with root privileges

Screenshot/screencast of this PR

image

What issues does this PR fix or reference?

Fixes #2078

How to test this PR?

  • Create a new Podman machine with the new flag enabled
  • Verify the machine is rootful

Fixes containers#2078

Signed-off-by: Jeff MAURY <jmaury@redhat.com>
@jeffmaury jeffmaury requested review from a team and benoitf as code owners May 10, 2023 11:27
@jeffmaury jeffmaury requested review from cdrage and removed request for a team May 10, 2023 11:27
},
"podman.factory.machine.rootful": {
"type": "boolean",
"scope": "ContainerProviderConnectionFactory",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
"scope": "ContainerProviderConnectionFactory",
"scope": "ContainerProviderConnectionFactory",
"default": true,

If I remember, we wanted to have rootful machines by default (as on macOS/Windows there is already a VM doing isolation) and it works better (less limitation in rootful environment)

spyExecPromise.mockImplementation(() => {
return Promise.resolve('');
});
extension.createMachine(
Copy link
Collaborator

Choose a reason for hiding this comment

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

FYI sonar error:
image

Signed-off-by: Jeff MAURY <jmaury@redhat.com>
@benoitf benoitf enabled auto-merge (rebase) May 10, 2023 18:54
@benoitf benoitf merged commit 124c569 into containers:main May 10, 2023
@podman-desktop-bot podman-desktop-bot added this to the 0.16.0 milestone May 10, 2023
@jeffmaury jeffmaury deleted the GH-2078 branch May 11, 2023 10:17
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.

Provide an option to start podman machine with a root priviledges
3 participants