Re: Unfortunate dynamic linking for everything

From: David Wolfskill <david_at_catwhisker.org>
Date: Sun, 23 Nov 2003 19:43:32 -0800 (PST)
>Date: Mon, 24 Nov 2003 09:34:08 +0600 (NOVT)
>From: "Maxim M. Kazachek" <stranger_at_sberbank.sibnet.ru>

>	So, imagine, i'm accidentally deleted /bin with your most wanted
>static sh... And, of course, due to static nature of /bin/sh it was
>removed from /rescue? Nothing will protect you from shooting in the leg,
>neither static linking, nor assumption that /lib is OK.

So go ahead and make /bin/sh also have a (hard) link to /rescue/sh.
Then the referenced action merely decrements the link count, and the
executable itself doesn't go away.

Sure, you could be more imaginative with foot-shooting, but the stated
problem is really easy to avoid.

Peace,
david       (reluctant to contribute to this thread....)
-- 
David H. Wolfskill				david_at_catwhisker.org
If you want true virus-protection for your PC, install a non-Microsoft OS
on it.  Plausible candidates include FreeBSD, Linux, NetBSD, OpenBSD, and
Solaris (in alphabetical order).
Received on Sun Nov 23 2003 - 18:43:33 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:30 UTC