Project

General

Profile

Actions

Feature #2820

closed

Improve SELinux policy for puppet

Added by Lukas Zapletal almost 11 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Thank to PassengerRuby feature in Passenger 4.0, it is possible to setup different Ruby binary for each Ruby application. We need to create /usr/bin/ruby-foreman and ruby-puppetmaster with proper selinux contexts and configure this in httpd.

For Foreman we will move from passenger_t to newly created foreman_t domain and change our policy. For puppetmaster we will reuse puppetmaster_t domain which is already present in the base policy (and works with puppetmaster/webrick already).

We can use this from Fedora 20 (passenger 4.0). In Fedora 19 we cannot apply this approach as there is 3.0 version and in RHEL 6.4 passenger_t already have puppetmaster rules. As a workaround for F19, we will temporarily allow passenger_t to do puppetmaster stuff.


Related issues 3 (0 open3 closed)

Related to Installer - Bug #3080: Installing puppetmaster with passenger without foreman causes AVC denialsClosedActions
Related to SELinux - Feature #3503: As a user I'd like to have SELinux Enforcing on all infrastructure, and agentsClosedActions
Has duplicate SELinux - Bug #3470: Improve SELinux policy for puppetDuplicateLukas ZapletalActions
Actions

Also available in: Atom PDF