selftests/move_mount_set_group:Make tests build with old libcReplace SYS_<syscall> with __NR_<syscall>. Using the __NR_<syscall>notation, provided by UAPI, is useful to build tests on systems wit
selftests/move_mount_set_group:Make tests build with old libcReplace SYS_<syscall> with __NR_<syscall>. Using the __NR_<syscall>notation, provided by UAPI, is useful to build tests on systems withoutthe SYS_<syscall> definitions.Replace SYS_move_mount with __NR_move_mountSimilar changes: commit 87129ef13603 ("selftests/landlock: Make tests build with old libc")Acked-by: Mickaël Salaün <[email protected]>Signed-off-by: Hu.Yadi <[email protected]>Link: https://lore.kernel.org/r/[email protected]Reviewed-by: Berlin <[email protected]>Suggested-by: Jiao <[email protected]>Signed-off-by: Christian Brauner <[email protected]>
show more ...
selftests: move_mount_set_group: Fix incorrect kernel headers search pathUse $(KHDR_INCLUDES) as lookup path for kernel headers. This preventsbuilding against kernel headers from the build environ
selftests: move_mount_set_group: Fix incorrect kernel headers search pathUse $(KHDR_INCLUDES) as lookup path for kernel headers. This preventsbuilding against kernel headers from the build environment in scenarioswhere kernel headers are installed into a specific output directory(O=...).Signed-off-by: Mathieu Desnoyers <[email protected]>Cc: Shuah Khan <[email protected]>Cc: [email protected]Cc: Ingo Molnar <[email protected]>Cc: <[email protected]> # 5.18+Signed-off-by: Shuah Khan <[email protected]>
selftests/move_mount_set_group remove unneeded conversion to boolThe coccinelle report./tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c:225:18-23:WARNING: conversion to b
selftests/move_mount_set_group remove unneeded conversion to boolThe coccinelle report./tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c:225:18-23:WARNING: conversion to bool not needed hereRelational and logical operators evaluate to bool,explicit conversion is overly verbose and unneeded.Reported-by: Zeal Robot <[email protected]>Signed-off-by: Yang Guang <[email protected]>Signed-off-by: Shuah Khan <[email protected]>
tests: add move_mount(MOVE_MOUNT_SET_GROUP) selftestAdd a simple selftest for a move_mount(MOVE_MOUNT_SET_GROUP). This teststhat one can copy sharing from one mount from nested mntns with nestedu
tests: add move_mount(MOVE_MOUNT_SET_GROUP) selftestAdd a simple selftest for a move_mount(MOVE_MOUNT_SET_GROUP). This teststhat one can copy sharing from one mount from nested mntns with nesteduserns owner to another mount from other nested mntns with other nesteduserns owner while in their parent userns. TAP version 13 1..1 # Starting 1 tests from 2 test cases. # RUN move_mount_set_group.complex_sharing_copying ... # OK move_mount_set_group.complex_sharing_copying ok 1 move_mount_set_group.complex_sharing_copying # PASSED: 1 / 1 tests passed. # Totals: pass:1 fail:0 xfail:0 xpass:0 skip:0 error:0Link: https://lore.kernel.org/r/[email protected]Cc: Shuah Khan <[email protected]>Cc: Eric W. Biederman <[email protected]>Cc: Alexander Viro <[email protected]>Cc: Christian Brauner <[email protected]>Cc: Mattias Nissler <[email protected]>Cc: Aleksa Sarai <[email protected]>Cc: Andrei Vagin <[email protected]>Cc: [email protected]Cc: [email protected]Cc: lkml <[email protected]>Signed-off-by: Pavel Tikhomirov <[email protected]>Signed-off-by: Christian Brauner <[email protected]>