Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4558584

Browse files
committedMar 10, 2025·
selinux: fully disable selinux-awareness for FEATURES="-selinux"
It should be expected that FEATURES="-selinux" will completely disable selinux awareness; the system administrator should be able to recover from a situation where labeling is invalid using portage without having to fully disabling SELinux from being loaded by the kernel. Signed-off-by: Rahul Sandhu <[email protected]>
1 parent 7b9f6ff commit 4558584

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/portage/package/ebuild/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3446,7 +3446,7 @@ def archlist(self):
34463446
def selinux_enabled(self):
34473447
if getattr(self, "_selinux_enabled", None) is None:
34483448
self._selinux_enabled = 0
3449-
if "selinux" in self["USE"].split():
3449+
if "selinux" in self["USE"].split() and "selinux" in self.features:
34503450
if selinux:
34513451
if selinux.is_selinux_enabled() == 1:
34523452
self._selinux_enabled = 1

0 commit comments

Comments
 (0)
Please sign in to comment.