1 |
On Tue, Apr 6, 2010 at 10:26 PM, Butterworth, John W. < |
2 |
jbutterworth@×××××.org> wrote: |
3 |
|
4 |
> Hi. I have a security-related question for Portage/rsync: |
5 |
> |
6 |
> |
7 |
> |
8 |
> If someone makes a change to a copy of a program (say a backdoor added to |
9 |
> apache) hosted on a public mirror, will the sync’ing between the public |
10 |
> mirror and the main rotation mirror determine that it's corrupted (via 'bad' |
11 |
> checksum) on the public-mirror side and replace it? |
12 |
> |
13 |
> |
14 |
> |
15 |
> |
16 |
> If it's hosted @ Gentoo, if the main server is intact, the next sync will |
17 |
overwrite the mirror-local copy |
18 |
|
19 |
If it's not hosted on on Gentoo's mirror, Gentoo's sync'ing is unrelated |
20 |
(and I understand that's the scenario you refer to) |
21 |
|
22 |
Anyways, unless the *ebuild* was *also* poisoned (which can't happen by a |
23 |
cracker changing stuff at apache.org), when you try to *emerge* the package, |
24 |
emerge will fail because Portage verifies various different hash signatures |
25 |
on the source files - which are embedded in the portage package tree [1]. |
26 |
|
27 |
HTH, |
28 |
|
29 |
-- Shimi |
30 |
|
31 |
[1] Try: cat /usr/portage/www-servers/apache/Manifest |