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

Re: How to disable safe directories?

From
JWJeffrey Walton <noloader@gmail.com>
Date
May 21, 2024, 10:45 UTC
Message-ID
<CAH8yC8mNns_XiQHp3=q_tYr03Q+kR1r=2WOYha1XMp+cYs9WDQ@mail.gmail.com>
In-Reply-To
<3e4a7071-60b0-4f7a-b347-d584d5eb076e@aixigo.com>
On Tue, May 21, 2024 at 6:42 AM Harald Dunkel <harald.dunkel@aixigo.com> wrote:
Show 17 quoted lines
>
> On 2024-05-21 10:39:32, Jeffrey Walton wrote:
> > Hi Everyone,
> >
> > I've got a big DoS on my hands since safe directories landed on
> > Fedora. I think this commit is the one responsible, but I may be
> > mistaken: <https://github.com/git/git/commit/8959555cee7e>.
> >
> > At this point I've wasted enough time on them. Now I would like to
> > disable them completely.
> >
> > How do I disable the safe directory changes?
> >
>
> That is actually pretty easy: Kick out the commit. I would suggest
> to turn the die() into a warning(), though, giving people time to
> adopt this restriction.
Thanks Harri.

Would that be something like safe_directories.enabled = false? If not, can you point to a setting?

Jeff
Previous: Harald DunkelNext: Harald Dunkel
Message 3 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.