Skip to content

Validate the bind-propagation option to --mount#24124

Merged
openshift-merge-bot[bot] merged 1 commit intocontainers:mainfrom
mheon:validate_bind_propagation
Oct 4, 2024
Merged

Validate the bind-propagation option to --mount#24124
openshift-merge-bot[bot] merged 1 commit intocontainers:mainfrom
mheon:validate_bind_propagation

Conversation

@mheon
Copy link
Copy Markdown
Member

@mheon mheon commented Oct 1, 2024

Similar to github.com/containers/buildah/pull/5761 but not security critical as Podman does not have an expectation that mounts are scoped (the ability to write a --mount option is already the ability to mount arbitrary content into the container so sneaking arbitrary options into the mount doesn't have security implications). Still, bad practice to let users inject anything into the mount command line so let's not do that.

Does this PR introduce a user-facing change?

NONE

@openshift-ci openshift-ci bot added release-note-none approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Oct 1, 2024
@rhatdan
Copy link
Copy Markdown
Member

rhatdan commented Oct 2, 2024

LGTM but test not happy.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

not blocking but I would just log arg and then remove the for bind-propagation part.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

s/bind_propagation/bind-propagation

@mheon mheon force-pushed the validate_bind_propagation branch 2 times, most recently from 2a263d0 to a8c046c Compare October 4, 2024 12:36
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Note I specifically said arg not value because then it says bind-propagation=fake in the error and not just fake which may be harder to spot the error if there are a lot of mount options given

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ah, that makes more sense

Similar to github.com/containers/buildah/pull/5761 but not
security critical as Podman does not have an expectation that
mounts are scoped (the ability to write a --mount option is
already the ability to mount arbitrary content into the container
so sneaking arbitrary options into the mount doesn't have
security implications). Still, bad practice to let users inject
anything into the mount command line so let's not do that.

Signed-off-by: Matt Heon <mheon@redhat.com>
@mheon mheon force-pushed the validate_bind_propagation branch from a8c046c to 985b57d Compare October 4, 2024 13:07
@mheon
Copy link
Copy Markdown
Member Author

mheon commented Oct 4, 2024

Two flakes, I think? Restarted both.

@mheon
Copy link
Copy Markdown
Member Author

mheon commented Oct 4, 2024

Ready for merge

Copy link
Copy Markdown
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 4, 2024
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Oct 4, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Luap99, mheon

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit e9e9f7e into containers:main Oct 4, 2024
@stale-locking-app stale-locking-app bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Jan 3, 2025
@stale-locking-app stale-locking-app bot locked as resolved and limited conversation to collaborators Jan 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. release-note-none

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants