This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:24brian.curtinsetrecipients: + brian.curtin, jaraco, eric.smith
2010-07-22 19:58:24brian.curtinsetmessageid: <1279828704.23.0.310372952456.issue9333@psf.upfronthosting.co.za>
2010-07-22 19:58:21brian.curtinlinkissue9333 messages
2010-07-22 19:58:21brian.curtincreate