Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64258 - repoman needs to sign eclasses so that portage can verify them
Summary: repoman needs to sign eclasses so that portage can verify them
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Repoman (show other bugs)
Hardware: All All
: Highest critical (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 45692 371161 482630 (view as bug list)
Depends on:
Blocks: 64256
  Show dependency tree
 
Reported: 2004-09-16 06:07 UTC by SpanKY
Modified: 2022-07-12 03:18 UTC (History)
12 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2004-09-16 06:08:13 UTC
perhaps to keep the clutter down in the eclasses folder we could use a subdir

eutils.eclass's Manifest would be here for example: eclass/Manifests/eutils

this should be pretty high priority because eclasses provide an easy way to subvert the security provided by Manifests for ebuilds
Comment 1 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-01-27 16:30:14 UTC
*** Bug 45692 has been marked as a duplicate of this bug. ***
Comment 2 Zac Medico gentoo-dev 2011-06-11 23:16:55 UTC
*** Bug 371161 has been marked as a duplicate of this bug. ***
Comment 3 Zac Medico gentoo-dev 2011-06-28 09:22:36 UTC
Checksums are easy to do. For gpg signatures, we'll need PMS to specify how verification is supposed to work.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-06-28 10:13:36 UTC
I guess a GLEP would be enough.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2013-08-27 14:27:42 UTC
*** Bug 482630 has been marked as a duplicate of this bug. ***
Comment 6 Nicolas Pöhlmann 2013-08-27 23:51:37 UTC
So I'm taking the discussion from https://bugs.gentoo.org/show_bug.cgi?id=64258 to here.

(In reply to  Jeroen Roovers from comment 64258 - #2)
> That is similarly untrue: if you change $EBUILD and then run `ebuild $EBUILD
> manifest', you're in the same boat. Manifest signing would help there but we
> still cannot rely on that now.

I agree with you with the fact that if an attacker have local access to the computer that he could simply run `ebuild $EBUILD manifest' and the user won't notice that. But when he's already got local access to a computer there are easier ways than manipulating something in the local portage dir.

But that's not the security hole I thought. In my scenario the attacker only have access to a gentoo mirror and can just edit the eclass-files without any acknowledge and security check. Only a simple file edit could infect thousands of gentoo systems in a short time. The checksums which are generated for ebuilds could remove this attacking scenario completely.
Comment 7 Zac Medico gentoo-dev 2017-11-26 22:49:30 UTC
We can use GLEP 74 manifests for this, but we need to make sure that it doesn't interfere with manifest generation for the rsync tree.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-12 03:18:36 UTC
repoman support has been removed per bug 835013.

Please file a new bug (or, I suppose, reopen this one) if you feel this check is still applicable to pkgcheck and doesn't already exist.