Skip to contentSkip to conversation

IPSEC integration (was Re: SELinux and covert channels)

DISCUSSION Jesse Pollard 2 participants 2 messages Jan 11, 2001 SELinux security module

lore
Share & tools
lore
#0 lore raw

Bennett Todd <[email protected]>:

Quoted 20 lines

2001-01-11-09:01:41 Stephen Smalley:

Quoted 6 lines

Additionally, although mandatory access controls have been implemented for sockets, the controls are currently limited because support for communicating packet labels across the network has not yet been implemented. As discussed in the documentation, the intent is to use IPSEC security associations to implicitly label packets once IPSEC is integrated.

This I thought was the most exciting single bit of the whole announcement.

While any MAC implementation is certainly interesting, and the more expressive ones are especially appealing for their potential for sandboxing, the real hard problems we're fighting with now, and expecting to be battling in the near future, center on defining really tight security perimeters around distributed apps. The ability to have a coherent enforcement of a centrally-specified policy over all the data throughout a distribute app is very, very exciting indeed.

Quoted 2 lines

Especially to me, since I've been telling people that it's the next big step for some time now:-).

YES --

I would also like to see the abiltity of a fully integrated IPSec with some "additional" abilities:

1. identify the remote user (including the ability to do user id mapping remote user -> local user)
2. identify remote security labels (including label translation remote lable ->local lable)
3. Use the above information to authenticate/authorize socket connections.
4. prevent local users from accessing sockets without authorization ("user" daemon prevention, unauthorized communication with remote hosts...)
5. Selectively enforce the use of encryption with remote hosts
6. Have the security authorization data base (?? not sure this is the right place) to handle/recognize various authentication methods - Kerberos, PKI, SSL, ... perhaps via a "PAM" definition. (I do mean PKI as separate from SSL as a communications protocol.)

It would seem to me that a complete handling of authentication would include IPSec and local logins as well. Merging this together should simplify a lot of application programming... It would be able to use simple socket code that would transparently provide authentication without the use of user level (and ignorable) libraries. If the remote (or local) user cannot be authenticated, then the communication will not be allowed.

It will no longer be up to the user to protect data in transit. If the SA has the remote host marked as requiring encryption, then it will be. If the SA (at either end of the communication) doesn't allow something, then the link will be disallowed.

At the cost of some redundancy - Users would not be able to open sockets that allow any form of unauthentication/unauthorized communication.

-------------------------------------------------------------------------
Jesse I Pollard, II
Email: [email protected]

Any opinions expressed are solely my own.

--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw

Sounds like you're thinking along the same lines I am.

Seems to me like there are a few very, very hard parts to this problem.

One is designing a database capable of flexibly representing the sort of permission and delegation relationships that show up in real organizations. That's a currently open problem, and I know lots of people are working on it. I kinda suspect by the time it gets solved, the other bits will be all lined up.

Another piece to the puzzle is providing facilities for a centralized policy specification database to be consistently enforced with a single mechanism; it seems like it's within the bounds of possibility that selinux, with some suitable integration with ipsec, may possibly provide the needed mechanism.

I could believe that a PK database of some sort may provide the glue required to associate identities as specified in the above policy database with real entities. I'd be happier if it didn't look so likely that the PK database will end up being based on the ugliest-of-all-possible-worlds design X.509, but I suppose that can be lived with.

Another component I've been thinking about is more a piece of plumbing that'll be needed to make things work as they should, rather than a fundamentally separate security component. The fantasy of a fine-grained integration of ipsec security associations with fine-grained, user/app level security policy specification, implies that ipsec security associations are going to be coming up and going down in a very fluid fashion. It seems to me that making working distributed apps is going to end up requiring dynamic routing through these transient tunnels. I'm still pondering that one, though. On the one hand it seems like OSPF's dynamically self-configuring, multicast flooding nature would be the responsive and maintainable approach to desire; on the other hand it seems like BGP4's simplicity of running through straight TCP connections is more likely to actually _work_ over ipsec. I'm hoping that this new evolution won't require actually inventing another working dynamic routing protocol, but I've not yet gotten a really happy feeling about that question.

-Bennett