[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20250114054129.73331-1-liuye@kylinos.cn>
Date: Tue, 14 Jan 2025 13:41:29 +0800
From: liuye <liuye@...inos.cn>
To: shuah@...nel.org
Cc: amer.shanawany@...il.com,
usama.anjum@...labora.com,
linux-kselftest@...r.kernel.org,
linux-kernel@...r.kernel.org,
liuye <liuye@...inos.cn>
Subject: [PATCH] selftests/capabilities/test_execve: Initialize the variable have_outer_privilege
Uninitialized variable: have_outer_privilege.
Fix it.
Signed-off-by: liuye <liuye@...inos.cn>
---
tools/testing/selftests/capabilities/test_execve.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/capabilities/test_execve.c b/tools/testing/selftests/capabilities/test_execve.c
index 47bad7ddc5bc..c9617b38d6f7 100644
--- a/tools/testing/selftests/capabilities/test_execve.c
+++ b/tools/testing/selftests/capabilities/test_execve.c
@@ -83,7 +83,7 @@ static bool create_and_enter_ns(uid_t inner_uid)
uid_t outer_uid;
gid_t outer_gid;
int i, ret;
- bool have_outer_privilege;
+ bool have_outer_privilege = false;
outer_uid = getuid();
outer_gid = getgid();
--
2.25.1
Powered by blists - more mailing lists