3 ms·
1. you can bypass DOS and write directly to the sectors on the disk 2. Linux won't let you open() a file that's a resident executable for write... you'll get E
by blibble 5y ago
1. you can bypass DOS and write directly to the sectors on the disk
2. Linux won't let you open() a file that's a resident executable for write... you'll get ETXTBUSY
you can write out a new file and change the directory entry to point to a new one, but then you haven't technically modified the other file
- evanelias 5y ago> you can write out a new file and change the directory entry to point to a new one, but then you haven't technically modified the other file Yep, this. Meanwhile, on MacOS, code signatures (for signed binaries) are cached by inode. If the file contents at that inode change, the signature no longer matches, and Gatekeeper will SIGKILL the binary immediately when you try to run it. The cache is only kept in memory though, and rebooting clears it.