[LTP] [PATCH v3 1/1] [STAGING] ioctl_pidfd06: Select expected errno for PIDFD_GET_INFO across pidns
Jan Stancek
jstancek@redhat.com
Mon Mar 2 09:49:30 CET 2026
On Fri, Feb 20, 2026 at 6:39 PM Jan Polensky <japo@linux.ibm.com> wrote:
>
> PIDFD_GET_INFO semantics changed for pidfds referring to tasks without a PID
> in the caller's current pid namespace (commit ab89060fbc92e ("pidfs: return
> -EREMOTE when PIDFD_GET_INFO is called on another ns")).
>
> Select the expected errno based on the running kernel version to keep the
> test working on kernels before and after the change, while being strict on
> newer kernels to avoid accepting the legacy errno by accident.
>
> Suggested-by: Cyril Hrubis <chrubis@suse.cz>
> Signed-off-by: Jan Polensky <japo@linux.ibm.com>
Acked-by: Jan Stancek <jstancek@redhat.com>
More information about the ltp
mailing list