1 --- ./xbmc/lib/libPython/XBPyPersistentThread.cpp.orig 2010-07-11 03:20:51.000000000 -0700
2 +++ ./xbmc/lib/libPython/XBPyPersistentThread.cpp 2010-07-11 03:23:40.000000000 -0700
5 void XBPyPersistentThread::CreatePolicy(const ThreadIdentifier threadId)
7 - if (PyEval_ThreadsInitialized())
11 - // File System policy - read only
13 - ThreadPolicy *fsPolicy = TPAllocPolicy(threadId, FILE_SYSTEM);
15 - TPAddPolicy(threadId, fsPolicy);
18 - // Shared library policy
20 - ThreadPolicy *slPolicy = TPAllocPolicy(threadId,SHARED_LIBRARY);
23 - rule.fileName = _P("special://xbmc/system/python");
24 - rule.accessMode = FILE_ACCESS_READ;
26 - TPAddRuleToPolicy(threadId, slPolicy, &rule);
28 - TPAddPolicy(threadId, slPolicy);
31 - // ProcessExec policy
33 - ThreadPolicy *pePolicy = TPAllocPolicy(threadId,PROCESS_EXEC);
35 - TPAddPolicy(threadId, pePolicy);
40 void XBPyPersistentThread::DeletePolicy(const ThreadIdentifier threadId)
42 - TPDeletePolicy(threadId, NULL);
45 void XBPyPersistentThread::SetSecurityLevel(const CStdString& securityLevel)