Message111213
| Author |
brian.curtin |
| Recipients |
brian.curtin, eric.smith, jaraco |
| Date |
2010年07月22日.19:58:21 |
| SpamBayes Score |
0.013824156 |
| Marked as misclassified |
No |
| Message-id |
<1279828704.23.0.310372952456.issue9333@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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" |
|
History
|
|---|
| 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 |
|