SELinux和maxent
来源:互联网 发布:sqlserver安装polybase 编辑:程序博客网 时间:2024/06/01 21:39
maxent是我们的系统用最大熵做关键字提取时用到的一个库。今天上午查看系统日志的时候,发现有一个SELinux的报警:
Apr 3 04:57:49 nserver setroubleshoot: SELinux is preventing /usr/local/bin/python from loading /usr/local/lib/python2.5/site-packages/maxent/_cmaxent.so which requires text relocation. For complete SELinux messages. run sealert -l 6c940625-07c7-4f49-87a5-8f06b9361590
执行sealert -l 6c940625-07c7-4f49-87a5-8f06b9361590看到的详细信息如下:
Summary
SELinux is preventing /usr/local/bin/python from loading
/usr/local/lib/python2.5/site-packages/maxent/_cmaxent.so which requires
text relocation.
Detailed Description
The /usr/local/bin/python application attempted to load
/usr/local/lib/python2.5/site-packages/maxent/_cmaxent.so which requires
text relocation. This is a potential security problem. Most libraries do
not need this permission. Libraries are sometimes coded incorrectly and
request this permission. The http://people.redhat.com/drepper/selinux-
mem.html web page explains how to remove this requirement. You can
configure SELinux temporarily to allow /usr/local/lib/python2.5/site-
packages/maxent/_cmaxent.so to use relocation as a workaround, until the
library is fixed. Please file a
http://bugzilla.redhat.com/bugzilla/enter_bug.cgi against this package.
Allowing Access
If you trust /usr/local/lib/python2.5/site-packages/maxent/_cmaxent.so to
run correctly, you can change the file context to textrel_shlib_t. "chcon -t
textrel_shlib_t /usr/local/lib/python2.5/site-packages/maxent/_cmaxent.so"
The following command will allow this access:
chcon -t textrel_shlib_t /usr/local/lib/python2.5/site-packages/maxent/_cmaxent.so
可能是maxent的Python Wrapper的问题吧。按提示执行了chcon -t textrel_shlib_t /usr/local/lib/python2.5/site-packages/maxent/_cmaxent.so,回头再看看
- SELinux和maxent
- MaxEnt
- R maxent
- maxent 使用
- SELinux入门:了解和配置SELinux semanage
- SELinux状态和关闭SELinux的方法
- selinux策略和控制
- 关闭iptables和SELinux
- selinux 和mysql
- 关于selinux和ACL
- SELinux 和网络服务设置
- 查看和修改SELinux
- 关闭SELinux和防火墙
- linux防火墙和SELinux
- SELinux 开启和关闭
- 谈谈opennlp maxent
- selinux
- SELinux
- Remoting技术初探--实现简单服务器客户机通信
- How to add MFC Common class into your application based on SDK?
- Oreilly好书征集译者!
- 故宫一游
- AJAX读取XML赋值给下拉列表
- SELinux和maxent
- 对widget(挂件技术)的一点看法
- javascript code all (2) (转转)
- Windows Shell 编程 第四章
- java.io包
- Sql Server:Cursor的例子
- 终于忍不住啦
- j2ee中配置字符过滤器
- Prototype 详解