Blame SOURCES/scap-security-guide-0.1.55-add_selector_for_R29-PR_6553.patch

b5e178
From 4d67a36c0a07ef8e07b8760b0e883bd42c0177ec Mon Sep 17 00:00:00 2001
b5e178
From: Watson Sato <wsato@redhat.com>
b5e178
Date: Thu, 21 Jan 2021 11:04:05 +0100
b5e178
Subject: [PATCH] Add variable selector and notes for R29
b5e178
b5e178
---
b5e178
 controls/anssi.yml | 14 +++++++++++++-
b5e178
 1 file changed, 13 insertions(+), 1 deletion(-)
b5e178
b5e178
diff --git a/controls/anssi.yml b/controls/anssi.yml
b5e178
index dec9d68c99..3303d70295 100644
b5e178
--- a/controls/anssi.yml
b5e178
+++ b/controls/anssi.yml
b5e178
@@ -521,10 +521,22 @@ controls:
b5e178
     description: >-
b5e178
       Remote user sessions (shell access, graphical clients) must be closed
b5e178
       after a certain period of inactivity.
b5e178
+    notes: >-
b5e178
+      There is no specific capability to check remote user inactivity, but some shells allow the
b5e178
+      session inactivity time out to be configured via TMOUT variable.
b5e178
+      In OpenSSH < 8.2 the inactivity of the user is implied from the network inactivity.
b5e178
+      The server is configured to disconnect sessions if no data has been received within the idle timeout,
b5e178
+      regardless of liveness status (ClientAliveCountMax is 0 and ClientAliveInterval is > 0).
b5e178
+      In OpenSSH >= 8.2 there is no way to disconnect sessions based on client liveness.
b5e178
+      The semantics of "ClientAliveCountMax 0" has changed from "disconnect on first timeout" to
b5e178
+      "don't disconnect network inactive sessions". The server either probes for the client liveness
b5e178
+      or keeps inactive sessions connected.
b5e178
+    automated: yes
b5e178
     rules:
b5e178
     - accounts_tmout
b5e178
+    - var_accounts_tmout=10_min
b5e178
     - sshd_set_idle_timeout
b5e178
-    - sshd_idle_timeout_value=5_minutes
b5e178
+    - sshd_idle_timeout_value=10_minutes
b5e178
     - sshd_set_keepalive
b5e178
 
b5e178
   - id: R30