<HEAD><TITLE>discuss@charon: [533] in "Coldmud discussion meeting"</TITLE>
<H1>[533] in Coldmud discussion meeting</H1></HEAD>
<A HREF="/"><IMG SRC="/i-d.gif" ALT="root"></A>
<A HREF="?533"><IMG SRC="/i-back.gif" ALT="meeting"></A>
<A HREF="/help.html"><IMG SRC="/i-help.gif" ALT="help"></A>
<A HREF="1"><IMG SRC="/i-first.gif" ALT="first"></A>
<A HREF="517"><IMG SRC="/i-fref.gif" ALT="first in chain"></A>
<A HREF="532"><IMG SRC="/i-pref.gif" ALT="previous in chain"></A>
<A HREF="532"><IMG SRC="/i-prev.gif" ALT="previous"></A>
<A HREF="534"><IMG SRC="/i-next.gif" ALT="next"></A>
<A HREF="534"><IMG SRC="/i-nref.gif" ALT="next in chain"></A>
<A HREF="542"><IMG SRC="/i-lref.gif" ALT="last in chain"></A>
<A HREF="1641"><IMG SRC="/i-last.gif" ALT="last"></A>
<HR><H2>Re: To-Do list..</H2>
<H3>daemon@ATHENA.MIT.EDU (Sat Nov  5 16:26:01 1994
)</H3>
<PRE>
Date: Sat, 5 Nov 1994 16:22:11 -0500 (EST)
From: James C Deikun &lt;jcdst10+@pitt.edu&gt;
To: brandon@riverheights.declab.usu.edu
Cc: coldstuff@MIT.EDU
In-Reply-To: &lt;9411050631.AA06234@riverheights.declab.usu.edu&gt;

On Fri, 4 Nov 1994 brandon@riverheights.declab.usu.edu wrote:

&gt; caustic nature of this post to heart and read the true intent inside (i.e.
&gt; don't take any offense from the material content which may follow :)

I'll give it my best shot.  :)

&gt; Should be (as in there is a soon to occur change which will make it
&gt; irrelevant), or you think it should be?  If so, why?  I gleaned a touch
&gt; of this off your message but you offered no suitable replacement.

As in I think there should be.  I think the whole error-handling system
should be rewritten, and if that turns out the way it should the syntax
and semantics of the whole thing will be different enough that that
change will become meaningless and impossible by lack of context.

&gt; Hmm, I like some of them, but you are stepping down with others... First:
&gt; 
&gt; &lt;    bind()                    =&gt; listen(port, object)
&gt; 
&gt; Could fly, but I would be adverse to the name because 'listen' in general
&gt; is vague.  Listen to what?  Mexican mariachi bands over on object $party?

Could be.  In a way the vagueness is part of what I like about it.

&gt; Perhaps listen_for_connection(), but then you may as well go back to ports,
&gt; which DO have a meaning in TCP but does that necessarily mean that is how
&gt; we are interpreting them?  Perhaps port is just a generic term saying
&gt; something will have a 'berth' here, be it a network connection or some
&gt; type of modem interface.

That's how I see them.

&gt; &lt;    unbind()                  =&gt; unlisten_port(port)
&gt; 
&gt; Ouch, rescind into improper english while using an even more vague term
&gt; than 'port'.  The least you would want is stop_listening_on(port).
&gt; (perhaps as the alter aspect of this have start_listening_on(port, object)).

Well, I suppose.  I never really gathered though that programming
languages were meant to be exactly the Queen's English.

[deleted stuff I agree with]

&gt; However, perhaps a buildin of 'ports()' (no args, returns a dictionary with
&gt; each port as the key, and the value being the object bound to said port).

Well, that's one way to handle it.  I'd like to be able to go the other
direction as well, though, without inverting a dictionary.

&gt; (I think I like port better than listen, in the long run--more because that
&gt; is how it is now, and there is no real reason to change it since it does
&gt; say what it is, even in the most abstract circumstances).

Good point.

&gt; Well, the main reason I suggested axing _freq is because I'm not one
&gt; for abbreviations.  Then again I'm not one for long names either.  What
&gt; is wrong with 'set_heartbeat()'?  That is what you are doing (depending
&gt; upon how you define a heartbeat--I would do it as being a periodic
&gt; pulse of some sort, so by setting the heartbeat you are setting how
&gt; often said pulse occurs).

To me, the heartbeat is the pulse or beat itself, and the interval is
a quality of it--how long between successive instantiations of this
phenomenon.  set_heartbeat() sounds to me like one is trying to
specify a different method to call for the heartbeat.

&gt; &lt; This wouldn't work well with something like MOO's NP_SINGLE network
&gt; &lt; module.
&gt; 
&gt; I suppose it is a good thing this is coldmud then? (why wouldn't it
&gt; work with MOO's whatever?  Why does this actually have an effect upon
&gt; the design consideration of implementing such a file structure?).

I think NP_SINGLE is a Good Thing(TM), which *should* be available in
ColdMUD.

NP_SINGLE uses stdin and stdout as a connection, which is reestablished
whenever it is closed.  This allows testing on machines without
networking.  It can't use stdout, though, if stdout is the log.

&gt; &lt; This one is IMNSHO entirely silly, superfluous, and otherwise not a
&gt; &lt; Good Thing(TM).  The idea behind it seems to be that by allowing
&gt; &lt; online changing of methods basic to security one is undermining
&gt; &lt; security.
&gt; 
&gt; How is this such a hard concept to grasp?

The book you sited earlier said 'unauthorized' changing.  How 'online'
is identical to 'unauthorized' is the point that continues to escape
me.

&gt; So you think one should program a security system which you can trust
&gt; in being impregnable?  By leaving the ability in-db that such key methods
&gt; are compilable/writable, the threat that they can be changed is
&gt; *ALWAYS* there, no matter WHAT security precautions you take in-db, you
&gt; always have to assume that it can happen somehow.  If you have the
&gt; ability to lock a key method, then you have just plugged one potential
&gt; hole relatively tightly.

I suppose it would be even better if we burned these methods in ROM on
the server machine.  Then even if someone cracked root on the machine e 
could not change these esssential methods.

There is such a thing as taking a good idea (security) to ridiculous
extremes.

If you have holes in your DB such that people can gain admin privileges,
you're rather screwed anyway.  What I might like to see is an option
where reprogramming of certain methods should be mentioned in the server
log, along with full text and task stack.  This allows essentially the
same level of security, but is not such a damned pain to deal with.  The
flag itself, perhaps, should not be able to be turned off in-DB.  If it
can be this too should be logged.

Note that if you run your server log through a filter that can yell at
the archwiz through the console you'd have a good chance of catching
the cracker in the act before e even realizes it.

&gt; Having a 'lock' flag on a method would add nothing to the direct functional
&gt; security of the method.  What it does do is give you a guarantee that
&gt; somebody else will not find a back door that allows them to completely
&gt; replace said method with their own.  Your assumption that a single method
&gt; can completely protect itself from harm is silly, and quite frankly I
&gt; would have 'grave doubts' about any system which does such a thing.

Like I've said before, if compile() can be protected against actual
calls, these essential verbs can be, unless someone can do an arbitrary
eval on $sys, in which case they don't need any help from overwitten
methods to compromise the security of the system completely.

&gt; &lt; The marginal security gain is simply
&gt; &lt; not worth making a whole bunch of people crawl on their knees
&gt; &lt; through textdumps when maintenance needs to be done.
&gt; 
&gt; It is not hard to edit a textdump.  Infact, I would almost prefer to
&gt; edit a textdump in some instances (do not think in relation to MOO dumps).

It requires taking the server down, it still requires finding the right
place to edit or running things through a huge script, if you don't do
it right the server won't start and you'll have to go back again, etc.
And if a security hole shows up while the archwiz is on vacation nothing
can be done about it.  This is a good thing?

&gt; That would be your option, however such an act would (in my opinion) show
&gt; others how much you care about your system's integrity.  The lock flag
&gt; is not intended to be used on very many methods.  If you wish to spend the
&gt; time to write a perl (why the fk perl?  sed would work just dandy) script

It's hard to say what'll work dandy on what if you're not very familiar
with the actual format of the textdump.

&gt; which strips the lock flag out of the 5 methods in the entire db which have
&gt; it, more power too you (?).

I might have to rewrite a few methods afterward, because of the broken
way the security would be set up.  It would be worth it, though, to have
everything online maintainable.  Any real operating system can be admin-
istered remotely, or at least be set up to be so for a week without
compromising security too much.  Security, important as it is, is only one 
of a group of real-world needs which apply to VESes as much as OSes.

--
James Deikun (James@JHM, James &amp; Splat@BlueMOOn)
</PRE>
