Skip to contentSkip to conversation

Labeled Networking For LSPP: Where we are and where we need to go (quickly)

DISCUSSION Eric Paris 3 participants 6 messages Oct 6, 2006 SELinux security module

lore
Share & tools
lore

Eric Paris

author
#0 lore raw

Last night I built a new test kernel for labeled networking in RHEL5 kernels. That kernel can be found at

http://people.redhat.com/sgrubb/files/lspp

and you want the lspp kernel 51.

What's in this kernel? A whole bunch of patches which might just make it into RHEL5. I have until this Monday, Oct 9 to try again. That means that I really really need everything finished very quickly (aka today) so we can get some basic testing! ALL testing needs to be done with compat_net = 0 and hopefully in enforcing. We don't have a good policy for this yet, but i'll mention that again later. In this last kernel we have

-netlabel config auditing patch
-netlabel cache opps patch
-netlabel unlabeled patch
-secid reconciliation between secmark and xfrm -network_t addition
-secid reconciliation with netlabel
-1/3 of the complete fix for the ipsec information escape

This is great, we are getting there. But, we still need at least 3-4 more patches before tomorrow!!

Patch1: finish the error propagation backport for the ipsec leak (Being completed by Eric Paris)
Patch2: audit ipsec config changes (Being completed by Joy Latten)
Patch3: find and fix current issues with unlabeled_t packets that can't be explained (Paul Moore and Venkat)

There also is some question from Joshua Brindle if the object classes are correct for a number of things. These changes also will need to be done quickly. I'm going to call this Patch4.

Patch4: verify/fix the object class for all netlabel hooks. (Hopefully Venkat will be able to take the lead on this)

It does seem reasonable to think that I will get all 4 of these patches by the end of the day. I really really need that to happen. If so we stand a good chance of getting all of this into RHEL5 and having working labeled networking for LSPP!

After these kernel patches go in we still have more work to do!

Policy! Christopher J. PeBenito has a refpolicy branch with little other than flow_in and flow_out defined at:

svn co http://oss.tresys.com/repos/refpolicy/branches/labeled-networking-2029 refpolicy

I don't think the new constraints are in there as they will cause other problems. Hopefully the constraint issue will pan out in the next day or 2. You can expect lots of denials, but at least enough will be defined that you can get stuff working in enforcing with your own policy modules.

When all is said and done we then have a little bit of kernel cleanup but it won't be for RHEL5. It will just be upstream code cleanup. Namely

1) Patch 7/9 from the reconciliation thread should be cleaned up to better use BUG_ON()
2) Patch 2/9 should drop polsec from the hook interface in security_ops

I only mention those so they won't be forgotten.

********

If your name was mentioned in one of the 4 patches that I want today can you please reply and let me know if you think it is possible? (by "today" I really mean "before about 9AM saturday morning") Once again we are coming up on a tight deadline. Everyone has done so much to get us this close and it looks like Red Hat management is giving me again until this Monday. But I sure wouldn't expect another extension like this again!!

-Eric

--
This message was distributed to subscribers of the selinux mailing 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
Quoted 15 lines · Eric Paris

Last night I built a new test kernel for labeled networking in RHEL5 kernels. That kernel can be found at

http://people.redhat.com/sgrubb/files/lspp

and you want the lspp kernel 51.

What's in this kernel? A whole bunch of patches which might just make it into RHEL5. I have until this Monday, Oct 9 to try again. That means that I really really need everything finished very quickly (aka today) so we can get some basic testing! ALL testing needs to be done with compat_net = 0 and hopefully in enforcing. We don't have a good policy for this yet, but i'll mention that again later. In this last kernel we have

Review

Quoted 2 lines
(quoted diff) +0 -2
-netlabel config auditing patch
-netlabel cache opps patch

Just a reminder: these first two are bugfixes which should go into RHEL5 regardless.

Quoted 1 line

-netlabel unlabeled patch

While not a bugfix like the previous two, this is a "logic bug" fix which should go into RHEL5.

Quoted 5 lines
(quoted diff) +0 -4
-secid reconciliation between secmark and xfrm
-network_t addition
-secid reconciliation with netlabel
-1/3 of the complete fix for the ipsec information escape
Quoted 8 lines

This is great, we are getting there. But, we still need at least 3-4 more patches before tomorrow!!

Patch1: finish the error propagation backport for the ipsec leak (Being completed by Eric Paris)
Patch2: audit ipsec config changes (Being completed by Joy Latten)
Patch3: find and fix current issues with unlabeled_t packets that can't be explained (Paul Moore and Venkat)

I'm working on this but it's taking time getting all the right policy bits sorted so I can differentiate between SECINITSID_UNLABELED and SECINITSID_NETMSG as they will both show up as "unlabeled_t" in all the released policies (at least I think so).

Venkat, if you have a policy rpm/clean-patch/tarball something it would be a help if you could post that or send it to me (I saw your earlier postings, but only the constraints were really in patch form). Or if you could verify the lspp.51 kernel w/o the NetLabel/secid patch (turn off patch 25008, if you want I can send you a diff to the spec file - it's only two lines). So far I have not seen any differences between the stock lspp.51 kernel and the lspp.51 kernel without the NetLabel/secid patch.

Quoted 6 lines

There also is some question from Joshua Brindle if the object classes are correct for a number of things. These changes also will need to be done quickly. I'm going to call this Patch4.

Patch4: verify/fix the object class for all netlabel hooks. (Hopefully Venkat will be able to take the lead on this)

Just to clarify, these aren't netlabel specific hooks/changes, these are secid hooks/changes. Otherwise, I agree, Venkat has the best understanding of this work so I believe he should "drive" - I'll do whatever I can to support this work.

Signature · 7 lines
paul moore
linux security @ hp

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#2 lore raw
Quoted 15 lines · Paul Moore
Quoted 8 lines · Eric Paris

This is great, we are getting there. But, we still need at least 3-4 more patches before tomorrow!!

Patch1: finish the error propagation backport for the ipsec leak (Being completed by Eric Paris)
Patch2: audit ipsec config changes (Being completed by Joy Latten)
Patch3: find and fix current issues with unlabeled_t packets that can't be explained (Paul Moore and Venkat)

I'm working on this but it's taking time getting all the right policy bits sorted so I can differentiate between SECINITSID_UNLABELED and SECINITSID_NETMSG as they will both show up as "unlabeled_t" in all the released policies (at least I think so).

Quoted 7 lines

Venkat, if you have a policy rpm/clean-patch/tarball something it would be a help if you could post that or send it to me (I saw your earlier postings, but only the constraints were really in patch form). Or if you could verify the lspp.51 kernel w/o the NetLabel/secid patch (turn off patch 25008, if you want I can send you a diff to the spec file - it's only two lines). So far I have not seen any differences between the stock lspp.51 kernel and the lspp.51 kernel without the NetLabel/secid patch.

In case anyone wants to play with the lspp.51 minus the NetLabel/secid patch, I put up a modified source RPM here:

* http://free.linux.hp.com/~pmoore/files

Signature · 7 lines
paul moore
linux security @ hp

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#3 lore raw
In reply to Paul Moore
Quoted 4 lines · Paul Moore
Quoted 1 line

-netlabel unlabeled patch

While not a bugfix like the previous two, this is a "logic bug" fix which should go into RHEL5.

Where is the patch for this?

Signature · 7 lines
James Morris
<[email protected]>

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#4 lore raw
Quoted 9 lines · James Morris
Quoted 4 lines · Paul Moore
Quoted 1 line

-netlabel unlabeled patch

While not a bugfix like the previous two, this is a "logic bug" fix which should go into RHEL5.

Where is the patch for this?

I believe this is the patch I RFC'd to the SELinux list yesterday morning and posted to netdev for inclusion yesterday evening. Looking at my mail this morning as well as your git tree show that it was accepted/applied.

Eric, please correct me if I'm wrong.

Signature · 7 lines
paul moore
linux security @ hp

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
author
#5 lore raw
Quoted 8 lines · Paul Moore
Quoted 7 lines · James Morris
Quoted 4 lines · Paul Moore
Quoted 1 line

-netlabel unlabeled patch

While not a bugfix like the previous two, this is a "logic bug" fix which should go into RHEL5.

Quoted 8 lines
Quoted 2 lines

Where is the patch for this?

I believe this is the patch I RFC'd to the SELinux list yesterday morning and posted to netdev for inclusion yesterday evening. Looking at my mail this morning as well as your git tree show that it was accepted/applied.

Eric, please correct me if I'm wrong.

Correct,

[PATCH 1/1] NetLabel: use SECINITSID_UNLABELED for a base SID

-Eric

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.