Bug #17460

Set node.rb file context for Puppet 4

Added by Lukas Zapletal 4 months ago. Updated 4 months ago.

Status:Closed
Priority:Normal
Assigned To:Lukas Zapletal
Category:General Foreman
Target version:Foreman - Team Daniel - iteration 6
Difficulty: Bugzilla link:1393506
Found in release: Pull request:https://github.com/theforeman/foreman-selinux/pull/65
Story points-
Velocity based estimate-
Release1.14.0Release relationshipAuto

Description

/etc/puppetlabs/puppet/node.rb requires to be labeled with foreman_enc_t
(the same as is /etc/puppet/node.rb)

Puppet3 labels:
  1. bzcat /etc/selinux/targeted/active/modules/400/foreman/cil | grep /etc/puppet
    (filecon "/etc/puppet/node.rb" any (system_u object_r foreman_enc_t ((s0) (s0))))
Puppet4 node.rb:
  1. ll Z `find /etc/puppetlabs/ -name node.rb`
    -r-xr-x--
    . puppet puppet system_u:object_r:puppet_etc_t:s0 /etc/puppetlabs/puppet/node.rb

Version-Release number of selected component (if applicable):
@satellite-6.3.0-6.1.beta.el7sat.noarch
foreman-selinux-1.13.1-1.el7.noarch

Steps to Reproduce:
ll -Z /etc/puppetlabs/puppet/node.rb

Associated revisions

Revision 4e27f746
Added by Lukas Zapletal 4 months ago

Fixes #17460 - added puppet4 node.rb context

History

#1 Updated by The Foreman Bot 4 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-selinux/pull/65 added

#2 Updated by Anonymous 4 months ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#3 Updated by Dominic Cleal 4 months ago

  • Release set to 1.14.0

#4 Updated by Daniel Lobato Garcia 4 months ago

  • Target version set to Team Daniel - iteration 6

Also available in: Atom PDF