diff options
author | 2025-03-11 13:18:22 +0000 | |
---|---|---|
committer | 2025-03-16 22:06:40 -0700 | |
commit | 5d2146a3354f8eeb1f9f9581ee9a40e0a9d2c714 (patch) | |
tree | e6a365a953ee49b9b7d3acbdd464d732316dad43 /mm/vmscan.c | |
parent | selftests/mm: ensure uffd-wp-mremap gets pages of each size (diff) | |
download | wireguard-linux-5d2146a3354f8eeb1f9f9581ee9a40e0a9d2c714.tar.xz wireguard-linux-5d2146a3354f8eeb1f9f9581ee9a40e0a9d2c714.zip |
selftests/mm: skip mlock tests if nobody user can't read it
If running from a directory that can't be read by unprivileged users,
executing on-fault-test via the nobody user will fail.
The kselftest build does give the file the correct permissions, but after
being installed it might be in a directory without global execute
permissions.
Since the script can't safely fix that, just skip if it happens. Note
that the stderr of the `ls` command is unfiltered meaning the user sees a
"permission denied" error that can help inform them why the test was
skipped.
Link: https://lkml.kernel.org/r/20250311-mm-selftests-v4-11-dec210a658f5@google.com
Signed-off-by: Brendan Jackman <jackmanb@google.com>
Cc: Dev Jain <dev.jain@arm.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Mateusz Guzik <mjguzik@gmail.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/vmscan.c')
0 files changed, 0 insertions, 0 deletions