[1+1=2]

OneAndOneIs2

« HardwareBetter shell »

Thu, Sep 01, 2011

[Icon][Icon]Why Kernel.org's compromise doesn't matter

• Post categories: Omni, FOSS, In The News, Technology

There's been a few hysterical "Oh noes, teh Linux kernel is insecure now!!!1!!" repsonses to the admission on kernel.org that somebody gained root access to one of their servers.

And they're wrong. Here's a quick explanation as to why:

When you commit to git, every file you've changed gets saved as a new object in the git filesystem. Not the CHANGE you made - not the diff. The actual files, in toto. The whole lot gets saved.

Obviously, lots of compression and cleverness happens, but ignoring all that: A copy of the new file version is saved.

Then when the commit is created, something called a SHA is generated. This is a 40-character long string of letters and numbers. And it's not random, it's cryptographically generated based on the commit objects (i.e. the files you've just changed) and the parent commit's own SHA.

In other words, a commit's SHA is unique and only matches the exact contents of that commit. If you change any of the commit objects in an attempt to inject nasty code into the kernel, then the object checksum will no longer match the SHA. And if you try to replace a commit, then it will no longer match the other maintainer's checkouts, so they won't grab the code either.

Git was specifically designed with this functionality in mind: If you have one single "known-good" commit SHA, you can trust not just it, but every single previous commit in its history.

So the kernel's history is still completely clean: If a new commit was added, it's trivial for the maintainers to find and remove it. If a previous commit was amended, git will simply refuse to use it.

The kernel is fine. This was a minor embrassment for kernel.org, and nothing else.

Nothing to see here. Move on.

1 comment

web design adelaide
Comment from: web design adelaide [Visitor] · http://www.adamant.com.au
A family member recommended me to this resource.
Thnx for the information.
08/04/12 @ 16:37

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)
 

[Links][icon] My links

[Icon][Icon] I'm in the Perl newsletter again. I should try and write about some other language...
21/05/12

[Icon][Icon] Facebook Syndication Error
22/05/12

[Icon][Icon] I last listened to:
Johann Pachelbel - Canon in D major

[Icon][Icon] Most recent photo:
js.js

[Icon][Icon]About Me

[Icon][Icon]About this blog

[Icon][Icon]My LQ profile

[Icon][Icon]My /. profile

[Icon][Icon]My Wishlist

[Icon]MyCommerce

[FSF Associate Member]


May 2012
Mon Tue Wed Thu Fri Sat Sun
 << <   > >>
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Search

User tools

XML Feeds

eXTReMe Tracker

Valid XHTML 1.0 Transitional

Valid CSS!

[Valid RSS feed]

powered by b2evolution free blog software