HomePhorge

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

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
Nick Lewis <nick@puppetlabs.com>Committed on Feb 13 2012, 8:52 PM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU76d0749f0a9a: (#12459) drop supplementary groups when permanently dropping UID
Branches
Unknown
Tags
Unknown

Event Timeline

Nick Lewis <nick@puppetlabs.com> committed rPU0ad532a4b26e: (#12463) add secure `replace_file` to Puppet::Util (authored by Daniel Pittman <daniel@puppetlabs.com>).Feb 13 2012, 8:52 PM