login
Header Space

 
 

Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO.

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Stephen Smalley <sds@...>
Cc: Serge E. Hallyn <serue@...>, Matthew Wilcox <matthew@...>, Tetsuo Handa <penguin-kernel@...>, <paul.moore@...>, <akpm@...>, <linux-kernel@...>, <linux-security-module@...>, <takedakn@...>, <linux-fsdevel@...>, <netdev@...>
Date: Thursday, April 17, 2008 - 3:49 am

Stephen Smalley wrote:
Of *course* AppArmor protects the integrity of /etc/shadow, and 
unauthorized parties are not permitted to feed data into that file 
unless explicit access is granted. The difference is in how it is done:

    * SELinux marks the inode with a label, and only processes with the
      right permissions can mess with the label.
          o Residual problem: someone could rename the inode and drop a
            new inode into place named "/etc/shadow". SELinux addresses
            this with access control on the parent directory.
    * AppArmor checks the name "/etc/shadow" so that you cannot access
      that name without explicit permission.
          o AppArmor cares about the integrity of what the OS returns
            when you access the name "/etc/shadow" and does not care a
            wit what happens to the inode that was *previously* named
            "/etc/shadow".

Now, without running off into the weeds again, tell me again why I 
should care about the *integrity* of an inode that was *previously* 
known as "/etc/shadow"?

Ok. I view the above as a marginal nice-to-have property that I don't 
actually care much about, because it is a large amount of work to manage 
for a small amount of integrity to gain. People who want that should use 
some kind of information flow controlling policy system like SELinux.

IMHO people with that need are a small minority, which is why I think it 
is over-strong to say that integrity "requires" information flow 
control. No it doesn't; the particular form of integrity you are talking 
about requires information flow control, but other forms do not.

You don't have to consider any such thing when you are *only* concerned 
with confining the impact of the process running on the NFS client.

If you want to concern yourself with funny business coming from other 
clients, then you need to apply policy to those other clients. If you 
want to control funny business happening on the server, then you need to 
apply security policy to the server. But this is all irrelevant to 
secure confinement of the single NFS client process being confined.

Conversely, at the end of the day you can't say much about what your 
SELinux policy enforces, because you can't understand it :)

Duality again: SELinux policy is easier for machines (semantic 
analyzers) to understand. AppArmor is easier for humans to understand.

So associating a security property with a name is ok if you do it 
statically at some arbitrary point in time, but not if you consider it 
at the time of access? WtF? Isn't that a gigantic race condition?

To the contrary, I argue that the *current* name of a file is vastly 
more meaningful for security properties than the name the file had some 
months ago when someone ran restorecon over the file system.

I've said this before too: SELinux works well if your IT systems are 
static. AppArmor works better if your IT systems change, precisely 
because it evaluates the access based on the name at the time of access, 
rather than some historic name the file once had.

Crispin

-- 
Crispin Cowan, Ph.D.               http://crispincowan.com/~crispin
The Olympic Games: Symbolizing oppressiiion and corruption for over a
hundred years

--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Tetsuo Handa, (Fri Apr 4, 8:23 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Paul Moore, (Mon Apr 7, 11:40 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Toshiharu Harada, (Wed Apr 9, 4:37 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Serge E. Hallyn, (Wed Apr 9, 9:22 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Toshiharu Harada, (Thu Apr 10, 11:57 pm)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Matthew Wilcox, (Wed Apr 9, 9:11 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Tetsuo Handa, (Fri Apr 11, 10:12 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Matthew Wilcox, (Fri Apr 11, 10:30 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Crispin Cowan, (Sun Apr 13, 9:41 pm)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Matthew Wilcox, (Mon Apr 14, 9:48 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Crispin Cowan, (Mon Apr 14, 11:21 pm)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Serge E. Hallyn, (Sun Apr 13, 12:36 pm)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Crispin Cowan, (Sun Apr 13, 10:05 pm)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Toshiharu Harada, (Tue Apr 15, 9:00 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Stephen Smalley, (Mon Apr 14, 10:17 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Crispin Cowan, (Tue Apr 15, 12:59 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Stephen Smalley, (Wed Apr 16, 12:31 pm)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Crispin Cowan, (Thu Apr 17, 3:49 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Stephen Smalley, (Thu Apr 17, 8:42 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Jamie Lokier, (Thu Apr 17, 4:45 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Casey Schaufler, (Mon Apr 14, 1:05 pm)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Tetsuo Handa, (Tue Apr 15, 7:14 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Pavel Machek, (Wed Apr 16, 3:13 pm)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Tetsuo Handa, (Thu Apr 17, 7:58 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Pavel Machek, (Thu Apr 17, 1:46 pm)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Serge E. Hallyn, (Fri Apr 18, 9:21 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Casey Schaufler, (Tue Apr 15, 12:32 pm)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Crispin Cowan, (Thu Apr 17, 3:24 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Tetsuo Handa, (Sat Apr 12, 7:33 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Stephen Smalley, (Wed Apr 9, 9:26 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Stephen Smalley, (Wed Apr 9, 8:49 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Toshiharu Harada, (Thu Apr 10, 1:57 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Stephen Smalley, (Thu Apr 10, 8:51 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Toshiharu Harada, (Fri Apr 11, 7:48 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Casey Schaufler, (Mon Apr 7, 6:57 pm)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Daniel Walker, (Fri Apr 4, 12:29 pm)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Tetsuo Handa, (Mon Apr 7, 9:56 am)
Re: [TOMOYO #7 30/30] Hooks for SAKURA and TOMOYO., Daniel Walker, (Mon Apr 7, 11:39 am)
speck-geostationary