Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Oct 2014 17:22:42 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 191515] print/cups-base: cupsd incorrectly requests peer's credentials
Message-ID:  <bug-191515-13-cTm23MRKeP@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-191515-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-191515-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191515

Bengt Ahlgren <bengta@sics.se> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bengta@sics.se

--- Comment #4 from Bengt Ahlgren <bengta@sics.se> ---
Created attachment 148622
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=148622&action=edit
patch to scheduler/auth.c

I tried the patch, and it does indeed solve the problem.  The reason is however
not that getsockopt does not work.  The "__APPLE__" variant of the call does
work:

    if (getsockopt(con->http.fd, 0, LOCAL_PEERCRED, &peercred, &peersize))

it is rather that "SOL_SOCKET" does not work, but apparently does not return an
error, but just does not touch "peercred", leaving whatever was there before.

I therefore propose a different patch - see attachment!

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-191515-13-cTm23MRKeP>