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

Fix selinux for vtoycow in CreatePersistentImg.sh #2651

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

0xF4CED
Copy link
Contributor

@0xF4CED 0xF4CED commented Nov 10, 2023

Label the overlayfs root directory in vtoycow imgs with the appropriate selinux context type to enable booting without disabling selinux.

Note

There will still be issues with selinux when you start digging into the system, e.g. installing packages. But booting and basic usage works fine, and you can disable selinux/enforcing from there when necessary.

@0xF4CED
Copy link
Contributor Author

0xF4CED commented Nov 10, 2023

This could also be done more elegantly at runtime, however I was not able to find code related to the initialization of the vtoyoverlayfs in this repo + I am assuming that chcon isn't available in the init environment. WDYT @ventoy

Label the overlayfs root directory in vtoycow imgs with the appropriate selinux context to enable booting without disabling selinux.
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.

1 participant