[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20241118042407.12900-1-bajing@cmss.chinamobile.com>
Date: Mon, 18 Nov 2024 12:24:07 +0800
From: Ba Jing <bajing@...s.chinamobile.com>
To: mic@...ikod.net
Cc: gnoack@...gle.com,
shuah@...nel.org,
linux-security-module@...r.kernel.org,
linux-kselftest@...r.kernel.org,
linux-kernel@...r.kernel.org,
Ba Jing <bajing@...s.chinamobile.com>
Subject: [PATCH] landlock: ptrace_test: remove unused macros
After reviewing the code, it was found that these macros are never
referenced in the code. Just remove them.
Signed-off-by: Ba Jing <bajing@...s.chinamobile.com>
---
tools/testing/selftests/landlock/ptrace_test.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/tools/testing/selftests/landlock/ptrace_test.c b/tools/testing/selftests/landlock/ptrace_test.c
index a19db4d0b3bd..8f31b673ff2d 100644
--- a/tools/testing/selftests/landlock/ptrace_test.c
+++ b/tools/testing/selftests/landlock/ptrace_test.c
@@ -22,8 +22,6 @@
/* Copied from security/yama/yama_lsm.c */
#define YAMA_SCOPE_DISABLED 0
#define YAMA_SCOPE_RELATIONAL 1
-#define YAMA_SCOPE_CAPABILITY 2
-#define YAMA_SCOPE_NO_ATTACH 3
static void create_domain(struct __test_metadata *const _metadata)
{
--
2.33.0
Powered by blists - more mailing lists