From a08d49b0516b85d5a7c47f2a002b20ab57491ae7 Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Mon, 4 Sep 2023 09:44:56 +0200 Subject: [PATCH] Add: New --user-session-limit option The new option --user-session-limit allows limiting the number of logged in sessions per user. --- doc/gsad.8 | 3 +++ doc/gsad.8.xml | 7 +++++++ doc/gsad.html | 5 +++++ src/gsad.c | 7 +++++++ src/gsad_gmp.c | 30 +++++++++++++++++++++++------- src/gsad_http.c | 3 +++ src/gsad_http.h | 1 + src/gsad_session.c | 31 +++++++++++++++++++------------ src/gsad_session.h | 6 +++--- src/gsad_settings.c | 20 ++++++++++++++++++++ src/gsad_settings.h | 6 ++++++ src/gsad_user.c | 26 +++++++++++++++++++++----- 12 files changed, 118 insertions(+), 27 deletions(-) diff --git a/doc/gsad.8 b/doc/gsad.8 index a7a0b935ba..1e05f02024 100644 --- a/doc/gsad.8 +++ b/doc/gsad.8 @@ -101,6 +101,9 @@ Sets the maximum number of connections per ip. Use 0 for unlimited. .BR --http-cors=\fICORS\fR Set Cross-Origin Resource Sharing (CORS) allow origin http header. .TP +.BR --user-session-limit=\fIMAX_SESSIONS\fR +Set maximum number of active sessions per user. 0 for unlimited. +.TP .BR -? ", " --help Show help. .SH EXAMPLES diff --git a/doc/gsad.8.xml b/doc/gsad.8.xml index 3402168081..95dcd8a9c5 100644 --- a/doc/gsad.8.xml +++ b/doc/gsad.8.xml @@ -94,6 +94,13 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.

Do chroot and drop privileges.

+ +