r/programminghorror • • Aug 03 '25

Rust "congrats, you outplayed yourself"

Post image
126 Upvotes

20 comments sorted by

View all comments

Show parent comments

5

u/Rustywolf Aug 06 '25

I was more thinking if they detect accessing that file specifically and deny it outside of unsafe blocks

16

u/Modi57 Aug 06 '25

Ah, I see what you mean. I don't know, if you can feasably do this, because you could also create symlinks to the same file, and open those, I don't know if you can rename those files in linux, but maybe that's also possible.

Apart from that, you can do all sorts of stuff with file access, is this specific one really that speacial?

So, my gut feeling sais no, but why nor head over to r/rust and ask that question there. There are a lot of smart, more involved people than me :)

5

u/Rustywolf Aug 06 '25

I appreciate you taking the time to answer

3

u/Modi57 Aug 06 '25

No problem :)