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

git, network filesystems and is_path_owned_by_current_uid()

From
DHDavid Howells <dhowells@redhat.com>
Date
Apr 20, 2026, 07:40 UTC
Message-ID
<1005891.1776670851@warthog.procyon.org.uk>
Hi,

Can git's is_path_owned_by_current_uid() be made to check to see if the filesystem is a network filesystem (9p, afs, ceph, cifs, nfs, maybe orange?) before deciding that you're not allowed to do a command because your UID doesn't match?

One way to do this would be to check the filesystem type returned by statfs:
	statfs(".", {f_type=AFS_FS_MAGIC, ...

Alternatively, we could add a statx() attribute flag in the kernel to indicate that the uid/gid is from a separate set of IDs (or fabricated entirely) and cannot by directly compared against system IDs.

Thanks, David

Message 1 of 1 in “git, network filesystems and is_path_owned_by_current_uid()”
  1. David HowellsApr 20, 2026

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.