[meta-selinux] selinux-*.service: install to sysinit.target

Submitted by Yi Zhao on July 30, 2020, 6:50 a.m. | Patch ID: 174893

Details

Message ID 20200730065036.29004-1-yi.zhao@windriver.com
State New
Headers show

Commit Message

Yi Zhao July 30, 2020, 6:50 a.m.
The selinux-init/autorelabel/labeldev services have a constraint of
Before=sysinit.arget. So it is better to install them to sysinit.target
rather than multi-user.target.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
 .../selinux/selinux-autorelabel/selinux-autorelabel.service     | 2 +-
 recipes-security/selinux/selinux-init/selinux-init.service      | 2 +-
 .../selinux/selinux-labeldev/selinux-labeldev.service           | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

Patch hide | download patch | download mbox

diff --git a/recipes-security/selinux/selinux-autorelabel/selinux-autorelabel.service b/recipes-security/selinux/selinux-autorelabel/selinux-autorelabel.service
index 9520f6e..3c2a576 100644
--- a/recipes-security/selinux/selinux-autorelabel/selinux-autorelabel.service
+++ b/recipes-security/selinux/selinux-autorelabel/selinux-autorelabel.service
@@ -8,4 +8,4 @@  Type=oneshot
 ExecStart=/usr/bin/selinux-autorelabel.sh
 
 [Install]
-WantedBy=multi-user.target
+WantedBy=sysinit.target
diff --git a/recipes-security/selinux/selinux-init/selinux-init.service b/recipes-security/selinux/selinux-init/selinux-init.service
index 49c6d98..91b3e72 100644
--- a/recipes-security/selinux/selinux-init/selinux-init.service
+++ b/recipes-security/selinux/selinux-init/selinux-init.service
@@ -9,4 +9,4 @@  Type=oneshot
 ExecStart=/usr/bin/selinux-init.sh
 
 [Install]
-WantedBy=multi-user.target
+WantedBy=sysinit.target
diff --git a/recipes-security/selinux/selinux-labeldev/selinux-labeldev.service b/recipes-security/selinux/selinux-labeldev/selinux-labeldev.service
index d45ecbc..96142a3 100644
--- a/recipes-security/selinux/selinux-labeldev/selinux-labeldev.service
+++ b/recipes-security/selinux/selinux-labeldev/selinux-labeldev.service
@@ -8,4 +8,4 @@  Type=oneshot
 ExecStart=/usr/bin/selinux-labeldev.sh
 
 [Install]
-WantedBy=multi-user.target
+WantedBy=sysinit.target