Re: PATCH: Configurable file mode mask
David Steele <david@pgmasters.net>
From: David Steele <david@pgmasters.net>
To: Michael Paquier <michael@paquier.xyz>
Cc: Andres Freund <andres@anarazel.de>,
Michael Paquier <michael.paquier@gmail.com>,
Peter Eisentraut <peter.eisentraut@2ndquadrant.com>,
Alvaro Herrera <alvherre@alvh.no-ip.org>, Stephen Frost
<sfrost@snowman.net>, Adam Brightwell <adam.brightwell@crunchydata.com>,
Robert Haas <robertmhaas@gmail.com>,
"Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>,
Tom Lane <tgl@sss.pgh.pa.us>, Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2018-03-05T20:25:49Z
Lists: pgsql-hackers
On 3/1/18 11:18 PM, Michael Paquier wrote: > > Based on my recent lookup at code level for this feature, the patch for > pg_resetwal (which could have been discussed on its own thread as well), > would be fine for commit. The thing could be extended a bit more but > there is nothing opposing even a basic test suite to be in. There are no core changes, so it doesn't seem like the tests can hurt anything. > Then you > have a set of refactoring patches, which still need some work. New patches posted today, hopefully those address most of your concerns. > And > finally there is a rather invasive patch on top of the whole thing. I'm not sure if I would call it invasive since it's an optional feature that is off by default. Honestly, I think the refactor in 02 is more likely to cause problems even if the goal there is *not* to change the behavior. > The > refactoring work shows much more value only after the main feature is > in, still I think that unifying the default permissions allowed for > files and directories, as well as mkdir() calls has some value in > itself to think it as an mergeable, independent, change. I agree. > I think that > it would be hard to get the whole patch set into the tree by the end of > the CF though I hope it does make it, it's a pretty big win for security. > but cutting the refactoring pieces would be doable. At > least it would provide some base for integration in v12. And the > refactoring patch has some pieces that would be helpful for TAP tests as > well. I've gone pretty big on tests in this patch because I recognize it is a pretty fundamental behavior change. Thanks, -- -David david@pgmasters.net
Commits
-
Allow group access on PGDATA
- c37b3d08ca68 11.0 landed
-
Refactor dir/file permissions
- da9b580d8990 11.0 landed
-
Revert "Add basic TAP test setup for pg_upgrade"
- 58ffe141eb37 11.0 cited
-
Add basic TAP test setup for pg_upgrade
- f41e56c76e39 11.0 cited