Bug 199320 - SocketSecurity implementation for OpenSolaris in KDEbase-runtime
Summary: SocketSecurity implementation for OpenSolaris in KDEbase-runtime
Status: RESOLVED FIXED
Alias: None
Product: kdesu
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR wishlist
Target Milestone: ---
Assignee: kdesu bugs tracker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-07 18:57 UTC by Moinak Ghosh
Modified: 2011-02-28 09:37 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 4.6.2


Attachments
Suggested SocketSecurity implementation for OpenSolaris (902 bytes, patch)
2009-07-07 18:59 UTC, Moinak Ghosh
Details

Note You need to log in before you can comment on or make changes to this bug.
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