]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic/123, generic/128, afs: Allow for an fs that does its own perm management
authorDavid Howells <dhowells@redhat.com>
Mon, 24 Apr 2023 14:10:40 +0000 (15:10 +0100)
committerZorro Lang <zlang@kernel.org>
Sun, 30 Apr 2023 16:00:42 +0000 (00:00 +0800)
commitf1f408150d0976e12181324c0a131f2c267a54a3
tree0b45d08b5b7452b887ec7ec93e0ef2b52384265d
parentec575a86da79592225369555843045e4e83af6d1
generic/123, generic/128, afs: Allow for an fs that does its own perm management

The AFS filesystem has its own distributed permission management system
that's based on a per-cell user and group database used in conjunction with
ACLs.  The user is determined by the authentication token acquired from the
kaserver or Kerberos, not by the local fsuid/fsgid.  For the most part, the
uid, gid and mask on a file are ignored.

The generic/123 and generic/128 tests check that the UNIX permission bits do
what would normally be expected of them - but this fails on AFS.  Using "su"
to change the user is not effective on AFS.  Instead, "keyctl session" would
need to be used and an alternative authentication token would need to be
obtained.

Provide a "_require_unix_perm_checking" clause so that these tests can be
suppressed in cases such as AFS.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/rc
doc/requirement-checking.txt
tests/generic/123
tests/generic/128