Marek Szuba ea8a4b3bcf dev-util/ltrace: skip the attach-process test
On modern kernels with the Yama security module enabled the default
ptrace behaviour is that a process must have a predefined relationship
with the inferior it wants to call ``PTRACE_ATTACH`` on, with two
additional modes restricting process tracing even more; for details see
[1]. As a result, unless Yama is explicitly reset to classic ptrace
permissions the ltrace attach-process test fails due to
insufficient permissions - regardless of the sandbox, or even when the
test suite is run manually with no involvement of a Gentoo package
manager.

We could in principle modify the test in question to be compatible with
restricted-ptrace mode, however it would still fail on systems with
Yama in admin-attach and no-attach mode. Between that and requiring the
user to reconfigure Yama prior to running this test being IMHO a Bad
Idea, just don't bother with this test at all.

[1] https://www.kernel.org/doc/html/latest/admin-guide/LSM/Yama.html

Closes: https://bugs.gentoo.org/729046
Signed-off-by: Marek Szuba <marecki@gentoo.org>
2021-07-13 12:20:54 +01:00
2021-07-12 14:29:06 -05:00
2021-07-10 11:40:28 +02:00
2021-07-08 20:36:37 +02:00
2021-07-02 10:38:25 +03:00
2021-07-10 20:15:36 +01:00
2021-07-09 17:33:43 +02:00
2021-07-10 11:49:57 -04:00
2021-07-05 18:51:55 -04:00
2021-06-25 11:02:58 -05:00
2021-07-12 23:06:29 +02:00
2021-07-08 14:51:40 +02:00
2021-07-11 23:18:22 +02:00
2021-07-13 01:37:43 +01:00
2021-07-13 05:22:21 +01:00
2021-07-07 16:41:22 +03:00
2021-06-18 18:36:53 +02:00
2021-07-13 08:13:44 +02:00
2021-07-13 01:49:49 +01:00
2021-07-12 23:06:31 +02:00
2021-07-10 00:36:38 +02:00
2021-07-13 08:41:59 +02:00
S
Description
No description provided
9.8 GiB
Languages
Shell 98%
Roff 1.4%
Emacs Lisp 0.2%
C 0.1%