Re: portage/rsync question
shimi <[email protected]> Tue, 6 Apr 2010 23:26:42 +0300
| Newsgroups | gmane.linux.gentoo.security |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Apr 6, 2010 at 10:26 PM, Butterworth, John W. < [email protected]> wrote: > Hi. I have a security-related question for Portage/rsync: > > > > If someone makes a change to a copy of a program (say a backdoor added to > apache) hosted on a public mirror, will the sync’ing between the public > mirror and the main rotation mirror determine that it's corrupted (via 'bad' > checksum) on the public-mirror side and replace it? > > > > > If it's hosted @ Gentoo, if the main server is intact, the next sync will overwrite the mirror-local copy If it's not hosted on on Gentoo's mirror, Gentoo's sync'ing is unrelated (and I understand that's the scenario you refer to) Anyways, unless the *ebuild* was *also* poisoned (which can't happen by a cracker changing stuff at apache.org), when you try to *emerge* the package, emerge will fail because Portage verifies various different hash signatures on the source files - which are embedded in the portage package tree [1]. HTH, -- Shimi [1] Try: cat /usr/portage/www-servers/apache/Manifest