[LTP] [PATCH v2 4/8] syscalls: Add epoll_ctl06

Li Wang wangli.ahau@gmail.com
Mon Apr 27 04:26:59 CEST 2026


Cyril Hrubis <chrubis@suse.cz> wrote:

> +static int exp_errno(enum tst_fd_type type)
> +{
> +       switch (type) {
> +       case TST_FD_FILE:
> +       case TST_FD_DIR:
> +       case TST_FD_DEV_ZERO:
> +       case TST_FD_PROC_MAPS:
> +       case TST_FD_MEMFD:
> +       case TST_FD_MEMFD_SECRET:
> +               return EPERM;
> +       case TST_FD_PATH:
> +       case TST_FD_OPEN_TREE:

> +       case TST_FD_FSOPEN:
> +       case TST_FD_FSPICK:
> +               return EBADF;

Looks like these two fs epoll verifying return EPERM:

epoll_ctl06.c:55: TFAIL: epoll_ctl() on fsopen expected EBADF: EPERM (1)
epoll_ctl06.c:55: TFAIL: epoll_ctl() on fspick expected EBADF: EPERM (1)


--
Regards,
Li Wang


More information about the ltp mailing list