Re: [PATCH 2/2] Version 9 (2.6.24-rc1) Smack: Simplified Mandatory Access Control Kernel

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Stephen Smalley
Date: Friday, October 26, 2007 - 1:34 pm

On Wed, 2007-10-24 at 20:46 -0700, Casey Schaufler wrote:
<snip>

Wrong strategy, racy.  Use getpeersec hooks, SO_PEERSEC for stream or
SCM_SECURITY for datagram.  They aren't just for labeled IPSEC - they
work fine for NetLabel too, see SELinux for an example.

<snip>

Same deal, use SCM_SECURITY and the getpeersec_dgram hook to do this in
a race-free way.


Ditto.


-- 
Stephen Smalley
National Security Agency

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

Messages in current thread:
Re: [PATCH 2/2] Version 9 (2.6.24-rc1) Smack: Simplified M ..., Stephen Smalley, (Fri Oct 26, 1:34 pm)