mbox series

[v6,0/1] selftests/landlock: fix ptrace_test

Message ID 20230114020306.1407195-1-jeffxu@google.com (mailing list archive)
Headers show
Series selftests/landlock: fix ptrace_test | expand

Message

Jeff Xu Jan. 14, 2023, 2:03 a.m. UTC
From: Jeff Xu <jeffxu@google.com>

Landlock ptrace failed because YAMA is enabled.
This patch check YAMA value and skip related tests.

V6:
- Squash change from Mickaël Salaün 
- Link: https://lore.kernel.org/r/20230113175308.50900-1-mic@digikod.net
- Add can_read_child and can_read_parent
- Remove SKIP(), add log for incomplete test.

V5:
- https://lore.kernel.org/all/20230113050755.1277736-1-jeffxu@google.com/
- address comments from groeck@google.com

V4: 
- https://lore.kernel.org/all/20230103190314.3882177-1-jeffxu@google.com
- apply can_trace_parent and can_trace_child to smaller scope.

V3:
https://lore.kernel.org/all/20221227140244.1041292-1-jeffxu@google.com
- add can_trace_parent and can_trace_child to handle yama value.

V2:
https://lore.kernel.org/all/20221213185816.3942853-1-jeffxu@chromium.org
- update from code review comments.

V1:
https://lore.kernel.org/all/20221213185816.3942853-1-jeffxu@chromium.org
- skip specific testcase according to YAMA value

V0: 
https://lore.kernel.org/r/20220628222941.2642917-1-jeffxu@google.com
- skip entire ptrace when YAMA is not 0.

Jeff Xu (1):
  selftests/landlock: skip ptrace_test according to YAMA

 .../testing/selftests/landlock/ptrace_test.c  | 112 +++++++++++++++---
 1 file changed, 94 insertions(+), 18 deletions(-)


base-commit: 963a70bee5880640d0fd83ed29dc1e7ec0d2bd4a

Comments

Mickaël Salaün Jan. 27, 2023, 6 p.m. UTC | #1
Thanks, it will soon be in -next: 
https://git.kernel.org/pub/scm/linux/kernel/git/mic/linux.git/log/?h=next

On 14/01/2023 03:03, jeffxu@chromium.org wrote:
> From: Jeff Xu <jeffxu@google.com>
> 
> Landlock ptrace failed because YAMA is enabled.
> This patch check YAMA value and skip related tests.
> 
> V6:
> - Squash change from Mickaël Salaün
> - Link: https://lore.kernel.org/r/20230113175308.50900-1-mic@digikod.net
> - Add can_read_child and can_read_parent
> - Remove SKIP(), add log for incomplete test.
> 
> V5:
> - https://lore.kernel.org/all/20230113050755.1277736-1-jeffxu@google.com/
> - address comments from groeck@google.com
> 
> V4:
> - https://lore.kernel.org/all/20230103190314.3882177-1-jeffxu@google.com
> - apply can_trace_parent and can_trace_child to smaller scope.
> 
> V3:
> https://lore.kernel.org/all/20221227140244.1041292-1-jeffxu@google.com
> - add can_trace_parent and can_trace_child to handle yama value.
> 
> V2:
> https://lore.kernel.org/all/20221213185816.3942853-1-jeffxu@chromium.org
> - update from code review comments.
> 
> V1:
> https://lore.kernel.org/all/20221213185816.3942853-1-jeffxu@chromium.org
> - skip specific testcase according to YAMA value
> 
> V0:
> https://lore.kernel.org/r/20220628222941.2642917-1-jeffxu@google.com
> - skip entire ptrace when YAMA is not 0.
> 
> Jeff Xu (1):
>    selftests/landlock: skip ptrace_test according to YAMA
> 
>   .../testing/selftests/landlock/ptrace_test.c  | 112 +++++++++++++++---
>   1 file changed, 94 insertions(+), 18 deletions(-)
> 
> 
> base-commit: 963a70bee5880640d0fd83ed29dc1e7ec0d2bd4a
Jeff Xu Jan. 27, 2023, 6 p.m. UTC | #2
Awesome, thanks!

On Fri, Jan 27, 2023 at 10:00 AM Mickaël Salaün <mic@digikod.net> wrote:
>
> Thanks, it will soon be in -next:
> https://git.kernel.org/pub/scm/linux/kernel/git/mic/linux.git/log/?h=next
>
> On 14/01/2023 03:03, jeffxu@chromium.org wrote:
> > From: Jeff Xu <jeffxu@google.com>
> >
> > Landlock ptrace failed because YAMA is enabled.
> > This patch check YAMA value and skip related tests.
> >
> > V6:
> > - Squash change from Mickaël Salaün
> > - Link: https://lore.kernel.org/r/20230113175308.50900-1-mic@digikod.net
> > - Add can_read_child and can_read_parent
> > - Remove SKIP(), add log for incomplete test.
> >
> > V5:
> > - https://lore.kernel.org/all/20230113050755.1277736-1-jeffxu@google.com/
> > - address comments from groeck@google.com
> >
> > V4:
> > - https://lore.kernel.org/all/20230103190314.3882177-1-jeffxu@google.com
> > - apply can_trace_parent and can_trace_child to smaller scope.
> >
> > V3:
> > https://lore.kernel.org/all/20221227140244.1041292-1-jeffxu@google.com
> > - add can_trace_parent and can_trace_child to handle yama value.
> >
> > V2:
> > https://lore.kernel.org/all/20221213185816.3942853-1-jeffxu@chromium.org
> > - update from code review comments.
> >
> > V1:
> > https://lore.kernel.org/all/20221213185816.3942853-1-jeffxu@chromium.org
> > - skip specific testcase according to YAMA value
> >
> > V0:
> > https://lore.kernel.org/r/20220628222941.2642917-1-jeffxu@google.com
> > - skip entire ptrace when YAMA is not 0.
> >
> > Jeff Xu (1):
> >    selftests/landlock: skip ptrace_test according to YAMA
> >
> >   .../testing/selftests/landlock/ptrace_test.c  | 112 +++++++++++++++---
> >   1 file changed, 94 insertions(+), 18 deletions(-)
> >
> >
> > base-commit: 963a70bee5880640d0fd83ed29dc1e7ec0d2bd4a