[Webkit-unassigned] [Bug 188568] [GTK][WPE] Implement subprocess sandboxing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 24 06:39:07 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=188568

--- Comment #77 from Patrick Griffis <pgriffis at igalia.com> ---
(In reply to Carlos Garcia Campos from comment #73)
> Could you elaborate? what's exactly the issue? How did you use SharedMemory?

It was a bit ugly but something like (out of memory not actual code):

  auto sharedMemory = SharedMemory.create(data, size, SharedMemory::Protection::ReadOnly);
  SharedMemory::Handle handle;
  sharedMemory.createHandle(handle, SharedMemory::Protection::ReadOnly);
  int fd = handle.releaseAttachment().releaseFileDescriptor();

Upon usage it was just a vague error like `invalid fd`. This also was within the same scope as the `spawn()` call so I don't think anything was destroyed.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180924/0b08c52a/attachment.html>


More information about the webkit-unassigned mailing list