|
From: | Andrea Corallo |
Subject: | Re: Finalizing 'inhibit-automatic-native-compilation' |
Date: | Mon, 20 Feb 2023 20:22:02 +0000 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes: >> Before e6043641d30 the file was created by Fmake_temp_file_internal and >> afterwards overwritten by libgccjit. > > Yes, that was good. > >> So I guess one could remove the file after the first creation and make >> it a link pointing to some other file waiting for libgccjit to do >> its write. > > "One" as in "an attacker"? In `/tmp` an attacker should not be able to > do that because it's supposed to be using the sticky bit so that only > the owner of a file can remove it. Finally understood thanks! I've installed 5d0b45cd67b on emacs-29 in order to use always `make-temp-file'. I think at the time I preferred Fmake_temp_file_internal not to call into Lisp for some reason I can't remember now, anyway seems to work now for me (just bootstrapped successfully). Andrea
[Prev in Thread] | Current Thread | [Next in Thread] |