summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBa Jing <bajing@cmss.chinamobile.com>2024-11-18 12:24:07 +0800
committerMickaël Salaün <mic@digikod.net>2025-01-10 12:12:37 +0100
commitb665ee5f08df401a9e4a68e7d5f662d3f72ba1e1 (patch)
treed0a7ddaae5c586328e66a7b4bb64814c5134128e
parent9d89551994a430b50c4fffcb1e617a057fa76e20 (diff)
downloadlinux-b665ee5f08df401a9e4a68e7d5f662d3f72ba1e1.tar.gz
linux-b665ee5f08df401a9e4a68e7d5f662d3f72ba1e1.tar.bz2
linux-b665ee5f08df401a9e4a68e7d5f662d3f72ba1e1.zip
selftests/landlock: Remove unused macros in ptrace_test.c
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@cmss.chinamobile.com> Link: https://lore.kernel.org/r/20241118042407.12900-1-bajing@cmss.chinamobile.com [mic: Reword subject] Signed-off-by: Mickaël Salaün <mic@digikod.net>
-rw-r--r--tools/testing/selftests/landlock/ptrace_test.c2
1 files changed, 0 insertions, 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)
{