Bug 199320

Summary: SocketSecurity implementation for OpenSolaris in KDEbase-runtime
Product: [Applications] kdesu Reporter: Moinak Ghosh <moinakg>
Component: generalAssignee: kdesu bugs tracker <kdesu-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Solaris   
Latest Commit: Version Fixed In: 4.6.2
Attachments: Suggested SocketSecurity implementation for OpenSolaris

Description Moinak Ghosh 2009-07-07 18:57:48 UTC
Version:            (using KDE 4.2.4)
Compiler:          Gcc 4.4 
OS:                Solaris
Installed from:    Compiled From Sources

kdesu uses a stub SocketSecurity implementation on OpenSolaris and cribs at runtime. The attached patch is a suggested implementation using the getpeerucred function in OpenSolaris.
Comment 1 Moinak Ghosh 2009-07-07 18:59:15 UTC
Created attachment 35131 [details]
Suggested SocketSecurity implementation for OpenSolaris
Comment 2 Oswald Buddenhagen 2009-07-11 13:08:38 UTC
the code looks sane as such. but i kinda dislike the #ifdef Q_OS_SOLARIS. i think you should add HAVE_GETPEERUCRED to config-runtime.h.cmake.
Comment 3 Moinak Ghosh 2009-07-15 18:32:25 UTC
Agreed on HAVE_GETPEERUCRED. I will provide an updated patch after a while.
Comment 4 Oswald Buddenhagen 2010-11-06 22:34:15 UTC
ping?
Comment 5 Oswald Buddenhagen 2010-11-07 00:09:26 UTC
related to bug 255697
Comment 6 Oswald Buddenhagen 2011-02-27 17:23:46 UTC
Git commit a219567a3c023c4326522ee7c99b439616c8ced9 by Oswald Buddenhagen.
Committed on 27/02/2011 at 17:17.
Pushed by ossi into branch 'KDE/4.6'.

add peer identification on solaris

BUG: 199320
FIXED-IN: 4.6.2

M  +1    -0    kdesu/kdesud/CMakeLists.txt     
M  +3    -0    kdesu/kdesud/config-kdesud.h.cmake     
M  +16   -0    kdesu/kdesud/secure.cpp     

http://commits.kde.org/kde-runtime/a219567a3c023c4326522ee7c99b439616c8ced9
Comment 7 Oswald Buddenhagen 2011-02-28 09:37:19 UTC
Git commit 8c95718b9e195e0f6071a34ba39b1bc69ce33894 by Oswald Buddenhagen.
Committed on 28/02/2011 at 09:30.
Pushed by ossi into branch 'KDE/4.6'.

actually include the new config header ...

CCBUG: 199320
CCBUG: 255697

M  +1    -0    kdesu/kdesud/secure.cpp     

http://commits.kde.org/kde-runtime/8c95718b9e195e0f6071a34ba39b1bc69ce33894