infra: fix leak of container_file_t to installer image in lorax#6927
infra: fix leak of container_file_t to installer image in lorax#6927rvykydal merged 1 commit intorhinstaller:mainfrom
Conversation
Summary of ChangesHello @rvykydal, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request resolves critical issues stemming from the unintended propagation of Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
|
/kickstart-test selinux-contexts |
There was a problem hiding this comment.
Code Review
This pull request aims to fix an issue with SELinux context (container_file_t) leaking into the installer image by configuring lorax to exclude SELinux extended attributes. While the technical approach to solving the problem appears correct, the change has been made to a generated file (dockerfile/anaconda-iso-creator/lorax-build) instead of its source template (dockerfile/anaconda-iso-creator/lorax-build.j2). This is a critical issue because the changes will be overwritten. The modifications must be moved to the template file to be effective and permanent.
863e2ba to
2be3d29
Compare
|
/kickstart-test selinux-contexts |
|
@bcl do you think this approach to weldr/lorax#1506 makes sense? |
If it works :) I'm just glad you found something, I wouldn't have thought of that one. |
|
/kickstart-test --testtype smoke |
Fix leaking of container_file_t to installer image when building installer image (boot.iso) in our anaconda-iso-creator container. Currently these images are built in anaconda CI for running kickstart tests on PR and for daily kickstart tests in kickstart-tests repository for daily-iso image scenario. container_file_t (unlike the mock_var_lib_t which is used when lorax is not run in container) can't be restored at the end of installation with restorecon unless -F option is used (Otherwise it would not be applied with "not reset as customized by admin" message.) Anaconda restores the contexts at the end of installation to fix for example lables of configuration files copied from installer environment. An example can be /etc/X11/xorg.conf.d/00-keyboad.conf for which we hit the issue with container-file_t in INSTALLER-4605 on rhel-9. On Fedora we are hitting another issue INSTALLER-4592. Resolves: INSTALLER-4609 Related: INSTALLER-4592
2be3d29 to
b9fa302
Compare
|
/kickstart-test selinux-contexts |
|
/kickstart-test --testtype smoke |
Fix leaking of
container_file_tto installer image when building installer image (boot.iso) in our anaconda-iso-creator container. Currently these images are built in anaconda CI for running kickstart tests on PR and for daily kickstart tests in kickstart-tests repository for daily-iso image scenario.container_file_t(unlike themock_var_lib_twhich is used when lorax is not run in container) can't be restored at the end of installation withrestoreconunless-Foption is used (Otherwise it would not be applied with "not reset as customized by admin" message.)Anaconda restores the contexts at the end of installation to fix for example lables of configuration files copied from installer environment. An example can be
/etc/X11/xorg.conf.d/00-keyboad.conffor which we hit the issue with container-file_t in INSTALLER-4605 on rhel-9.On Fedora we are hitting another issue INSTALLER-4592.
Resolves: INSTALLER-4609
Related: INSTALLER-4592
https://issues.redhat.com/browse/INSTALLER-4609