From 817d42dbf502d8ebe6f86ea139c1e185ddd006c2 Mon Sep 17 00:00:00 2001 From: Ilya Pankratov Date: Tue, 4 Jun 2024 09:41:00 +0300 Subject: [PATCH] bugfix: profstats: fix restrict-namespaces max count Signed-off-by: Ilya Pankratov --- src/profstats/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/profstats/main.c b/src/profstats/main.c index ad27bfe79ce..10eee3c4b89 100644 --- a/src/profstats/main.c +++ b/src/profstats/main.c @@ -344,7 +344,7 @@ int main(int argc, char **argv) { if (cnt_seccomp > (seccomp + 1)) cnt_seccomp = seccomp + 1; if (cnt_restrict_namespaces > (restrict_namespaces + 1)) - cnt_seccomp = restrict_namespaces + 1; + cnt_restrict_namespaces = restrict_namespaces + 1; if (cnt_dbus_user_none > (dbususernone + 1)) cnt_dbus_user_none = dbususernone + 1; if (cnt_dbus_user_filter > (dbususerfilter + 1))