{"thread":{"id":"65514","subject":"git, network filesystems and is_path_owned_by_current_uid()","startedAt":"2026-04-20T07:40:58Z","lastAt":"2026-04-20T07:40:58Z","messageCount":1,"participants":["David Howells"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"541924","messageId":"1005891.1776670851@warthog.procyon.org.uk","threadId":"65514","inReplyTo":null,"subject":"git, network filesystems and is_path_owned_by_current_uid()","fromName":"David Howells","fromEmail":"dhowells@redhat.com","sentAt":"2026-04-20T07:40:51Z","receivedAt":"2026-04-20T07:40:58Z","isPatch":false,"body":"Hi,\n\nCan git's is_path_owned_by_current_uid() be made to check to see if the\nfilesystem is a network filesystem (9p, afs, ceph, cifs, nfs, maybe orange?)\nbefore deciding that you're not allowed to do a command because your UID\ndoesn't match?\n\nOne way to do this would be to check the filesystem type returned by statfs:\n\n\tstatfs(\".\", {f_type=AFS_FS_MAGIC, ...\n\nAlternatively, we could add a statx() attribute flag in the kernel to indicate\nthat the uid/gid is from a separate set of IDs (or fabricated entirely) and\ncannot by directly compared against system IDs.\n\nThanks,\nDavid\n\n"}]}