Bug 233774

Summary: Test for Root fails even if the process has no root privileges
Product: [Frameworks and Libraries] Akonadi Reporter: Andre Heinecke <aheinecke>
Component: generalAssignee: Volker Krause <vkrause>
Status: RESOLVED FIXED    
Severity: normal CC: kdepim-bugs
Priority: NOR    
Version: 4.4   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:

Description Andre Heinecke 2010-04-08 21:55:19 UTC
Version:            (using Devel)
Compiler:          mingw32 
OS:                MS Windows
Installed from:    Compiled sources

The Akonadi self test testRootUser fails on Windows if the process is started by an user with administrative privileges (eg. default Windows User) even when the process itself has no "admin privileges"

I don't know the behaviour on Windows NT < 6.0 (before Vista) but with User Account Control a process started by an administrator does not have full system access. 
On Windows NT >= 6.0 there could be a check for the process integrity level. For more information:
http://weblogs.asp.net/kennykerr/archive/2006/09/29/Windows-Vista-for-Developers-_1320_-Part-4-_1320_-User-Account-Control.aspx


Although i would argue that such a test does not really make sense on Windows because the user has either disabled access control or explicitly started akonadi with higher privileges.
Comment 1 Andre Heinecke 2010-07-02 12:51:28 UTC
SVN commit 1145265 by aheinecke:

Remove testrootuser selftest on Windows systems.

CCBUG: 233774


 M  +2 -0      selftestdialog.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1145265
Comment 2 Andre Heinecke 2010-07-02 12:56:01 UTC
Tested that mysqld starts even with increased permission levels on Windows. So this self test is uneccessary on Windows Systems.