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.
Created attachment 35131 [details] Suggested SocketSecurity implementation for OpenSolaris
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.
Agreed on HAVE_GETPEERUCRED. I will provide an updated patch after a while.
ping?
related to bug 255697
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
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