Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jul 2000 19:36:13 -0700 (PDT)
From:      John Polstra <jdp@polstra.com>
To:        arch@freebsd.org
Subject:   How much security should ldconfig enforce?
Message-ID:  <XFMail.000726193613.jdp@polstra.com>

next in thread | raw e-mail | index | archive | help
I am building a bike shed, and I was wondering if you could advise
me about what color it should be. :-)

Just kidding -- this is about ldconfig.  Last night I committed
some security-related changes that somebody submitted to me.  The
changes make ldconfig refuse to pay attention to directories which are
world-writable or not owned by root.  In the commit message I also
stated a desire to strengthen it further by disallowing group-writable
directories.

One committer wrote to me and said he didn't like that last idea.  His
reason was that in some scenarios multiple developers might want to
collaborate in such a way that any of them could add shared libraries
to certain directories which were writable by their common group.  He
went on to say that even the changes I already committed seemed a bit
too strict, and that if a user wants to run an insecure machine for
some reason then ldconfig shouldn't take away the sword he wishes to
fall upon.

I am sympathetic to these points and am ambivalent about how strict
ldconfig ought to be.  Here are some different behaviors it could
be made to have:

1. It could allow anything, just like it did before I made my commit.

2. It could strictly enforce secure ownerships, groups, and
permissions -- i.e., keep last night's commit and add group
writability checking too.

3. It could default to strictly secure but accept a command-line
option to relax the constraints.  And an rc.conf knob could be added
to control whether or not it was strict at boot time.

What do you folks think about this?

John
--
  John Polstra                                               jdp@polstra.com
  John D. Polstra & Co., Inc.                        Seattle, Washington USA
  "Disappointment is a good sign of basic intelligence."  -- Chögyam Trungpa



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.000726193613.jdp>