Bug 213062 - [labeled networking] NetLabel does not protect against setsockopt()
Summary: [labeled networking] NetLabel does not protect against setsockopt()
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kernel
Version: 5.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Eric Paris
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-10-30 18:23 UTC by Paul Moore
Modified: 2007-11-30 22:07 UTC (History)
2 users (show)

Fixed In Version: beta2
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-12-23 01:53:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Simple test program (1.49 KB, text/x-csrc)
2006-10-30 18:23 UTC, Paul Moore
no flags Details

Description Paul Moore 2006-10-30 18:23:30 UTC
Description of problem:
Currently SELinux policies do not prevent most applications from calling
setsockopt() which puts the NetLabel security attributes at risk from tampering
by unprivileged applications.  A patch has been posted to the netdev and SELinux
mailing lists which addresses this problem by preventing applications from
removing NetLabel security attributes from a socket as well as requiring the
CAP_NET_RAW capability to set a CIPSO option on a socket.  The patch can be
found here:

 * http://marc.theaimsgroup.com/?l=linux-netdev&m=116223202106768&w=2

I am also attaching a simple test program which demonstrates the problem.

Version-Release number of selected component (if applicable):
All current RHEL5 kernels with NetLabel enabled.

How reproducible:
N/A

Steps to Reproduce:
1. N/A
2.
3.
  
Actual results:
N/A

Expected results:
N/A

Additional info:
This directly effects the LSPP efforts of RH, HP, and IBM.

Comment 1 Paul Moore 2006-10-30 18:23:30 UTC
Created attachment 139738 [details]
Simple test program

Comment 2 Eric Paris 2006-11-10 17:33:06 UTC
patch posted for rhel5 kernel inclusion Nov 10

Comment 3 Jay Turner 2006-11-21 19:15:30 UTC
QE ack for RHEL5.

Comment 4 Don Zickus 2006-12-05 19:51:39 UTC
in 2.6.18-1.2817.el5

Comment 5 RHEL Program Management 2006-12-23 01:53:32 UTC
A package has been built which should help the problem described in 
this bug report. This report is therefore being closed with a resolution 
of CURRENTRELEASE. You may reopen this bug report if the solution does 
not work for you.



Note You need to log in before you can comment on or make changes to this bug.