9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Douglas A. Gwyn" <DAGwyn@null.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] SO for plan9?
Date: Thu, 22 Jun 2000 08:45:45 +0000	[thread overview]
Message-ID: <39519939.D7EB5345@null.net> (raw)
In-Reply-To: <10006200912.ZM59069@marvin>

Tom Duff wrote:
> Shared libraries are the work of the devil,
> the one true sign that the apocalypse is
> at hand.  Seriously, they're good for two
> things, first for plug-in features, which
> in plan 9 are often better handled by 9P
> servers (obviously not always, for example
> if there's an otherwise unachievable latency
> or throughput requirement), and second for
> giving third parties permission to break your
> code after you've shipped it.  I am stunned
> and amazed that anybody that pays salary to
> customer service reps would ever consider
> using shared libraries.

The two usual selling points are that installed
applications benefit from bug fixes in the shared
libraries (e.g. the standard C runtime library),
and that it saves a *lot* of disk space, especially
when big libraries are involved, as in X11.

There are a lot of things wrong with shared libraries
(or sometimes just with particular implementations);
for one thing they make it fairly easy to break
security; suppose a privileged process checks that
you are allowed to perform some action then invokes
a usually innocuous library function that you have
prearranged in your substitute shared library (easy
to do in Plan 9 where you own your name space) to
perform some other action that you would not normally
have been permitted to do.  I've seen this in set-UID
root UNIX programs (just found another yesterday) on
systems such as Solaris where you can affect the
runtime library directory search order (LD_*_PATH);
it is easy to make such a program fire up a /bin/sh
with inherited UID 0, which allows you to do anything
at all!


  parent reply	other threads:[~2000-06-22  8:45 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-06-20  8:47 Oleg Krivosheev
     [not found] ` <kriol@wally.fnal.gov>
2000-06-20 16:12   ` Tom Duff
2000-06-21  8:41     ` Oleg Krivosheev
2000-06-21  9:03     ` Alexander Viro
2000-06-22  8:45     ` Douglas A. Gwyn [this message]
2000-06-22 12:49       ` Howard Trickey
2000-06-22 13:19         ` Greg Hudson
2000-06-22 21:47           ` Steve Kilbane
2000-06-26  9:00             ` Douglas A. Gwyn
2000-06-23  8:57           ` Douglas A. Gwyn
2000-06-23 13:05           ` Kasper Peeters
     [not found]             ` <K.Peeters@damtp.cam.ac.uk>
2000-06-23 16:01               ` Tom Duff
2000-06-24 10:10             ` Steve Kilbane
2000-06-20 10:13 rob pike
2000-06-21 15:16 dhog
2000-06-21 17:56 ` Randolph Fritz
2000-06-22  8:40 ` Oleg Krivosheev
2000-06-22 13:08 Anthony Sorace
2000-06-25 11:56 forsyth
2000-06-26  9:03 ` Michael Dingler
2000-06-26 10:23   ` Nigel Roles
2000-06-26 14:22     ` Steve Kotsopoulos
2000-06-26 14:44       ` Nigel Roles
2000-06-27  8:31       ` Michael Dingler
2000-06-28  8:27         ` Steve Simon
2000-06-28  9:40           ` Nigel Roles
     [not found]             ` <ngr@9fs.org>
2000-06-28 16:50               ` Tom Duff
2000-06-29 12:59                 ` Douglas Fraser
2000-06-29  8:31           ` Douglas A. Gwyn
2000-06-26 13:53 ` James A. Robinson
2000-06-26 14:09 rob pike
2000-06-26 14:31 ` Skip Tavakkolian
2000-06-28  8:28   ` Chris Locke
2000-06-28 14:50     ` Srinivasa, Balaji
2000-06-28 10:40 john
2000-06-28 19:35 forsyth
2000-07-07  2:15 rob pike

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=39519939.D7EB5345@null.net \
    --to=dagwyn@null.net \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).