Bug 213062 - [labeled networking] NetLabel does not protect against setsockopt()
[labeled networking] NetLabel does not protect against setsockopt()
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kernel (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Eric Paris
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2006-10-30 13:23 EST by Paul Moore
Modified: 2007-11-30 17:07 EST (History)
2 users (show)

See Also:
Fixed In Version: beta2
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-12-22 20:53:32 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

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

  None (edit)
Description Paul Moore 2006-10-30 13:23:30 EST
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:

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

Expected results:

Additional info:
This directly effects the LSPP efforts of RH, HP, and IBM.
Comment 1 Paul Moore 2006-10-30 13:23:30 EST
Created attachment 139738 [details]
Simple test program
Comment 2 Eric Paris 2006-11-10 12:33:06 EST
patch posted for rhel5 kernel inclusion Nov 10
Comment 3 Jay Turner 2006-11-21 14:15:30 EST
QE ack for RHEL5.
Comment 4 Don Zickus 2006-12-05 14:51:39 EST
in 2.6.18-1.2817.el5
Comment 5 RHEL Product and Program Management 2006-12-22 20:53:32 EST
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.