From d55a96e8cbbc8d013b6258da304d5c63590e2679 Mon Sep 17 00:00:00 2001 From: Dmitry Sharshakov Date: Sat, 16 Nov 2024 14:04:42 +0100 Subject: [PATCH] refactor: remove SELinux client_u and client_r I added those in the early days of the current policy development, yet there was no use for them. This change simplifies the policy and handling of labels. Signed-off-by: Dmitry Sharshakov --- internal/pkg/selinux/policy/policy.33 | Bin 25413 -> 25197 bytes .../policy/selinux/common/typeattributes.cil | 21 ++++-------------- .../policy/selinux/immutable/roles.cil | 12 ---------- .../selinux/policy/selinux/services/cri.cil | 2 +- .../policy/selinux/services/dashboard.cil | 2 +- .../policy/selinux/services/machined.cil | 2 +- .../selinux/services/system-containerd.cil | 2 +- .../selinux/policy/selinux/services/udev.cil | 2 +- pkg/machinery/constants/constants.go | 6 ++--- 9 files changed, 12 insertions(+), 37 deletions(-) diff --git a/internal/pkg/selinux/policy/policy.33 b/internal/pkg/selinux/policy/policy.33 index dc206fbbdc6ffdd935d7e944feacfb66ced4c376..8abf7cf236969c685e18bf3ab0cf36de34d80cdd 100644 GIT binary patch delta 4084 zcmZ8kU2L0Y6+W-)X7(IsN%Lc;X=A5NvZiSgJ8|Ot+ew`?PGYY~n~tn3cCv+^l_h0M z(IhrGZ~+LUs@=IjLLdYeNPsqmrd@&7PJ$tR1y^X3224oY4KXedLZEP-&+qyCt+s5R z@4V;dIp;j@`+ffT+vbCxnb#`k`L$FF|MmP%^ZjF4BKq2NlYA3h!-qfCKWo;1jv zD! z5R&UFJUDXF%yWKZ+g#%xj-<>S|7GN4WW!^7>*?Lkl@97eljEk;Q|2oxuAo@ z*>qbaNW+wsWfDYKR_v|R>ehsQXde-J#0edf4lGhVd=E*qMM;Di#3Ws_>x(kHJ=Qq| z1=zC8^q1+T5NxC$Xa~QOPFB!od+p4y*7IxRlSzOtXqC3@n6ORzzd|c+iS>d`^=Q?Y z#fSLXwjy12Yj{+u7kfYy`pH`p1O#labw=Vz{``2l3n49~9Li|x0Kt*@&*Ob(5;P^A zh=?+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