Jira (PUP-3187) Puppet file parameter selinux_ignore_defaults doesn't work as expected

7 views
Skip to first unread message

Adrien Thebo (JIRA)

unread,
May 16, 2017, 7:07:05 PM5/16/17
to puppe...@googlegroups.com
Adrien Thebo updated an issue
 
Puppet / Bug PUP-3187
Puppet file parameter selinux_ignore_defaults doesn't work as expected
Change By: Adrien Thebo
Labels: triaged
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Moses Mendoza (JIRA)

unread,
May 18, 2017, 1:49:36 PM5/18/17
to puppe...@googlegroups.com

Martijn Pepping (JIRA)

unread,
May 20, 2019, 9:33:04 AM5/20/19
to puppe...@googlegroups.com
Martijn Pepping commented on Bug PUP-3187
 
Re: Puppet file parameter selinux_ignore_defaults doesn't work as expected

The selinux_ignore_defaults behavior isn't the main issue here.

As Filip Pytloun describes correctly: when the Puppet agent is installed, and the Puppet service starts, it reads all available SElinux policies on the system. The problem starts to occur when additional SElinux policies are installed (via the 'container-selinux' RPM on Red Hat for example). The issue is that the Puppet service isn't aware of these new SElinux policies that are installed on the system - not until the Puppet service is restarted.

So, the outcome of a Puppet run via the Puppet service is completely different to the outcome when 'puppet agent --test'. This because the 'puppet agent' command is aware of the all SElinux policies upon invocation, where the Puppet service still needs a restart to 'learn' these new policies.

The thing is when (or after) installing SElinux policies via Puppet, the Puppet service should be restarted to become aware of the new policies. Restarting the puppet service during a puppet run creates somekind of inception-like-situation that breaks the puppet run.

 

 

This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Martijn Pepping (JIRA)

unread,
May 20, 2019, 9:34:02 AM5/20/19
to puppe...@googlegroups.com

Josh Cooper (JIRA)

unread,
Oct 1, 2019, 1:08:05 AM10/1/19
to puppe...@googlegroups.com

Ciprian Badescu (JIRA)

unread,
Feb 20, 2020, 5:14:06 AM2/20/20
to puppe...@googlegroups.com
Ciprian Badescu commented on Bug PUP-3187
 
Re: Puppet file parameter selinux_ignore_defaults doesn't work as expected

Martijn Pepping, the issue with puppet running as daemon should have been solved on https://tickets.puppetlabs.com/browse/PUP-2169.

Filip Pytloun, can you check if that solves also your problem?

Reply all
Reply to author
Forward
0 new messages