public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/bash] rawhide: Add message to syslog if user gets logged out
@ 2026-11-04 12:29 Siteshwar Vashisht
  0 siblings, 0 replies; only message in thread
From: Siteshwar Vashisht @ 2026-11-04 12:29 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/bash
            Branch : rawhide
            Commit : 089036c4d025cc87efd1d84dd0a2ca32383eb120
            Author : Siteshwar Vashisht <svashisht@redhat.com>
            Date   : 2026-11-03T15:11:31+01:00
            Stats  : +34/-1 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/bash/c/089036c4d025cc87efd1d84dd0a2ca32383eb120?branch=rawhide

            Log:
            Add message to syslog if user gets logged out

... due to expired timeout.

Resolves: #2565790

---
diff --git a/bash-5.4-tmout-syslog-history.patch b/bash-5.4-tmout-syslog-history.patch
new file mode 100644
index 0000000..fbfb3f7
--- /dev/null
+++ b/bash-5.4-tmout-syslog-history.patch
@@ -0,0 +1,25 @@
+diff --git a/bashhist.h b/bashhist.h
+--- a/bashhist.h
++++ b/bashhist.h
+@@ -72,6 +72,7 @@ extern void bash_clear_history (void);
+ extern int bash_delete_histent (int);
+ extern int bash_delete_history_range (int, int);
+ extern int bash_delete_last_history (void);
++extern void bash_syslog_history (const char *);
+ extern void load_history (void);
+ extern void save_history (void);
+ extern char *bash_default_histfile (void);
+diff --git a/eval.c b/eval.c
+--- a/eval.c
++++ b/eval.c
+@@ -261,6 +261,10 @@ alrm_catcher(int i)
+   msg = _("\007timed out waiting for input: auto-logout\n");
+   write (1, msg, strlen (msg));
+ 
++#if defined (SYSLOG_HISTORY)
++  bash_syslog_history (msg);
++#endif
++
+   bash_logout ();	/* run ~/.bash_logout if this is a login shell */
+   jump_to_top_level (EXITPROG);
+   SIGRETURN (0);

diff --git a/bash.spec b/bash.spec
index e75ab9e..99d1f5a 100644
--- a/bash.spec
+++ b/bash.spec
@@ -6,7 +6,7 @@
 Version: %{baseversion}.%{patchlevel}
 Name: bash
 Summary: The GNU Bourne Again shell
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: GPL-3.0-or-later
 Url: https://www.gnu.org/software/bash
 Source0: https://ftp.gnu.org/gnu/bash/bash-%{baseversion}.tar.gz
@@ -86,6 +86,10 @@ Patch128: bash-5.0-syslog-history.patch
 # Enable audit logs
 Patch131: bash-4.3-audit.patch
 
+# [RFE] Add syslog support for TMOUT timeout
+# This patch should be removed during next rebase.
+Patch132: bash-5.4-tmout-syslog-history.patch
+
 BuildRequires:  gcc
 BuildRequires: texinfo bison
 BuildRequires: ncurses-devel
@@ -323,6 +327,10 @@ end
 %{_libdir}/pkgconfig/%{name}.pc
 
 %changelog
+* Tue Nov 03 2026 Siteshwar Vashisht <svashisht@redhat.com> - 5.3.20-2
+- Add message to syslog if user gets logged out due to expired timeout
+  Resolves: #2565790
+
 * Tue Oct 06 2026 Siteshwar Vashisht <svashisht@redhat.com> - 5.3.20-1
 - Update to bash-5.3 patchlevel 20
   Resolves: #2546273

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-04 12:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-04 12:29 [rpms/bash] rawhide: Add message to syslog if user gets logged out Siteshwar Vashisht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox