NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/44424: IP_IPSEC_POLICY is set-option only - get-option not active



>Number:         44424
>Category:       kern
>Synopsis:       IP_IPSEC_POLICY is set-option only - get-option not active
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 20 09:50:00 +0000 2011
>Originator:     Dr. W. Stukenbrock
>Release:        NetBSD 5.1
>Organization:
Dr. Nagler & Company GmbH
>Environment:
        
        
System: NetBSD test-s0 4.0 NetBSD 4.0 (NSW-WS) #0: Tue Aug 17 17:28:09 CEST 
2010 wgstuken@test-s0:/usr/src/sys/arch/amd64/compile/NSW-WS amd64
Architecture: x86_64
Machine: amd64
>Description:
        In order to figure out if IP_IPSEC_POLICY is supported on a socket you 
normaly try to read the current
        setting. Due to the fact that only PRCO_SETOPT is supported this is 
currently impossible.
        Due to the missing support, a user level program is also unable to 
detect if it is useing IPSEC or not.
>How-To-Repeat:
        Try to check if IP_IPSEC_POLICY is supported by a socket from user 
level. You normaly will issue a get
        operation - but you get ENOPROTOOPT, even if it is supported.
>Fix:
        Activate the IP_IPSEC_POLICY code for PRCO_GETOPT in 
/usr/src/sys/netinet/ip_output.c around line 1405.
        A check it the code is OK should be done first for both IPSEC and 
FAST_IPSEC.

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index