Files
confdroid_selinux/README.md

86 lines
2.9 KiB
Markdown
Raw Normal View History

2021-10-20 17:18:04 +02:00
# Readme
2026-04-05 16:45:14 +02:00
[![Build Status](https://jenkins.confdroid.com/buildStatus/icon?job=confdroid_selinux)](https://jenkins.confdroid.com/job/confdroid_selinux/)
2017-07-20 12:38:15 +01:00
2021-10-20 17:18:04 +02:00
[[_TOC_]]
## Synopsis
[Security-Enhanced Linux (SELinux)](https://en.wikipedia.org/wiki/Security-Enhanced_Linux) is a Linux kernel security module that provides a mechanism for supporting access control security policies.
2017-07-20 12:38:15 +01:00
2026-04-05 16:45:14 +02:00
`confdroid_selinux` is a Puppet module to automate installation, configuration and troubleshooting of selinux.
2017-07-20 12:38:15 +01:00
2021-10-20 17:18:04 +02:00
## WARNING
***Attention: Never use this puppet module on systems which have been previously configured manually. It is impossible to predict how and what would have been configured, hence previous configurations outside the scope of this module may be overwritten! Automated configurations require a test environment to verify that the module suits the purpose intended by the user, as well as tune the parameters, before deploying into live production***
## Features
2017-07-20 12:38:15 +01:00
Installation:
2021-10-20 17:27:10 +02:00
2017-07-20 12:38:15 +01:00
* install binaries required for selinux and related tools
2017-08-03 12:19:53 +01:00
Configuration
2021-10-20 17:27:10 +02:00
2021-10-20 17:29:43 +02:00
* manage `/etc/sysconfig/selinux` file (file system permissions, selinux context, content)
2017-08-03 12:19:53 +01:00
* manage current selinux status (permissive,enforcing)
2017-07-20 12:38:15 +01:00
2021-10-20 17:18:04 +02:00
## Repo Documentation
See the full Puppet documentation including parameters in `docs/index.html`.
2017-07-20 12:38:15 +01:00
2021-10-20 17:18:04 +02:00
## Dependencies
2017-07-20 12:38:15 +01:00
All dependencies must be included in the catalogue.
2025-05-22 15:26:26 +02:00
* [cd_resources](https://gitlab.confdroid.com/puppet/cd_resources) for yum repo resources.
2017-07-20 12:38:15 +01:00
2021-10-20 17:18:04 +02:00
## Deployment
2017-07-20 12:38:15 +01:00
2021-10-20 17:18:04 +02:00
* native Puppet deployment
2017-07-20 12:38:15 +01:00
via site.pp or nodes.pp
2021-10-20 17:18:04 +02:00
```ruby
2017-07-20 12:38:15 +01:00
node 'example.example.net' {
2026-04-05 16:45:14 +02:00
include confdroid_selinux
2017-07-20 12:38:15 +01:00
}
```
2021-10-20 17:18:04 +02:00
* through Foreman:
2026-04-05 16:45:14 +02:00
In order to apply parameters through Foreman, **__confdroid_selinux::params__** must be added to the host or host group in question.
2017-07-20 12:38:15 +01:00
See [more details about class deployment on Confdroid.com](https://confdroid.com/2017/05/deploying-our-puppet-modules/).
2021-10-20 17:18:04 +02:00
## SELINUX
2017-07-20 12:38:15 +01:00
2021-10-20 17:18:04 +02:00
All files and directories are configured with correct selinux context. If selinux is disabled, these contexts are ignored.
2017-07-20 12:49:07 +01:00
2021-10-20 17:18:04 +02:00
## Known Problems
2017-07-20 12:38:15 +01:00
2021-10-20 17:18:04 +02:00
* Systems reconfigured with selinux disabled require once a reboot for selinux to be enabled. This module will **__not__** do the reboot for you to avoid unexpected outages.
2017-07-20 12:38:15 +01:00
2021-10-20 17:18:04 +02:00
## Support
2017-07-20 12:38:15 +01:00
2020-12-04 16:12:16 +01:00
* OS: CentOS 7
2021-10-20 17:18:04 +02:00
* Puppet 5,6
2017-07-20 12:38:15 +01:00
2021-10-20 17:18:04 +02:00
## Tests
2017-07-20 12:38:15 +01:00
* Puppet Lint
* excluded tests:
* `--no-variable_scope-check`: not applicable as we are inheriting parameters from params class. the lint check does not distinguish between facts and inherited parameters.
* Puppet Parser
* ERB Template Parser
2021-10-20 17:18:04 +02:00
* Sonar Quality Gate
## Contact Us
2017-07-20 12:38:15 +01:00
[contact Us](https://confdroid.com/contact/)
2021-10-20 17:18:04 +02:00
## Disclaimer
2017-07-20 12:38:15 +01:00
ConfDroid as entity is entirely independent from Puppet. We provide custom configuration modules, written for specific purposes and specific environments.
The modules are tested and supported only as documented, and require testing in designated environments (i.e. lab or development environments) for parameter tuning etc. before deploying into production environments.