-
Notifications
You must be signed in to change notification settings - Fork 129
images: Discuss /.autorelabel
#1529
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request adds a documentation section about forcing SELinux relabeling on bootc-managed systems. The new section correctly points out that /.autorelabel
is not supported and suggests using a systemd unit with restorecon
for targeted relabeling. I've identified a typo in the example command and a point of ambiguity that could be clarified to improve the documentation.
Came up in chat. Signed-off-by: Colin Walters <walters@verbum.org>
bccebc8
to
45a65ce
Compare
In QE testing, almost all tests are under the enable selinux env. |
Timely topic. I noticed that if I
Which seems to work because I am then able to login. But presumably, this isn't the ideal approach and is in contrast to the guidance being added by this change. I also know that this isn't really the intended installation method that you would like folks to be using. My use case was more exploratory to understand whether it's possible to in-place upgrade from Rocky 8 to CentOS Stream 10 and how much pain am I willing to endure to do it in-place. If I try to |
In place here means preserving the existing filesystem? It's definitely possible.
Yeah don't do that. We'd need to identify in this case which security contexts are showing up as incorrectly labeled. At the current time a raw As the doc says here only aim to relabel subdirectories of Digging into specific AVC denials is painful, but it's really what needs to be done. |
No worries, I'll reproduce it this week, gather some details and raise a new issue where we can discuss the particulars. Don't want to hijack this thread. |
On the other hand, Can I understand that directories other than the /sysroot directory can be relabeled by the selinux tool? |
We'd need to dig in to what specific directories you're talking about but again in general as the docs say, only |
Came up in chat.