[PATCH RFC] Add support for linux memfd_create syscall

Florian Weimer fweimer@redhat.com
Mon Nov 24 17:03:00 GMT 2014


On 11/21/2014 07:41 PM, Carlos O'Donell wrote:
>> My kernel patches already had man-pages included. I'm currently
>> talking with Michael Kerrisk to get them upstream. I will try to
>> include something for llio.texi in v2.
>
> Thank you. Anything would be better than nothing.

Specifically, for sealing support, we should provide a sequence of 
system calls by which senders and receivers can cooperate to make sure 
that the receiver cannot run into the denial-of-service issues usually 
associated with mapping files across trust boundaries (i.e., the sender 
prepares the magic descriptor, and the receiver checks that the 
preparation has been done properly).  If the kernel is not willing to 
make such a commitment, this functionality should go into a separate 
library, and glibc should probably not expose the sealing functionality.

(memfd_create is useful in its own right to create aliasable mappings, 
though.)

-- 
Florian Weimer / Red Hat Product Security



More information about the Libc-alpha mailing list