Message224050
Hi. This patch adds a new test helper module, initially added in issue21518, for controlling various aspects on Windows platform, like acquiring / releasing privileges etc. At the same time, it contains a modification in test.support.skip_unless_symlink, so that it tries to acquire the privilege, failing otherwise. The only downside is that acquiring SeCreateSymbolicLinkPrivilege is only possible for admins and it seems to be that they have the privilege by default. On the other hand, for SeBackupPrivilege must be explicitly acquired, so the purpose of this module isn't redundant.
The part of acquiring a privilege using ctypes is based on similar code by Jason R. Coombs. |
|
Date |
User |
Action |
Args |
2014-07-26 12:39:33 | Claudiu.Popa | set | recipients:
+ Claudiu.Popa, zach.ware |
2014-07-26 12:39:33 | Claudiu.Popa | set | messageid: <1406378373.46.0.337360125553.issue22080@psf.upfronthosting.co.za> |
2014-07-26 12:39:33 | Claudiu.Popa | link | issue22080 messages |
2014-07-26 12:39:33 | Claudiu.Popa | create | |
|