Volume XXII, number 280Wednesday, October 7, 2026Latest message 1 hour ago

The Git List

News and archive of git@vger.kernel.org, since April 2005

git, network filesystems and is_path_owned_by_current_uid()

1 messages between Apr 20, 2026 and Apr 20, 2026, from David Howells.

Plain Markdown or JSON for tools and agents.

David HowellsApr 20, 2026, 07:40 UTC on lore
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

Back to recent threads

git, network filesystems and is_path_owned_by_current_uid() | The Git List