Don't start syncdaemon on windows vista or later if running with escalated privileges
Bug #904300 reported by
Roberto Alsina
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Ubuntu One Client | Status tracked in Trunk | |||||
Stable-3-0 |
Fix Released
|
High
|
Roberto Alsina | |||
Trunk |
Fix Released
|
High
|
Roberto Alsina |
Bug Description
If the user starts syncdaemon with escalated privileges, the Ubuntu One and partial folders will have broken permissions.
There is no reason to actually do that, and on Linux we prevent running as root. Therefore, we should make that check crossplatform.
Related branches
lp:~ralsina/ubuntuone-client/fix_904300
- Natalia Bidart (community): Approve
- Diego Sarmentero (community): Approve
-
Diff: 52 lines (+17/-3)2 files modifiedtests/platform/windows/test_os_helper.py (+13/-1)
ubuntuone/platform/windows/os_helper.py (+4/-2)
Changed in ubuntuone-client: | |
status: | Triaged → Fix Committed |
To post a comment you must log in.
In ubuntuone/ platform/ windows/ os_helper. py, we have this code that should be completed:
def is_root():
"""Return if the user is running as root."""
# TODO: Do check if we are running as admin
return False