[PATCH] tests/io_uring: ensure that tne io_uring::enter_ring_fd is imported
Paul Moore
paul at paul-moore.com
Thu Aug 25 20:28:11 UTC 2022
On Thu, Aug 25, 2022 at 4:10 PM Richard Guy Briggs <rgb at redhat.com> wrote:
> On 2022-08-24 15:42, Paul Moore wrote:
> > The liburing library added a new field to the io_uring struct in
> > commit b02125e164ea ("Add preliminary support for using a registered ring fd"),
> > first seen in liburing v2.2.
>
> I'm guessing this should have been sent to the iouring folks?
No, it's for the audit-testsuite. You'll find it committed as 9cf35a32dde4.
> > Signed-off-by: Paul Moore <paul at paul-moore.com>
> > ---
> > tests/io_uring/iouring.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/tests/io_uring/iouring.c b/tests/io_uring/iouring.c
> > index 5d83146..af814f6 100644
> > --- a/tests/io_uring/iouring.c
> > +++ b/tests/io_uring/iouring.c
> > @@ -233,6 +233,7 @@ int uring_import(int fd, struct io_uring *ring, struct io_uring_params *params)
> > ring->flags = params->flags;
> > ring->features = params->features;
> > ring->ring_fd = fd;
> > + ring->enter_ring_fd = fd;
> >
> > ring->sq.ring_sz = params->sq_off.array +
> > params->sq_entries * sizeof(unsigned);
> >
--
paul-moore.com
More information about the Linux-audit
mailing list