lkml.org 
[lkml]   [2023]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC v4 2/2] file, epoll: Implement do_replace() and eventpoll_replace()
On Mon, Mar 27, 2023 at 11:01:06AM +0200, Christian Brauner wrote:
> On Fri, Mar 24, 2023 at 07:43:13AM -0600, Tycho Andersen wrote:
> > Perhaps we could add a flag that people could set from SECCOMP_ADDFD
> > asking for this extra behavior?
>
> + if (fd > 0 && addfd->ioctl_flags & SECCOMP_ADDFD_FLAG_EPOLL) {
> + /*
> + * - retrieve old struct file that addfd->fd refered to if any.
> + * - call your epoll seccomp api to update the references in the epoll instance
> + */
> epoll_seccomp_notify()
> + }
> +
> + if (fd > 0 && addfd->ioctl_flags & SECCOMP_ADDFD_FLAG_IO_URING) {
> + /*
> + * - call your io_uring seccomp api to update the references in the io_uring instance
> + */
> io_uring_seccomp_notify()
> + }

Looks reasonable to me, thanks.

Tycho

\
 
 \ /
  Last update: 2023-03-27 15:07    [W:0.064 / U:0.428 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site