|
|
Subscribe / Log in / New account

The kdbuswreck

The kdbuswreck

Posted Apr 23, 2015 11:25 UTC (Thu) by mstefani (guest, #31644)
In reply to: The kdbuswreck by smurf
Parent article: The kdbuswreck

Isn't that functionality already in? kdbus uses memfd for that and memfd was uncontroversial and generic.


to post comments

The kdbuswreck

Posted Apr 30, 2015 10:23 UTC (Thu) by metux-its (guest, #102293) [Link] (1 responses)

And even memfd isn't required for that.

Anybody heared of mmap() ? ;-o

The kdbuswreck

Posted Apr 30, 2015 20:00 UTC (Thu) by cesarb (subscriber, #6266) [Link]

> And even memfd isn't required for that. Anybody heared of mmap() ?

The point of using a memfd is that it can be sealed, so there's no risk of a TOCTOU vulnerability in the receiver.

With mmap(), the sender can change what the receiver sees while the receiver is looking at it.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds