-
Notifications
You must be signed in to change notification settings - Fork 34
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
Revert "config: Enable CONFIG_SECURITY_SELINUX" #58
Conversation
This reverts commit ce7277c. SELinux was enabled for crun-vm's [1] use case of running bootc-install, but the dependency on SELinux was since dropped. Re-disable SELinux to avoid bloat. This has no effect on the x86_64 image since its defconfig includes CONFIG_SECURITY_SELINUX=y, but it should help reduce the aarch64 image size. [1] https://github.com/containers/crun-vm Signed-off-by: Alberto Faria <afaria@redhat.com>
Actually, if this is true I wonder how x86_64 buils at all without the adjustment to the downstream patches. I'm missing something here. |
@albertofaria What are you referring to by "downstream patches"? Are you referring to the patches already applied to the kernel provided by |
Yes. |
We're using Thanks for the PR! |
@slp I see. FWIW I didn't see a reduction in image size when disabling CONFIG_SECURITY_SELINUX. |
I think this was reverted too quickly, it seems that SELinux is a requirement again |
@germag Do you mean it is a requirement for crun-vm specifically, or for bootc install in general? |
|
@albertofaria it seems my issue is unrelated to this PR. |
True:
But containers/bootc#419 seems to indicate that it will eventually be (sufficiently?) tested? |
I have this discussion with Colin about installing with different kernel/kernel feature, I'm not sure if it will be free of issues. Since it doesn't change the kernel size, maybe it's safer to leave it enabled (?) |
This reverts commit ce7277c.
SELinux was enabled for crun-vm's [1] use case of running bootc-install, but the dependency on SELinux was since dropped.
Re-disable SELinux to avoid bloat. This has no effect on the x86_64 image since its defconfig includes CONFIG_SECURITY_SELINUX=y, but it should help reduce the aarch64 image size.
[1] https://github.com/containers/crun-vm