Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Commit

Permalink
sec-policy/selinux-unconfined: add flatcar patch
Browse files Browse the repository at this point in the history
this patch set torcx-generator to unconfined type.

Signed-off-by: Mathieu Tortuyaux <[email protected]>
  • Loading branch information
tormath1 committed Aug 2, 2022
1 parent 869a523 commit 01c4e91
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sec-policy/selinux-unconfined/files/torcx.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
diff --git a/policy/modules/system/unconfined.fc b/policy/modules/system/unconfined.fc
index 075d51aa3..cad3c8ab0 100644
--- a/system/unconfined.fc
+++ b/system/unconfined.fc
@@ -24,3 +24,5 @@ ifdef(`distro_debian',`
ifdef(`distro_gentoo',`
/usr/lib/openoffice/program/[^/]+\.bin -- gen_context(system_u:object_r:unconfined_execmem_exec_t,s0)
')
+
+/usr/lib/systemd/system-generators/torcx-generator -- gen_context(system_u:object_r:unconfined_exec_t,s0)
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ MODS="unconfined"

inherit selinux-policy-2

POLICY_PATCH="${FILESDIR}/torcx.patch"

DESCRIPTION="SELinux policy for unconfined"

if [[ ${PV} != 9999* ]] ; then
Expand Down

0 comments on commit 01c4e91

Please sign in to comment.