summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2023-04-24 15:10:39 +0100
committerZorro Lang <zlang@kernel.org>2023-05-01 00:00:42 +0800
commitec575a86da79592225369555843045e4e83af6d1 (patch)
tree51e649d3b909dca4d0e8ce44fc39e5483bd8f7d7 /common
parent2ce9cd8c026fc2a0164597ac099dbf621aec7c58 (diff)
generic/317, afs: Allow for a filesystem not to honour the local uid/gid
Each AFS cell has it's own set of user IDs that is uses internally, in its ACL system and in its protection management protocol. The user ID used by the fileserver is selected from the set belonging to the fileserver's cell according to the authentication token associated with an RPC operation - and this is set as a file's user ID when it is created. This means that tests that expect to set a UID and see the same UID still set afterwards will fail. Add a "_require_use_local_uidgid" clause to indicate that a test expects internal UID/GID information to be seen in the stat output and should be skipped if AFS's case. Signed-off-by: David Howells <dhowells@redhat.com> cc: linux-afs@lists.infradead.org Reviewed-by: Zorro Lang <zlang@redhat.com> Signed-off-by: Zorro Lang <zlang@kernel.org>
Diffstat (limited to 'common')
-rw-r--r--common/rc9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/rc b/common/rc
index 49fd0d1b..3a7b5182 100644
--- a/common/rc
+++ b/common/rc
@@ -5161,6 +5161,15 @@ _require_sgid_inheritance()
esac
}
+_require_use_local_uidgid()
+{
+ case $FSTYP in
+ afs)
+ _notrun "$FSTYP doesn't honour local uid and gid"
+ ;;
+ esac
+}
+
init_rc
################################################################################