Skip to content

Salt Stack Formula to set up and configure selinux, Security-Enhanced Linux

License

Notifications You must be signed in to change notification settings

pauldalewilliams/selinux-formula

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

selinux-formula

Salt Stack Formula to set up and configure SELinux, Security-Enhanced Linux

NOTICE BEFORE YOU USE

TODO

  • Set up map.jinja to handle defaults and make the formula modular
  • Break out setroubleshoot into its own formula

Instructions

  1. Fork this repository and then add your fork as a GitFS backend in your Salt master config.
  2. Configure your Pillar top file (/srv/pillar/top.sls), see pillar.example
  3. Include this Formula within another Formula or simply define your needed states within the Salt top file (/srv/salt/top.sls).

Available states

Manage SELinux - includes all of the states listed below

Install SELinux packages

Manage SELinux config

Manage SELinux booleans

Manage SELinux ports

Manage SELinux file contexts

Manage SELinux modules

Manage setroubleshoot (install, configure email alerts)

Additional resources

None

Formula Dependencies

None

Contributions

Contributions are always welcome. All development guidelines you have to know are

  • write clean code (proper YAML+Jinja syntax, no trailing whitespaces, no empty lines with whitespaces, LF only)
  • set sane default settings
  • test your code (see Testing below)
  • update README.rst doc

Salt Compatibility

Tested with:

  • 2018.3.x

OS Compatibility

Tested with:

  • CentOS 6
  • CentOS 7

Testing

Testing is done with Test Kitchen for machine setup and testinfra for integration tests.

Requirements

  • Python & modules in requirements.txt
  • Ruby
  • Vagrant - required since SELinux doesn't work inside Docker containers, open to suggestions
gem install bundler
bundle install
pip install -r requirements.txt
kitchen test

About

Salt Stack Formula to set up and configure selinux, Security-Enhanced Linux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • SaltStack 69.8%
  • Python 29.2%
  • Ruby 1.0%