public inbox for netfs@lists.linux.dev
 help / color / mirror / Atom feed
* git, network filesystems and is_path_owned_by_current_uid()
@ 2026-04-20  7:40 David Howells
  0 siblings, 0 replies; only message in thread
From: David Howells @ 2026-04-20  7:40 UTC (permalink / raw)
  To: git; +Cc: dhowells, brauner, netfs

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-04-20  7:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-20  7:40 git, network filesystems and is_path_owned_by_current_uid() David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox