Message111213
As it currently stands, the possibility exists that some users might not have the SeCreateSymbolicLinkPrivilege privilege enabled (depending on security settings, corporate policy, etc). There should be some method of enabling that privilege outside of the way we do it in the tests (using ctypes).
Attached is a quick prototype...no docs or tests yet. If you don't have the privilege enabled, "os.enable_symlink()" will attempt to enable it for you (True if successful, False if not).
For the security conscious: "The AdjustTokenPrivileges function cannot add new privileges to the access token. It can only enable or disable the token's existing privileges" |
|
Date |
User |
Action |
Args |
2010-07-22 19:58:24 | brian.curtin | set | recipients:
+ brian.curtin, jaraco, eric.smith |
2010-07-22 19:58:24 | brian.curtin | set | messageid: <1279828704.23.0.310372952456.issue9333@psf.upfronthosting.co.za> |
2010-07-22 19:58:21 | brian.curtin | link | issue9333 messages |
2010-07-22 19:58:21 | brian.curtin | create | |
|