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

Re: How to disable safe directories?

From
HDHarald Dunkel <harald.dunkel@aixigo.com>
Date
May 21, 2024, 14:49 UTC
Message-ID
<98381fb2-5110-4e7f-a504-c5ff75dcd050@aixigo.com>
In-Reply-To
<d71c7dff-46a7-4ac8-a8c7-ab4985458071@aixigo.com>
On 2024-05-21 16:25:17, Harald Dunkel wrote:
Show 6 quoted lines
> 
> It is possible to disable this feature globally using something
> like
> 
> 	git config --system --add safe.directory /somepath/.git
> 
PS: Its obvious that each peer running git can verify only local
directories for dubious access bits. Working with shared remote
repositories you have to consider setting the safe.directory option
on the remote server.

Since CVE-2024-32004 assumes an attacker running its own repository, I just wonder why he should use the most recent, fixed git version?

Regards Harri

Previous: Jeffrey Walton
Message 6 of 6 in “How to disable safe directories?”
  1. Jeffrey WaltonMay 21, 2024
  2. Harald DunkelMay 21, 2024
  3. Jeffrey WaltonMay 21, 2024
  4. Harald DunkelMay 21, 2024
  5. Jeffrey WaltonMay 21, 2024
  6. Harald DunkelMay 21, 2024

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.