git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Security problem

From
ALAlexander Litvinov <lan@academsoft.ru>
Date
Jun 16, 2006, 03:54 UTC
Message-ID
<200606161054.46813.lan@academsoft.ru>
In-Reply-To
<Pine.LNX.4.64.0606151948230.5498@g5.osdl.org>
> If you can't trust your local filesystem, you are screwed.

You are right, I trust my file system. But if our team had central repo with ssh access to that machine, every developer can hack central repo.

Whould git-clone/git-fetch warn me about this ?
My own test with (another) local repo says:
lan@lan:~/tmp/git/test> git clone 1 2
Generating pack...
Done counting 3 objects.
Deltifying 3 objects.
 100% (3/3) done
Total 3, written 3 (delta 0), reused 0 (delta 0)
error: git-checkout-index: unable to read sha1 file of a 
(3609f20ebd357679b111783e8afaf36ec46427f3)

It can't checkout object (3609f20ebd357679b111783e8afaf36ec46427f3 is the original file). It seems packed repos are safe from this point.

Previous: Linus TorvaldsNext: Linus Torvalds
Message 4 of 8 in “Re: Security problem”
  1. Junio C HamanoJun 16, 2006
  2. Linus TorvaldsJun 16, 2006
  3. Linus TorvaldsJun 16, 2006
  4. Alexander LitvinovJun 16, 2006
  5. Linus TorvaldsJun 16, 2006
  6. Alexander LitvinovJun 16, 2006
  7. Linus TorvaldsJun 16, 2006
  8. Alexander LitvinovJun 16, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.