Linux Kernel Selftest development
 help / color / mirror / Atom feed
* [PATCH] landlock: ptrace_test: remove unused macros
@ 2024-11-18  4:24 Ba Jing
  2025-01-10 11:23 ` Mickaël Salaün
  0 siblings, 1 reply; 2+ messages in thread
From: Ba Jing @ 2024-11-18  4:24 UTC (permalink / raw)
  To: mic
  Cc: gnoack, shuah, linux-security-module, linux-kselftest,
	linux-kernel, Ba Jing

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>
---
 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




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] landlock: ptrace_test: remove unused macros
  2024-11-18  4:24 [PATCH] landlock: ptrace_test: remove unused macros Ba Jing
@ 2025-01-10 11:23 ` Mickaël Salaün
  0 siblings, 0 replies; 2+ messages in thread
From: Mickaël Salaün @ 2025-01-10 11:23 UTC (permalink / raw)
  To: Ba Jing, Jeff Xu
  Cc: gnoack, shuah, linux-security-module, linux-kselftest,
	linux-kernel

Thanks!  This is now merged in my next tree.

On Mon, Nov 18, 2024 at 12:24:07PM +0800, Ba Jing wrote:
> 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>
> ---
>  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
> 
> 
> 
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-01-10 11:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-18  4:24 [PATCH] landlock: ptrace_test: remove unused macros Ba Jing
2025-01-10 11:23 ` Mickaël Salaün

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox