Project

General

Profile

Actions

Bug #3811

closed

Support SOL_SOCKET SO_PEERCRED socket option on OpenBSD

Bug #3811: Support SOL_SOCKET SO_PEERCRED socket option on OpenBSD

Added by jeremyevans0 (Jeremy Evans) about 15 years ago. Updated over 14 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-openbsd4.8]
Backport:
[ruby-core:32240]

Description

=begin
This makes inspect_peercred in ext/socket/option.c work on OpenBSD-current. OpenBSD added support for it on 2010-06-30. OpenBSD uses a struct sockpeercred instead of a struct ucred for storing the information, because it has used struct ucred for something else since before 1995. See http://fxr.watson.org/fxr/source/sys/ucred.h?v=OPENBSD;im=3 and http://marc.info/?l=openbsd-cvs&m=127792847027664&w=2.

I used a macro to do this, but a typedef would work as well. Tested on OpenBSD amd64, OpenBSD i386, and Linux i386.
=end


Files

patch-ext_socket_option_c (932 Bytes) patch-ext_socket_option_c jeremyevans0 (Jeremy Evans), 09/10/2010 01:23 AM

Updated by akr (Akira Tanaka) about 15 years ago Actions #1

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r29206.
Jeremy, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Actions

Also available in: PDF Atom