Bug #6598
closedUser story #6589: Improve Rudder security in 3.1: Inventory signature and security, SELinux compliance
User story #2882: Rudder should be SELinux compliant
rudder selinux module is not working
Description
When rudder-webapp.pp is installed as selinux module we get an error (at least on redhat6):
semodule -i /opt/rudder/share/selinux/rudder-webapp.pp libsepol.module_package_read_offsets: wrong magic number for module package: expected 0xf97cff8f, got 0x75646f6d libsemanage.parse_module_headers: Could not parse module data.
checkmodule -b /opt/rudder/share/selinux/rudder-webapp.pp checkmodule: loading policy configuration from /opt/rudder/share/selinux/rudder-webapp.pp libsepol.policydb_read: policydb magic number 0x75646f6d does not match expected magic number 0xf97cff8c or 0xf97cff8d checkmodule: error(s) encountered while parsing configuration
I can create a valid pp file for selinux by creating a .te file and transform it via a selinux makefile
my rudder-webapp.te file:
policy_module(rudder-webapp, 1.0) gen_require(` type httpd_t; type var_t; type http_cache_port_t; class tcp_socket name_connect; class file getattr; ') allow httpd_t http_cache_port_t:tcp_socket name_connect;
and running the following command:
make -f /usr/share/selinux/devel/Makefile rudder-webapp.pp
This generates a rudder-webapp.pp file that i can install with semodule.
Benoit, Matthieu, Alexis, do you have any hindsight on this?
Updated by Vincent MEMBRÉ over 9 years ago
- Status changed from New to In progress
- Assignee changed from Benoît PECCATTE to Vincent MEMBRÉ
Updated by Vincent MEMBRÉ over 9 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Vincent MEMBRÉ to Benoît PECCATTE
- Pull Request set to https://github.com/Normation/rudder-packages/pull/660
Updated by Vincent MEMBRÉ over 9 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset rudder-packages|23c825dd8ae288c7011fcc6d158952da612366d7.
Updated by Benoît PECCATTE over 9 years ago
Applied in changeset rudder-packages|a7c38cf7565a759232c8ccc64aef12a247bac64a.
Updated by Vincent MEMBRÉ over 9 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 3.1.0~beta1 which were released today.
- Announcement 3.1
- Changelog 3.1
- Download information: https://www.rudder-project.org/site/get-rudder/downloads/