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

Leaked selinux policy store files to the image root directory #596

Closed
pothos opened this issue Jan 13, 2022 · 2 comments · Fixed by flatcar-archive/coreos-overlay#1565
Closed
Labels
kind/bug Something isn't working

Comments

@pothos
Copy link
Member

pothos commented Jan 13, 2022

Description

These files/directories got added to the images compared to the 3066 Alpha:

+/final
+/mcs
+/mcs/active
+/mcs/active/modules
+/mcs/semanage.read.LOCK
+/mcs/semanage.trans.LOCK
+/mls
+/mls/active
+/mls/active/modules
+/mls/semanage.read.LOCK
+/mls/semanage.trans.LOCK
+/targeted
+/targeted/active
+/targeted/active/modules
+/targeted/semanage.read.LOCK
+/targeted/semanage.trans.LOCK

Impact

Possibly people are confused/concerned

Environment and steps to reproduce

FILE=flatcar_production_image_contents.txt FILESONLY=1 CUTKERNEL=1 CHANNEL_A=alpha CHANNEL_B=alpha ./package-diff 3066.0.0 3115.0.0

Expected behavior

These files should not leak to the rootfs

Additional information

Probably related to the recent selinux policy store fix

@pothos pothos added the kind/bug Something isn't working label Jan 13, 2022
@tormath1
Copy link
Contributor

Issue is fixed in this upstream commit: gentoo/gentoo@54a8322

tormath1 added a commit to flatcar-archive/coreos-overlay that referenced this issue Jan 13, 2022
root needs to be specified with -p instead of -S.
The policy dir (-S) defaults to (-p) + /var/lib/selinux/ + (-s).

Picked from upstream: gentoo/gentoo@54a8322

Closes: flatcar/Flatcar#596
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
tormath1 added a commit to flatcar-archive/coreos-overlay that referenced this issue Jan 13, 2022
root needs to be specified with -p instead of -S.
The policy dir (-S) defaults to (-p) + /var/lib/selinux/ + (-s).

Picked from upstream: gentoo/gentoo@54a8322

Closes: flatcar/Flatcar#596
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
tormath1 added a commit to flatcar-archive/coreos-overlay that referenced this issue Jan 14, 2022
root needs to be specified with -p instead of -S.
The policy dir (-S) defaults to (-p) + /var/lib/selinux/ + (-s).

Picked from upstream: gentoo/gentoo@54a8322

Closes: flatcar/Flatcar#596
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
tormath1 added a commit to flatcar-archive/coreos-overlay that referenced this issue Jan 14, 2022
root needs to be specified with -p instead of -S.
The policy dir (-S) defaults to (-p) + /var/lib/selinux/ + (-s).

Picked from upstream: gentoo/gentoo@54a8322

Closes: flatcar/Flatcar#596
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
pothos pushed a commit to flatcar-archive/coreos-overlay that referenced this issue Jan 25, 2022
root needs to be specified with -p instead of -S.
The policy dir (-S) defaults to (-p) + /var/lib/selinux/ + (-s).

Picked from upstream: gentoo/gentoo@54a8322

Closes: flatcar/Flatcar#596
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
pothos pushed a commit to flatcar-archive/coreos-overlay that referenced this issue Jan 25, 2022
root needs to be specified with -p instead of -S.
The policy dir (-S) defaults to (-p) + /var/lib/selinux/ + (-s).

Picked from upstream: gentoo/gentoo@54a8322

Closes: flatcar/Flatcar#596
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
@pothos pothos changed the title Alpha 3115: leaks selinux policy store files to the image root directory Leaked selinux policy store files to the image root directory Jan 25, 2022
@pothos
Copy link
Member Author

pothos commented Jan 25, 2022

Also newest Stable and Beta got affected but the fix is merged already and will be part of the following releases

t-lo pushed a commit to flatcar/scripts that referenced this issue Apr 13, 2023
root needs to be specified with -p instead of -S.
The policy dir (-S) defaults to (-p) + /var/lib/selinux/ + (-s).

Picked from upstream: gentoo/gentoo@54a8322

Closes: flatcar/Flatcar#596
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants