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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Stephen Smalley
Date: Wednesday, April 16, 2008 - 9:31 am

On Mon, 2008-04-14 at 21:59 -0700, Crispin Cowan wrote:

If you aren't concerned with unauthorized data flow into
your /etc/shadow and .ssh files, then I think we'll just have to stop
right there in our discussion, as we evidently don't have a common point
of reference in what we mean by "security".  Personally I'd be troubled
if an unauthorized entity can ultimately feed data to such files, even
if indirectly by tricking a privileged process into conveying the data
to its ultimate target, a not-so-uncommon pattern.


In some cases, you can simply prohibit a security-relevant process from
taking untrustworthy inputs.  Like blocking privileged processes from
following untrustworthy symlinks to counter malicious symlink attacks or
from reading any files other than ones created by the admin.  In other
cases, you need to allow untrustworthy inputs to ultimately flow to the
security-relevant process, but you want to force them through some kind
of validation as you say above, which you can do by enforcing a
processing pipeline that forces the data to go through a subsystem that
performs validation and/or sanitization before it ever reaches the
security-relevant process.  That's how integrity is an information flow
problem.  And this isn't a new idea, btw, it is one that was expressed
long ago in the Biba model, a variant of which happens to be implemented
and used in Vista, and is more usefully achievable via Type Enforcement
since there we can control the processing flow precisely and bind the
validation/sanitization subsystem to specific code.


Except that you have to consider what is happening on the server too,
given that the files are visible to local processes there, and what
happens on all of the clients.  And the aliasing problem that exists in
the local filesystem case becomes exacerbated in the NFS environment.


It isn't a strawman argument.  I know that AppArmor doesn't try to apply
pathnames to non-files.  Which leads it down the first case of
inconsistent" control - at the end of the day in looking at an AppArmor
policy you can't say anything about how information may have ultimately
flowed in violation of your confidentiality or integrity goals because
you have a lossy abstraction.  Whereas we can convey the same uniform
control over files, network IPC, local IPC, etc and make such
statements.


Making that inference when a file is first installed (as from rpm) is
reasonable.  restorecon (the utility) is for the filesystem to the
initial install-time labeling state, which is why it uses the same
mapping.  Making that inference on every access in complete ignorance of
the actual runtime state of the system is what I object to.

-- 
Stephen Smalley
National Security Agency

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