public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Siteshwar Vashisht <svashisht@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/bash] rawhide: Add message to syslog if user gets logged out
Date: Wed, 04 Nov 2026 12:29:06 GMT	[thread overview]
Message-ID: <179379534680.1.525454536237466348.rpms-bash-089036c4d025@fedoraproject.org> (raw)

            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

                 reply	other threads:[~2026-11-04 12:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179379534680.1.525454536237466348.rpms-bash-089036c4d025@fedoraproject.org \
    --to=svashisht@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox