updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / boxee-source / 12563_fix.patch
blob1f1959ac13c41bdbc41c8ae980ec992f944533b4
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
3 @@ -390,42 +390,10 @@
5 void XBPyPersistentThread::CreatePolicy(const ThreadIdentifier threadId)
7 - if (PyEval_ThreadsInitialized())
8 - {
10 - //
11 - // File System policy - read only
12 - //
13 - ThreadPolicy *fsPolicy = TPAllocPolicy(threadId, FILE_SYSTEM);
15 - TPAddPolicy(threadId, fsPolicy);
17 - //
18 - // Shared library policy
19 - //
20 - ThreadPolicy *slPolicy = TPAllocPolicy(threadId,SHARED_LIBRARY);
21 - FileRule rule;
23 - rule.fileName = _P("special://xbmc/system/python");
24 - rule.accessMode = FILE_ACCESS_READ;
26 - TPAddRuleToPolicy(threadId, slPolicy, &rule);
28 - TPAddPolicy(threadId, slPolicy);
30 - //
31 - // ProcessExec policy
32 - //
33 - ThreadPolicy *pePolicy = TPAllocPolicy(threadId,PROCESS_EXEC);
35 - TPAddPolicy(threadId, pePolicy);
37 - }
40 void XBPyPersistentThread::DeletePolicy(const ThreadIdentifier threadId)
42 - TPDeletePolicy(threadId, NULL);
45 void XBPyPersistentThread::SetSecurityLevel(const CStdString& securityLevel)