1

To reduce disk space I have planned to use a hard link instead of full copy, Is there any security issue while two different processes using different hard links of the same executable file as base?

  • You may as well say "use the same file", because that's what a hard link is. –  Mar 20 '20 at 11:39

1 Answers1

2

It is not uncommon especially for software for embedded systems (BusyBox etc) to have a single binary which has everything in it and then to hard link this binary to different names in order to provide the expected command names. This approach by itself is not a problem: while the different invocations of the binary will share read-only (or execute-only) code and data segments they will all have their own read-write stack and heap, strictly separated from the rest as with different binaries.

Steffen Ullrich
  • 184,332
  • 29
  • 363
  • 424