login
Header Space

 
 

Re: Integrating securelevel and kauth(9)

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
Cc: <tech-security@...>, <tech-kern@...>
Date: Sunday, March 26, 2006 - 1:57 pm

YAMAMOTO Takashi wrote:


But this is a discussion we *already had* and is not the subject of the
thread. What *you* think is irrelevant, because *you* are given the
choice to use whatever interface you want -- be it a single knob, or
multiple knobs.

We've been through that before. My initial post started with saying
something "as we agreed that some people *do* want it, here is how
everyone can be happy".


The vnode scope is what Mac OS X uses to take the permission checks out
of each file-system specific code and into the VFS layer. We are not
implementing it just yet, so this is out of the question.

Since this is a single case, IF we do decide to implement what I
suggested, and WHEN we get around to have extended attributes working,
and IF we decide to have the vnode scope handle the permission/ACL
checks all in one place, and WHEN we get around to implementing that
too, I promise you that I'll take care of that bit. :)

But for now... let's not let *that* be the show-stopper..



Yes, but I'm not sure these are "misc. operations"..

I'll give you two examples of operations: the first, is checking if
process A can "look into" process B. We use this check for things like
filtering ps and netstat output per-user. The second operation is "can
this process attach systrace to init". Obviously, this is a process
related operation, because the very act of attaching systrace (or
ptrace, for that matter) belongs -- clearly -- in the process scope.

However, I was suggesting a different point of view: there *is* a
difference between these two operations, the difference that justified
the creation of securelevel. While the first operation can cause little
harm to the system (so what if joeblow gets to see root owned
processes?), the second operation suggests that joeblow (or a
compromised root) could attach to init, manipulating it, compromising
the TCB.

This could very easily start an endless discussion. There is no right
answer for this one, I'm afraid. On one hand, we can have the
securelevel-related operations scattered across several scopes, possibly
even handled by different listeners (by playing with "defer"), where we
have to pay extra attention not to treat these as just operations that
are handled by, say, the generic or process scopes, but rather as
operations that if handled incorrectly can compromise the entire
machine.

Or, we could keep them all in one place, biting the bullet and preaching
on the mantra that "although they may be related to packet filter rules,
LKMs, or attaching to init", they all have the same common property of
being able to modify the TCB of the host --  and all are related to
either securelevel or (if we decide to implement) runlevel.

To be completely honest -- I don't think that *technically* it matters
what we choose to do. We'll get it right either way, I am just
presenting both sides of the coin.

It would be nice if other people voiced in on this matter so we can
move forward. :)


See above...


Can I assume that's an "okay" for the proposal, then? :)


That's not a valid suggestion, I think, because securelevel (or, the
traditional BSD securelevel model) does not care for "suser" or not.


It is. :)

-e.

-- 
Elad Efrat
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Integrating securelevel and kauth(9), Elad Efrat, (Fri Mar 24, 1:56 pm)
Re: Integrating securelevel and kauth(9), YAMAMOTO Takashi, (Sat Mar 25, 12:42 pm)
Re: Integrating securelevel and kauth(9), Elad Efrat, (Sat Mar 25, 2:29 pm)
Re: Integrating securelevel and kauth(9), YAMAMOTO Takashi, (Sat Mar 25, 3:04 pm)
Re: Integrating securelevel and kauth(9), Elad Efrat, (Sat Mar 25, 3:10 pm)
Re: Integrating securelevel and kauth(9), YAMAMOTO Takashi, (Sat Mar 25, 3:40 pm)
Re: Integrating securelevel and kauth(9), Elad Efrat, (Sat Mar 25, 3:50 pm)
Re: Integrating securelevel and kauth(9), YAMAMOTO Takashi, (Sat Mar 25, 4:54 pm)
Re: Integrating securelevel and kauth(9), Elad Efrat, (Sat Mar 25, 5:08 pm)
Re: Integrating securelevel and kauth(9), YAMAMOTO Takashi, (Sun Mar 26, 6:45 am)
Re: Integrating securelevel and kauth(9), Elad Efrat, (Sun Mar 26, 1:57 pm)
Re: Integrating securelevel and kauth(9), Robert Watson, (Tue Mar 28, 7:34 am)
Re: Integrating securelevel and kauth(9), David Laight, (Tue Mar 28, 1:29 pm)
Re: Integrating securelevel and kauth(9), Robert Watson, (Tue Mar 28, 1:36 pm)
Re: Integrating securelevel and kauth(9), Daniel Carosone, (Tue Mar 28, 4:36 pm)
Re: Integrating securelevel and kauth(9), YAMAMOTO Takashi, (Sun Mar 26, 4:56 pm)
Re: Integrating securelevel and kauth(9), Elad Efrat, (Sun Mar 26, 5:58 pm)
Re: Integrating securelevel and kauth(9), YAMAMOTO Takashi, (Mon Mar 27, 6:57 am)
Re: Integrating securelevel and kauth(9), Elad Efrat, (Mon Mar 27, 6:47 pm)
Re: Integrating securelevel and kauth(9), Matt Thomas, (Mon Mar 27, 9:37 pm)
Re: Integrating securelevel and kauth(9), Thomas E. Spanjaard, (Mon Mar 27, 9:18 pm)
Re: Integrating securelevel and kauth(9), Martin Husemann, (Mon Mar 27, 7:20 am)
Re: Integrating securelevel and kauth(9), Bill Studenmund, (Fri Mar 24, 6:44 pm)
Re: Integrating securelevel and kauth(9), Elad Efrat, (Fri Mar 24, 6:56 pm)
Re: Integrating securelevel and kauth(9), Bill Studenmund, (Sat Mar 25, 2:05 pm)
Re: Integrating securelevel and kauth(9), David Laight, (Fri Mar 24, 3:01 pm)
Re: Integrating securelevel and kauth(9), Elad Efrat, (Fri Mar 24, 5:51 pm)
Re: Integrating securelevel and kauth(9), Bill Studenmund, (Fri Mar 24, 6:29 pm)
Re: Integrating securelevel and kauth(9), Garrett D'Amore, (Fri Mar 24, 2:17 pm)
Re: Integrating securelevel and kauth(9), Elad Efrat, (Fri Mar 24, 5:24 pm)
Re: Integrating securelevel and kauth(9), Matthew Mondor, (Sat Mar 25, 4:59 pm)
Re: Integrating securelevel and kauth(9), Elad Efrat, (Sat Mar 25, 5:28 pm)
Re: Integrating securelevel and kauth(9), Matthew Mondor, (Sat Mar 25, 6:53 pm)
Re: Integrating securelevel and kauth(9), Elad Efrat, (Sat Mar 25, 7:22 pm)
Re: Integrating securelevel and kauth(9), Garrett D'Amore, (Sat Mar 25, 9:07 pm)
Re: Integrating securelevel and kauth(9), Garrett D'Amore, (Fri Mar 24, 5:55 pm)
Re: Integrating securelevel and kauth(9), Elad Efrat, (Fri Mar 24, 8:29 pm)
speck-geostationary