2025-04-29 12:54:06 +05:30
|
|
|
From 3f0d624c5af89fc9ebe81d92351d8ac8e7583997 Mon Sep 17 00:00:00 2001
|
2025-01-30 11:33:11 +00:00
|
|
|
From: Alice Brooks <alice.brooks@suse.com>
|
2025-04-29 12:54:06 +05:30
|
|
|
Date: Mon, 28 Apr 2025 12:40:31 +0530
|
|
|
|
Subject: [PATCH] Remove DynamicUser setting as these conflict with real users
|
2025-01-30 11:33:11 +00:00
|
|
|
|
|
|
|
Real users are having to be created due to Leap15.6's nsswitch not
|
|
|
|
containing systemd, so dynamic users cannot be resolved inter
|
|
|
|
service due to this we must manually create the users postinstall
|
2025-04-29 12:54:06 +05:30
|
|
|
|
|
|
|
Co-authored-by: Luna D Dragon <luna.dragon@suse.com>
|
2025-01-30 11:33:11 +00:00
|
|
|
---
|
2025-04-29 12:54:06 +05:30
|
|
|
src/systemd/cockpit-wsinstance-http.service.in | 4 +++-
|
|
|
|
src/systemd/cockpit-wsinstance-https@.service.in | 4 +++-
|
|
|
|
src/systemd/cockpit.service.in | 4 +++-
|
|
|
|
3 files changed, 9 insertions(+), 3 deletions(-)
|
2025-01-30 11:33:11 +00:00
|
|
|
|
|
|
|
diff --git a/src/systemd/cockpit-wsinstance-http.service.in b/src/systemd/cockpit-wsinstance-http.service.in
|
2025-04-29 12:54:06 +05:30
|
|
|
index 539b90345..dfc9f3b1b 100644
|
2025-01-30 11:33:11 +00:00
|
|
|
--- a/src/systemd/cockpit-wsinstance-http.service.in
|
|
|
|
+++ b/src/systemd/cockpit-wsinstance-http.service.in
|
2025-04-29 12:54:06 +05:30
|
|
|
@@ -7,7 +7,9 @@ After=cockpit-session.socket
|
2025-01-30 11:33:11 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
ExecStart=@libexecdir@/cockpit-ws --no-tls --port=0
|
|
|
|
-DynamicUser=yes
|
|
|
|
+DynamicUser=no
|
2025-04-29 12:54:06 +05:30
|
|
|
+PrivateTmp=yes
|
|
|
|
+ProtectHome=yes
|
2025-01-30 11:33:11 +00:00
|
|
|
Group=cockpit-session-socket
|
|
|
|
|
|
|
|
PrivateDevices=yes
|
|
|
|
diff --git a/src/systemd/cockpit-wsinstance-https@.service.in b/src/systemd/cockpit-wsinstance-https@.service.in
|
2025-04-29 12:54:06 +05:30
|
|
|
index f66c9f874..3c07bb9a7 100644
|
2025-01-30 11:33:11 +00:00
|
|
|
--- a/src/systemd/cockpit-wsinstance-https@.service.in
|
|
|
|
+++ b/src/systemd/cockpit-wsinstance-https@.service.in
|
2025-04-29 12:54:06 +05:30
|
|
|
@@ -8,7 +8,9 @@ After=cockpit-session.socket
|
2025-01-30 11:33:11 +00:00
|
|
|
[Service]
|
|
|
|
Slice=system-cockpithttps.slice
|
|
|
|
ExecStart=@libexecdir@/cockpit-ws --for-tls-proxy --port=0
|
|
|
|
-DynamicUser=yes
|
|
|
|
+DynamicUser=no
|
2025-04-29 12:54:06 +05:30
|
|
|
+PrivateTmp=yes
|
|
|
|
+ProtectHome=yes
|
2025-01-30 11:33:11 +00:00
|
|
|
Group=cockpit-session-socket
|
|
|
|
|
|
|
|
PrivateDevices=yes
|
|
|
|
diff --git a/src/systemd/cockpit.service.in b/src/systemd/cockpit.service.in
|
2025-04-29 12:54:06 +05:30
|
|
|
index 97adda221..4b496fd3a 100644
|
2025-01-30 11:33:11 +00:00
|
|
|
--- a/src/systemd/cockpit.service.in
|
|
|
|
+++ b/src/systemd/cockpit.service.in
|
2025-04-29 12:54:06 +05:30
|
|
|
@@ -10,7 +10,9 @@ After=cockpit-wsinstance-http.socket cockpit-wsinstance-https-factory.socket
|
2025-01-30 11:33:11 +00:00
|
|
|
RuntimeDirectory=cockpit/tls
|
|
|
|
ExecStartPre=+@libexecdir@/cockpit-certificate-ensure --for-cockpit-tls
|
|
|
|
ExecStart=@libexecdir@/cockpit-tls
|
|
|
|
-DynamicUser=yes
|
|
|
|
+DynamicUser=no
|
2025-04-29 12:54:06 +05:30
|
|
|
+PrivateTmp=yes
|
|
|
|
+ProtectHome=yes
|
2025-01-30 11:33:11 +00:00
|
|
|
# otherwise systemd uses 'cockpit' even if it exists as a normal user account
|
|
|
|
User=cockpit-systemd-service
|
|
|
|
Group=cockpit-wsinstance-socket
|
|
|
|
--
|
2025-04-29 12:54:06 +05:30
|
|
|
2.49.0
|
2025-01-30 11:33:11 +00:00
|
|
|
|