HomePhorge

(#17488) Capture access violations for selinux context of file resources
76b2629b2a43Unpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

(#17488) Capture access violations for selinux context of file resources

...and deal with them gracefully without aborting the run.
A simple reproducer of the problem (abort), to be run unprivileged:

puppet apply --execute "file { '/root/chuj': ensure => absent; }"

(#17488) Don't abort while checking managedhome on nonexistent user provider

The user resource itself should fail itself and this prevents falling back to
that. Simple test case (unprivileged):

before$ puppet apply --execute 'user { "kokot": managehome => true }'
Parameter managehome failed: Validate method failed for class managehome: undefined method `manages_homedir?' for NilClass:Class
after$ puppet apply --execute 'user { "kokot": managehome => true }'
err: Could not find a suitable provider for user
notice: Finished catalog run in 0.10 seconds

Details

Provenance
Lubomir Rintel <lubo.rintel@gooddata.com>Authored on
Jeff McCune <jeff@puppetlabs.com>Committed on Nov 19 2012, 10:28 PM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU0971c2464432: Merge pull request #1276 from joshcooper/ticket/3.0.x/17007-restore-execute…
Branches
Unknown
Tags
Unknown

Event Timeline

Jeff McCune <jeff@puppetlabs.com> committed rPU76b2629b2a43: (#17488) Capture access violations for selinux context of file resources (authored by Lubomir Rintel <lubo.rintel@gooddata.com>).Nov 19 2012, 10:28 PM