HomePhorge

(#12463) add secure `replace_file` to Puppet::Util
f9f9961444b4Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#12463) add secure replace_file to Puppet::Util

There is some complex logic around replacing an existing file safely, and it
used to be scattered all over the tree - making the whole system much harder
to use nicely and pleasantly.

It is much better that we provide a central, and easy to use, method for
achieving that specific and common goal in a consistent, secure, and easy to
audit fashion.

Based on code submitted by me on 2010-04-08.

Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>

Details

Provenance
Daniel Pittman <daniel@puppetlabs.com>Authored on
Matthaus Litteken <matthaus@puppetlabs.com>Committed on Feb 20 2012, 8:56 PM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUdb0f8720dea1: (#12459) drop supplementary groups when permanently dropping UID
Branches
Unknown
Tags
Unknown

Event Timeline

Matthaus Litteken <matthaus@puppetlabs.com> committed rPUf9f9961444b4: (#12463) add secure `replace_file` to Puppet::Util (authored by Daniel Pittman <daniel@puppetlabs.com>).Feb 20 2012, 8:56 PM