libUCL / UCL as FreeBSD config question

Eduardo Morras emorrasg at yahoo.es
Sun Nov 22 11:14:15 UTC 2015


On Fri, 20 Nov 2015 13:18:57 -0500
Allan Jude <allanjude at freebsd.org> wrote:

> On 2015-11-20 13:14, Eduardo Morras wrote:
> > On Fri, 20 Nov 2015 13:06:16 -0500
> > Allan Jude <allanjude at freebsd.org> wrote:
> > 
> >> Although some limitation in libucl mean that, if you have a config
> >> that has comments in it, the comments are lost, as they are not
> >> represented in the in-memory version of the object that then gets
> >> serialized for output. If you treat the config files as a database,
> >> then this is fine, but if the user expects to still hand edit them
> >> with an editor, this is a fairly big POLA violation.
> > 
> > POLA as in
> > https://en.wikipedia.org/wiki/Principle_of_least_astonishment or
> > https://en.wikipedia.org/wiki/Principle_of_least_privilege ?
> 
> Astonishment. The user put meaningful comments in their config file,
> they used the utility to make a change to some value elsewhere in the
> config file, now their config file is written possibly in a different
> order, and with no comments.

Thanks for the clarification, I thought the user should not have enough privileges to access the config files.

> >> -- 
> >> Allan Jude
> > ---   ---
> > Eduardo Morras <emorrasg at yahoo.es>


More information about the freebsd-hackers mailing list