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

Re: What's cooking in git.git (May 2022, #05; Mon, 16)

From
Carlo Marcelo Arenas Belón <carenas@gmail.com>
Date
May 19, 2022, 15:23 UTC
Message-ID
<20220519152344.ktrifm3pc42bjruh@Carlos-MacBook-Pro-2.local>
In-Reply-To
<xmqq5ym4zpmn.fsf@gitster.g>
On Mon, May 16, 2022 at 10:37:04PM -0700, Junio C Hamano wrote:
Show 14 quoted lines
> 
> * cb/path-owner-check-with-sudo (2022-05-12) 4 commits
>  - git-compat-util: allow root to access both SUDO_UID and root owned
>  - t0034: add negative tests and allow git init to mostly work under sudo
>  - git-compat-util: avoid failing dir ownership checks if running privileged
>  - t: regression git needs safe.directory when using sudo
> 
>  With a recent update to refuse access to repositories of other
>  people by default, "sudo make install" and "sudo git describe"
>  stopped working.  This series intends to loosen it while keeping
>  the safety.
> 
>  Will merge to 'next'?
>  source: <20220513010020.55361-1-carenas@gmail.com>

I am obviously biased, and probably confused, since this is already in the "cooking" section, but I think this is ready and should be merged to next without the optional patch 4.

That MIGHT helps us understand how bad of a regression it is in the real world for not being able to access a repository owned by root by a root user that got there by doing `sudo -s` and then browsing around (which IMHO we shouldn't be encouraging people to do, anyway).

and if there is an outcry, it will be easily "fixed" by getting patch 4 in, which ironically might had been the only patch almost no one commented on so far, but I think is less likely to have issues that might need to be fixed before doing so.

Carlo
Previous: Taylor BlauNext: Junio C Hamano
Message 4 of 9 in “What's cooking in git.git (May 2022, #05; Mon, 16)”
  1. Junio C HamanoMay 17, 2022
  2. Derrick StoleeMay 17, 2022
  3. Taylor BlauMay 20, 2022
  4. Carlo Marcelo Arenas BelónMay 19, 2022
  5. Junio C HamanoMay 19, 2022
  6. ab/env-array (was: What's cooking in git.git (May 2022, #05; Mon, 16))Ævar Arnfjörð Bjarmason, May 19, 2022
  7. Junio C HamanoMay 19, 2022
  8. Ævar Arnfjörð BjarmasonMay 20, 2022
  9. ar/send-email-confirm-by-default (was: What's cooking in git.git (May 2022, #05; Mon, 16))Ævar Arnfjörð Bjarmason, May 19, 2022

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.