On 07/25/2013 05:35 PM, Colin Walters wrote:
You might be interested to know that OSTree does that automatically:
# ostree admin config-diff
M group
M fstab
M gshadow
M shadow
M passwd
M resolv.conf
A vconsole.conf
A .pwd.lock
A passwd-
A shadow-
A group-
A gshadow-
A X11
A X11/xorg.conf.d
A X11/xorg.conf.d/00-keyboard.conf
#
The way this works is that the default etc is shipped as /usr/etc,
so we can always diff it versus the real /etc.
Ideally, you'd also have a third copy, the pristine version of the
configuration file that was installed before the file was edited first.
That way, you could run three-way diffs and clarify which differences
are actual local edits, and which differences come from packaging changes.
--
Florian Weimer / Red Hat Product Security Team
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel