Bug 233774 - Test for Root fails even if the process has no root privileges
Summary: Test for Root fails even if the process has no root privileges
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 4.4
Platform: Compiled Sources Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Volker Krause
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-08 21:55 UTC by Andre Heinecke
Modified: 2010-07-02 12:56 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

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