码迷,mamicode.com
首页 > 其他好文 > 详细

关于去掉ansible运行前的Warning

时间:2015-02-02 20:07:53      阅读:971      评论:0      收藏:0      [点我收藏+]

标签:[warning]: the version of gmp you have installed has a known issue regarding timing vulnerabilities when used with pycrypto. if possible   you should update it (i.e. yum update gmp).   

运行ansible前,会出现一下Warning。

 [WARNING]: The version of gmp you have installed has a known issue regarding
timing vulnerabilities when used with pycrypto. If possible, you should update
it (i.e. yum update gmp).


解决方法:

 忽略下输出  

cp  /usr/lib64/python2.6/site-packages/pycrypto-2.6.1-py2.6-linux-x86_64.egg/Crypto/Util/number.py{,.bak}
 perl -p -i -e "s/^(if _fastmath is not None .*:)/#\1/" /usr/lib64/python2.6/site-packages/pycrypto-2.6.1-py2.6-linux-x86_64.egg/Crypto/Util/number.py
perl -p -i -e "s/^(\s*_warn.*Not using mpz_powm_sec.*)/#\1/" /usr/lib64/python2.6/site-packages/pycrypto-2.6.1-py2.6-linux-x86_64.egg/Crypto/Util/number.py

 问题解决。

本文出自 “Lairuihong” 博客,谢绝转载!

关于去掉ansible运行前的Warning

标签:[warning]: the version of gmp you have installed has a known issue regarding timing vulnerabilities when used with pycrypto. if possible   you should update it (i.e. yum update gmp).   

原文地址:http://lairuihong.blog.51cto.com/9042682/1610732

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!