New submission from Brian Curtin <cur...@acm.org>: 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" ---------- assignee: brian.curtin components: Extension Modules files: enable_symlink.diff keywords: patch messages: 111213 nosy: brian.curtin, eric.smith, jaraco priority: normal severity: normal status: open title: Expose a way to enable os.symlink on Windows type: behavior versions: Python 3.2 Added file: http://bugs.python.org/file18132/enable_symlink.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9333> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com