[LTP] [PATCH] lib: tst_fd: Add kernel version check to memfd_secret
Petr Vorel
pvorel@suse.cz
Fri Jun 21 13:13:12 CEST 2024
Hi Nobuhiro,
Cyril's suggestion to add fallback definitions sounds to me as a good idea:
https://lore.kernel.org/ltp/ZnVCcU6jOU98DYek@yuki/
I guess that the best fix is to add fallback definitions for
memfd_secret into include/lapi/syscalls/*.in files. That way we should
get -1 and EINVAL properly even when kernel does not support the
syscall.
Could you please try that first?
Kind regards,
Petr
PS: I'm sorry for the noise, posted previously to the old version, which I
superseded in patchwork.
More information about the ltp
mailing list