From owner-freebsd-hackers@freebsd.org Sun Nov 22 11:14:14 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F1DF4A35EE2 for ; Sun, 22 Nov 2015 11:14:14 +0000 (UTC) (envelope-from emorrasg@yahoo.es) Received: from nm23-vm1.bullet.mail.ir2.yahoo.com (nm23-vm1.bullet.mail.ir2.yahoo.com [212.82.97.16]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4F60E19AE for ; Sun, 22 Nov 2015 11:14:13 +0000 (UTC) (envelope-from emorrasg@yahoo.es) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1448190649; bh=IboNtIN2ONcx7Gxp4WGIM+CHrUXiVop5aTy859oszGw=; h=Date:From:To:Subject:In-Reply-To:References:From:Subject; b=ckJCp3zgy/66HolZNdQE2BV2jQ1mjzL2QJRAK6uBzJpc33AoUkm/ZMWhIttu32npDa4IiiPOTXhqOZDZAAbRoTMA94GpF4xSfjt/SiLSDTGEoNRVSym92M48ki4TeHQjs7ghNL7q3A75h6x3vAU2wq+qdkIZKBT406gnYOKsCK5IEKeBaKAZzjXWuPw90vnKjZcQ0sgCffNN8wnf6RTyvZHqtNkCzvkm2k/GN6gOkrfSfF2WAmWoC9bbsCANk5m5oVtUbIWTc4DPto7dv/75s5UEYkeVrzvDY4SRgTmxtaPfLSPhgjv0Mz5wCvk/2xi87rUOSRCkxgDSNHkGmI+Ngw== Received: from [212.82.98.62] by nm23.bullet.mail.ir2.yahoo.com with NNFMP; 22 Nov 2015 11:10:49 -0000 Received: from [46.228.39.100] by tm15.bullet.mail.ir2.yahoo.com with NNFMP; 22 Nov 2015 11:10:49 -0000 Received: from [127.0.0.1] by smtp137.mail.ir2.yahoo.com with NNFMP; 22 Nov 2015 11:10:49 -0000 X-Yahoo-Newman-Id: 262296.38162.bm@smtp137.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: HFuJ_wgVM1mu03cHHr8CwKPPyouOo46Mn5DZQXT9..vOn5r NeZM7pq_NHGTuVmPZs6be59X8KQFbPX.eKPQQYF7w89AvaFrpZxnnho.PTxg 9KE86cGRjx5S0_Q_QFQO8y3zRgXiMG4AT4EWPGwxPB0vzlBfJV8pdg1ujBbp JwvVaJxjfoUxwB6ZBoU1eZfTnrB.EFehAVUi8rSLolKmUZwz0zHV.PGEpjio 1OukoXD96JN6mjRFxoka.8DUM4ItzB2CeV7FjcQQMgGd415I1LLczZOrY41p wndV59NCiPv4Cb7SUGGndHYUcIUk2p0bgvRokhnuR3AqDNWdze89dhdTmDHa KBy6I9_j3ldykZ54TJq2dwBdR0Ku8yYXzk5NXM2yam.3Q14kE_rvbIuvcbiL qoGZsPFWjAAwea1m_BKA9Dw6g0bGD7crZV1ousoy50cBCIH89HLfbGVHyLnl Fs2aCHKA0ikr1VtKEVWNf1Br0T9FsS9h6bUEpvJzxBiT_eh5mD8ZuZ3Rr9fZ V8LnesCpMukEIemgq9oIJGs7aPJjhrIlwqhz_0k8- X-Yahoo-SMTP: mX392iiswBAeJNdO_s.EW62LZDJR Date: Sun, 22 Nov 2015 12:11:09 +0100 From: Eduardo Morras To: freebsd-hackers@freebsd.org Subject: Re: libUCL / UCL as FreeBSD config question Message-Id: <20151122121109.3b757d2c550609a7fbd46748@yahoo.es> In-Reply-To: <564F6411.6040208@freebsd.org> References: <5B598F72-C5DD-48FD-866D-F90E117D646E@rdsor.ro> <564F6118.5030702@freebsd.org> <20151120191426.a720ca4f4e73bd867d535104@yahoo.es> <564F6411.6040208@freebsd.org> X-Mailer: Sylpheed 3.4.3 (GTK+ 2.24.28; amd64-portbld-freebsd10.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Nov 2015 11:14:15 -0000 On Fri, 20 Nov 2015 13:18:57 -0500 Allan Jude wrote: > On 2015-11-20 13:14, Eduardo Morras wrote: > > On Fri, 20 Nov 2015 13:06:16 -0500 > > Allan Jude 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