From: David Howells <dhowells@redhat.com>
To: git@vger.kernel.org
Cc: dhowells@redhat.com, brauner@kernel.org, netfs@lists.linux.dev
Subject: git, network filesystems and is_path_owned_by_current_uid()
Date: Mon, 20 Apr 2026 08:40:51 +0100 [thread overview]
Message-ID: <1005891.1776670851@warthog.procyon.org.uk> (raw)
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
reply other threads:[~2026-04-20 7:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1005891.1776670851@warthog.procyon.org.uk \
--to=dhowells@redhat.com \
--cc=brauner@kernel.org \
--cc=git@vger.kernel.org \
--cc=netfs@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox