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

chroot: add disable_root_check option #7099

Merged
merged 4 commits into from
Aug 14, 2023
Merged

chroot: add disable_root_check option #7099

merged 4 commits into from
Aug 14, 2023

Conversation

new-sashok724
Copy link
Contributor

@new-sashok724 new-sashok724 commented Aug 12, 2023

SUMMARY

Some chroot executables, like arch-chroot, support unshare mode (-N), which does not require root. This PR adds an option to disable the root check in the chroot connection plugin.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

plugins/connection/chroot.py

ADDITIONAL INFORMATION

@ansibullbot ansibullbot added connection connection plugin feature This issue/PR relates to a feature request new_contributor Help guide this first time contributor plugins plugin (any type) labels Aug 12, 2023
Copy link
Collaborator

@felixfontein felixfontein left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution! Please add a changelog fragment. Thanks.

plugins/connection/chroot.py Show resolved Hide resolved
@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-7 Automatically create a backport for the stable-7 branch labels Aug 12, 2023
new-sashok724 and others added 2 commits August 12, 2023 11:23
Co-authored-by: Felix Fontein <felix@fontein.de>
@new-sashok724
Copy link
Contributor Author

Added.

@ansibullbot ansibullbot added the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR label Aug 12, 2023
Co-authored-by: Felix Fontein <felix@fontein.de>
@felixfontein
Copy link
Collaborator

The remaining CI failures are unrelated.

Looks good to me, if nobody objects I'll merge this on Monday.

@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label Aug 14, 2023
@felixfontein felixfontein merged commit bf728aa into ansible-collections:main Aug 14, 2023
149 of 151 checks passed
@patchback
Copy link

patchback bot commented Aug 14, 2023

Backport to stable-7: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-7/bf728aadfb9f0bc3f88e57f6e8c3c3ff428c1a1e/pr-7099

Backported as #7111

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

@felixfontein
Copy link
Collaborator

@new-sashok724 thanks for your contribution!

patchback bot pushed a commit that referenced this pull request Aug 14, 2023
* Initial commit

* Update plugins/connection/chroot.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* Add changelog fragment

* Update changelogs/fragments/7099-chroot-disable-root-check-option.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Сашка724ая <git@sashok724.net>
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit bf728aa)
felixfontein pushed a commit that referenced this pull request Aug 14, 2023
…k` option (#7111)

chroot: add `disable_root_check` option (#7099)

* Initial commit

* Update plugins/connection/chroot.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* Add changelog fragment

* Update changelogs/fragments/7099-chroot-disable-root-check-option.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Сашка724ая <git@sashok724.net>
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit bf728aa)

Co-authored-by: Сашка724ая <github@sashok724.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-7 Automatically create a backport for the stable-7 branch connection connection plugin feature This issue/PR relates to a feature request needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR new_contributor Help guide this first time contributor plugins plugin (any type)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants