SELinux: Allow NetLabel to directly cache SIDs
authorPaul Moore <paul.moore@hp.com>
Tue, 29 Jan 2008 13:44:18 +0000 (08:44 -0500)
committerJames Morris <jmorris@namei.org>
Tue, 29 Jan 2008 21:17:27 +0000 (08:17 +1100)
Now that the SELinux NetLabel "base SID" is always the netmsg initial SID we
can do a big optimization - caching the SID and not just the MLS attributes.
This not only saves a lot of per-packet memory allocations and copies but it
has a nice side effect of removing a chunk of code.

Signed-off-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: James Morris <jmorris@namei.org>

No differences found