Re: hardlinks to setuid binaries

Brook Milligan <[email protected]> Fri, 25 Mar 2022 15:51:07 -0600
Newsgroups gmane.os.netbsd.devel.security
Message-ID <[email protected]>
> On Mar 25, 2022, at 3:42 PM, Robert Elz <[email protected]> wrote:
>=20
> It depends how the update is done.   unlink old, install new,
> will have that effect, but chmod 0 old, unlink old, install
> new does not, nor does cp new old (in all cases, with
> needed chown, chmod, etc, done after the binary update as well).

So, how do pax, tar, and rsync do this?  I expect they are the common =
means of updating that might lead to this situation, and therefore =
perhaps likely candidates for reducing the problem (if they do it in an =
undesired way).

Cheers,
Brook