Article View: comp.sys.sun
Article #13657``variant'' links
From: steve
Date: Wed, 07 Feb 1990 13:19
Date: Wed, 07 Feb 1990 13:19
15 lines
1343 bytes
1343 bytes
The Sprite operating system does this, but (from what little I know) just for $MACHINE, not for any environment variable. If I were implementing this, I'd just hardcode something into the Sprite equivalent of namei to look for $MACHINE, then turn it into an architecture name. It looks like this is what Sprite does, in fact. One thing that worries me about variant links is that you have to be a little bit careful when implementing this in order not to toss security out the window. If you can get something running as root to exec something, and diddle the path to that something so that it runs your program instead, you've now got a root shell. There are probably ways to make this secure, but I haven't given the issue a lot of thought. Spoken: Steve Miller Domain: steve@umiacs.umd.edu UUCP: uunet!mimsy!steve Phone: +1-301-454-1808 USPS: UMIACS, Univ. of Maryland, College Park, MD 20742
Technical Details
Message-ID:
<4800@brazos.Rice.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!iuvax!mailrus!cs.utexas.edu!rice!sun-spots-requestShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!iuvax!mailrus!cs.utexas.edu!rice!sun-spots-request From: steve@umiacs.umd.edu Newsgroups: comp.sys.sun Subject: ``variant'' links Keywords: SunOS Message-ID: <4800@brazos.Rice.edu> Date: 7 Feb 90 13:19:11 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 15 Approved: Sun-Spots@rice.edu X-Refs: Original: v9n24 X-Sun-Spots-Digest: Volume 9, Issue 36, message 3