Add fix for wehjit (ctypes) SELinux problem

This commit is contained in:
Jason Gerard DeRose 2010-02-11 02:27:00 -07:00
parent eadca473a9
commit 85bb506d5b
2 changed files with 13 additions and 3 deletions

View File

@ -85,7 +85,7 @@ Requires: mod_nss
Requires: python-ldap
Requires: python-krbV
Requires: python-assets
Requires: python-wehjit >= 0.2.0
Requires: python-wehjit >= 0.2.2
Requires: acl
Requires: python-pyasn1 >= 0.0.9a
Requires: libcap
@ -497,6 +497,9 @@ fi
%endif
%changelog
* Thu Feb 11 2010 Jason Gerard DeRose <jderose@redhat.com> - 1.99-16
- Require python-wehjit >= 0.2.2
* Wed Feb 3 2010 Rob Crittenden <rcritten@redhat.com> - 1.99-15
- Add sssd and certmonger as a Requires on ipa-client

View File

@ -20,6 +20,13 @@
IPA web UI.
"""
# Special wehjit initialization to prevent it from loading the plugins that
# require pygments, which uses ctypes, which makes the httpd SELinux policy
# crazy:
import wehjit
wehjit.builtins._skip_pygments = True
wehjit.init_builtins()
from ipalib.backend import Executioner
from ipalib.request import destroy_context
from ipaserver.rpcserver import extract_query