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

Re: git-daemon --inetd

From
HAH. Peter Anvin <hpa@zytor.com>
Date
Sep 16, 2005, 16:54 UTC
Message-ID
<432AF8A8.6070807@zytor.com>
In-Reply-To
<7vbr2tqwl0.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
Show 5 quoted lines
> 
> Later exchanges between you and HPA appeared to me that we would
> need a chroot environment which has "enough stuff" and that this
> patch may not help him very much.  Am I mistaken?
> 

Well, building a chroot environment which supports execing is a bit of a pain, but it's fully doable. mount --bind especially makes that quite feasible. It's just more work.

Show 5 quoted lines
> I think resolving user and group to numeric before you do
> chroot() might make the setting up of chrooted environment a
> little simpler; no need for supporting getpwnam and getgrnam
> there.  On the other hand it may not matter -- you can always
> give numeric uid/gid to begin with.
Yes, resolve the username first.
	-hpa
Previous: Junio C HamanoNext: Linus Torvalds
Message 13 of 15 in “git-daemon --inetd”
  1. H. Peter AnvinSep 15, 2005
  2. Linus TorvaldsSep 15, 2005
  3. H. Peter AnvinSep 15, 2005
  4. Linus TorvaldsSep 15, 2005
  5. H. Peter AnvinSep 15, 2005
  6. Linus TorvaldsSep 15, 2005
  7. Martin LanghoffSep 15, 2005
  8. Jon SeymourOct 22, 2005
  9. Linus TorvaldsOct 22, 2005
  10. Junio C HamanoSep 15, 2005
  11. Junio C HamanoSep 16, 2005
  12. Junio C HamanoSep 16, 2005
  13. H. Peter AnvinSep 16, 2005
  14. Linus TorvaldsSep 16, 2005
  15. H. Peter AnvinSep 16, 2005

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.