SHA256
1
0
forked from pool/systemd

Accepting request 1179036 from Base:System

- Add 5003-Revert-run-pass-the-pty-slave-fd-to-transient-servic.patch
  This revert the backport of the broken commit 28459ba1f4df until a fix is
  released in the v255-stable tree (see pr#33216).

- Rename PAM config file 'systemd-user' into 'pam.systemd-user'.

OBS-URL: https://build.opensuse.org/request/show/1179036
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=425
This commit is contained in:
Ana Guerrero 2024-06-07 13:02:34 +00:00 committed by Git OBS Bridge
commit b561cb9600
4 changed files with 56 additions and 3 deletions

View File

@ -0,0 +1,39 @@
From 51f4a0be4895bedbde9b23339a5953d965411334 Mon Sep 17 00:00:00 2001
From: Franck Bui <fbui@suse.com>
Date: Thu, 6 Jun 2024 15:15:56 +0200
Subject: [PATCH 5003/5003] Revert "run: pass the pty slave fd to transient
service"
This reverts commit 182b80bede28ef6e9c0d0edd34c56a467d22dee5.
---
src/run/run.c | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/src/run/run.c b/src/run/run.c
index 14cc9f9514..4c4a76638d 100644
--- a/src/run/run.c
+++ b/src/run/run.c
@@ -808,17 +808,11 @@ static int transient_service_set_properties(sd_bus_message *m, const char *pty_p
}
if (pty_path) {
- _cleanup_close_ int pty_slave = -EBADF;
-
- pty_slave = open_terminal(pty_path, O_RDWR|O_NOCTTY|O_CLOEXEC);
- if (pty_slave < 0)
- return pty_slave;
-
r = sd_bus_message_append(m,
"(sv)(sv)(sv)(sv)",
- "StandardInputFileDescriptor", "h", pty_slave,
- "StandardOutputFileDescriptor", "h", pty_slave,
- "StandardErrorFileDescriptor", "h", pty_slave,
+ "StandardInput", "s", "tty",
+ "StandardOutput", "s", "tty",
+ "StandardError", "s", "tty",
"TTYPath", "s", pty_path);
if (r < 0)
return bus_log_create_error(r);
--
2.35.3

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Thu Jun 6 13:18:29 UTC 2024 - Franck Bui <fbui@suse.com>
- Add 5003-Revert-run-pass-the-pty-slave-fd-to-transient-servic.patch
This revert the backport of the broken commit 28459ba1f4df until a fix is
released in the v255-stable tree (see pr#33216).
-------------------------------------------------------------------
Fri May 31 12:49:46 UTC 2024 - Franck Bui <fbui@suse.com>
- Rename PAM config file 'systemd-user' into 'pam.systemd-user'.
-------------------------------------------------------------------
Fri May 31 11:37:10 UTC 2024 - Franck Bui <fbui@suse.com>

View File

@ -195,7 +195,6 @@ Obsoletes: suspend <= 1.0
Obsoletes: systemd-analyze < 201
Source0: systemd-v%{version}%{archive_version}.tar.xz
Source1: systemd-rpmlintrc
Source2: systemd-user
Source3: systemd-update-helper
%if %{with sysvcompat}
Source4: systemd-sysv-install
@ -203,6 +202,7 @@ Source4: systemd-sysv-install
Source5: tmpfiles-suse.conf
Source6: baselibs.conf
Source7: triggers.systemd
Source8: pam.systemd-user
Source14: kbd-model-map.legacy
Source100: fixlet-container-post.sh
@ -247,6 +247,7 @@ Patch: 0008-sysv-generator-translate-Required-Start-into-a-Wants.patch
# will be removed as soon as a proper fix will be merged by upstream.
Patch: 5001-Revert-udev-update-devlink-with-the-newer-device-nod.patch
Patch: 5002-Revert-udev-revert-workarounds-for-issues-caused-by-.patch
Patch: 5003-Revert-run-pass-the-pty-slave-fd-to-transient-servic.patch
%endif
%description
@ -927,8 +928,8 @@ mkdir -p %{buildroot}%{_modulesloaddir}
rm -rf %{buildroot}%{_sysconfdir}/systemd/system/*.target.{requires,wants}
rm -f %{buildroot}%{_sysconfdir}/systemd/system/default.target
# Replace upstream systemd-user with the openSUSE one.
install -m0644 -D --target-directory=%{buildroot}%{_pam_vendordir} %{SOURCE2}
# Replace upstream PAM configuration files with openSUSE ones.
install -m0644 -D %{SOURCE8} %{buildroot}%{_pam_vendordir}/systemd-user
# Don't enable wall ask password service, it spams every console (bnc#747783).
rm %{buildroot}%{_unitdir}/multi-user.target.wants/systemd-ask-password-wall.path