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

build_sysext: Add SELinux labeling #1147

Open
pothos opened this issue Aug 2, 2023 · 4 comments
Open

build_sysext: Add SELinux labeling #1147

pothos opened this issue Aug 2, 2023 · 4 comments
Labels
area/selinux Issues related to SELinux area/sysext sysext roadmap

Comments

@pothos
Copy link
Member

pothos commented Aug 2, 2023

The build_sysext tool is now used for the OEM and in the future the internal Docker/containerd systemd-sysext image.
For Docker and containerd we need to make sure that the files are correctly labeled for SELinux to work in enforcing mode.

There were attempts to do this with the torcx tar ball but they failed.
Note that the /usr image is also not completely labeled yet https://github.com/flatcar/scripts/blob/1f1a53140cf7b3cbb4d3e8961bce7a44af295ce4/build_library/build_image_util.sh#L775 and that enforcing mode is not expected to work until we update the policy and debug any remaining issues.

@pothos
Copy link
Member Author

pothos commented Jan 2, 2024

The change is prepared as part of flatcar/scripts#1517 (currently not working due to label/policy mismatch in the rest of /usr)

@vielmetti
Copy link

This should also be labelled area/selinux

@tormath1 tormath1 added the area/selinux Issues related to SELinux label Jun 7, 2024
@krishjainx
Copy link

@vielmetti @pothos On nights and weekends, I've been dabbling quite a bit in SELinux policy analysis and generation lately, using LLMs and formal verification—picked up a thing or two along the way. Any chance you could assign this to me? I’d love to take a look at it. Plus, I’m using Flatcar for something right now, so solving this would definitely help me out. And since I wrote build_sysext during my internship, I’ve already got some context :)

@jepio
Copy link
Member

jepio commented Aug 19, 2024

You're welcome to work on it, no one else is currently looking into this. It doesn't require the issue to be assigned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/selinux Issues related to SELinux area/sysext sysext roadmap
Projects
Development

No branches or pull requests

5 participants