SELinux and maxent

Source: Internet
Author: User

Maxent is a library used by our system to extract keywords using the maximum entropy. When I checked the system log this morning, I found a SELinux alarm:
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

Run sealert-l 6c940625-07c7-4f49-87a5-8f06b9361590 to view the following details:
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. 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
Library is fixed. Please file
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
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

It may be a problem with maxent Python wrapper. Run chcon-T textrel_shlib_t/usr/local/lib/python2.5/Site-packages/maxent/_ cmaxent. So as prompted.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.