5 ms·
open's O_TMPFILE (since Linux 3.11) does exactly that without creating a named file and immediately removing it from the filesystem. I don't argue that the othe
by leni536 11y ago
open's O_TMPFILE (since Linux 3.11) does exactly that without creating a named file and immediately removing it from the filesystem. I don't argue that the other technique isn't common though.
- takeda 11y agoThe older technique is probably more common since it is available in older version of Linux and also compatible with other Unix based systems. That said it still doesn't prevent the author for modifying the file by referencing file descriptor.