[Bug 283110] freebsd-update IDS vs. installed permissions for kernels (444 vs 555)

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 09 Dec 2024 21:36:24 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283110

--- Comment #8 from wbe@psr.com ---
(In reply to John Baldwin from comment #7)
> ... you'd have to have some way to know what the distribution metadata is ...
My impression (possibly wrong, since I haven't read the code) is that
freebsd-update pulls in copies of the distributions for both the old and new
release, and that that's how UpdateIfUnmodified is able to determine whether
the file has been modified.  If distributions include permissions, then there's
enough information for a permission comparison.

Unfortunately, I now see that this won't work when KeepModifiedMetadata is true
and >1 release has been installed since the permission/metadata change, since
the distribution-change will then look like a user-change from the previous
distribution.

> Possibly this could just be handled as a special case in freebsd-update
> though as files rarely change metadata like permissions.
That may well turn out to be easier, faster, and work in more situations.

-- 
You are receiving this mail because:
You are the assignee for the bug.