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

Re: FORCE_DIR_SET_GID denied inside nix's build sandbox

From
JMJulien Moutinho <julm+git@sourcephile.fr>
Date
Oct 25, 2022, 22:40 UTC
Message-ID
<20221025224058.7kc4x43lkkncmak3@sourcephile.fr>
In-Reply-To
<xmqq7d0nonbw.fsf@gitster.g>
Le mar. 25 oct. 2022 09h54 -0700, Junio C Hamano a écrit :
Show 8 quoted lines
> But if you use 0600, then the group ownership should not matter, so
> 
>     /* Copy read bits to execute bits */
>     new_mode |= (new_mode & 0444) >> 2;
>     if (new_mode & 060)
> 	new_mode |= FORCE_DIR_SET_GID;
> 
> might be what you want?

That change makes more sense indeed, and does relax the chmod enough to solve our problem when running public-inbox tests into nix's build sandbox.

Thank you!
PS: please let me know if you need me to submit a proper patch,
otherwise I'm leaving this up to you if you don't mind.
Previous: Junio C Hamano
Message 3 of 3 in “FORCE_DIR_SET_GID denied inside nix's build sandbox”
  1. Julien MoutinhoOct 25, 2022
  2. Junio C HamanoOct 25, 2022
  3. Julien MoutinhoOct 25, 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.