[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <a020ab91-2da7-4c47-b88e-4639b8b0bd37@redhat.com>
Date: Wed, 11 Jun 2025 15:20:57 +0200
From: David Hildenbrand <david@...hat.com>
To: Mark Brown <broonie@...nel.org>, Andrew Morton
<akpm@...ux-foundation.org>, Shuah Khan <shuah@...nel.org>,
Mike Rapoport <rppt@...nel.org>
Cc: linux-mm@...ck.org, linux-kselftest@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] selftests/mm: Check for YAMA ptrace_scope configuraiton
before modifying it
On 10.06.25 16:07, Mark Brown wrote:
> When running the memfd_secret test run_vmtests.sh unconditionally tries
> to confgiure the YAMA LSM's ptrace_scope configuration, leading to an error
> if YAMA is not in the running kernel:
>
> # ./run_vmtests.sh: line 432: /proc/sys/kernel/yama/ptrace_scope: No such file or directory
> # # ----------------------
> # # running ./memfd_secret
> # # ----------------------
>
> Check that this file is present before trying to write to it.
>
> The indentation here is a bit odd, and it doesn't seem great that we
> configure but don't restore ptrace_scope.
>
> Signed-off-by: Mark Brown <broonie@...nel.org>
> ---
Acked-by: David Hildenbrand <david@...hat.com>
--
Cheers,
David / dhildenb
Powered by blists - more mailing lists