android_kernel_motorola_sm6375/fs/afs
Repository files (latest commit first)
Filename Latest commit message Latest commit date
David Howells 6712b7fcef afs: Stop listxattr() from listing "afs.*" attributes
commit a7889c6320b9200e3fe415238f546db677310fa9 upstream.

afs_listxattr() lists all the available special afs xattrs (i.e. those in
the "afs.*" space), no matter what type of server we're dealing with.  But
OpenAFS servers, for example, cannot deal with some of the extra-capable
attributes that AuriStor (YFS) servers provide.  Unfortunately, the
presence of the afs.yfs.* attributes causes errors[1] for anything that
tries to read them if the server is of the wrong type.

Fix the problem by removing afs_listxattr() so that none of the special
xattrs are listed (AFS doesn't support xattrs).  It does mean, however,
that getfattr won't list them, though they can still be accessed with
getxattr() and setxattr().

This can be tested with something like:

	getfattr -d -m ".*" /afs/example.com/path/to/file

With this change, none of the afs.* attributes should be visible.

Changes:
ver #2:
 - Hide all of the afs.* xattrs, not just the ACL ones.

Fixes: ae46578b96 ("afs: Get YFS ACLs and information through xattrs")
Reported-by: Gaja Sophie Peters <[email protected]>
Signed-off-by: David Howells <[email protected]>
Tested-by: Gaja Sophie Peters <[email protected]>
Reviewed-by: Jeffrey Altman <[email protected]>
Reviewed-by: Marc Dionne <[email protected]>
cc: [email protected]
Link: http://lists.infradead.org/pipermail/linux-afs/2021-March/003502.html [1]
Link: http://lists.infradead.org/pipermail/linux-afs/2021-March/003567.html # v1
Link: http://lists.infradead.org/pipermail/linux-afs/2021-March/003573.html # v2
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2021-03-24 11:26:37 +01:00
..
addr_list.c
afs.h
afs_cm.h
afs_fs.h
afs_vl.h
cache.c
callback.c
cell.c afs: Fix storage of cell names 2020-06-30 15:37:02 -04:00
cmservice.c
dir.c afs: Stop listxattr() from listing "afs.*" attributes 2021-03-24 11:26:37 +01:00
dir_edit.c
dir_silly.c
dynroot.c afs: Fix NULL deref in afs_dynroot_depopulate() 2020-08-26 10:41:05 +02:00
file.c afs: Stop listxattr() from listing "afs.*" attributes 2021-03-24 11:26:37 +01:00
flock.c
fs_probe.c rxrpc: Make rxrpc_kernel_get_srtt() indicate validity 2020-09-09 19:12:23 +02:00
fsclient.c afs: Set error flag rather than return error from file status decode 2020-06-24 17:50:46 +02:00
inode.c afs: Stop listxattr() from listing "afs.*" attributes 2021-03-24 11:26:37 +01:00
internal.h afs: Stop listxattr() from listing "afs.*" attributes 2021-03-24 11:26:37 +01:00
Kconfig
main.c rxrpc: Fix deadlock around release of dst cached on udp tunnel 2021-02-10 09:25:27 +01:00
Makefile
misc.c afs: Fix the mapping of the UAEOVERFLOW abort code 2020-06-24 17:50:46 +02:00
mntpt.c afs: Stop listxattr() from listing "afs.*" attributes 2021-03-24 11:26:37 +01:00
proc.c afs: Fix memory leak in afs_put_sysnames() 2020-06-24 17:50:42 +02:00
protocol_uae.h
protocol_yfs.h
rotate.c
rxrpc.c afs: Set error flag rather than return error from file status decode 2020-06-24 17:50:46 +02:00
security.c
server.c
server_list.c
super.c afs: Fix memory leak when mounting with multiple source parameters 2020-12-30 11:50:54 +01:00
vl_list.c
vl_probe.c rxrpc: Make rxrpc_kernel_get_srtt() indicate validity 2020-09-09 19:12:23 +02:00
vl_rotate.c
vlclient.c
volume.c
write.c afs: afs_write_end() should change i_size under the right lock 2020-06-24 17:50:46 +02:00
xattr.c afs: Stop listxattr() from listing "afs.*" attributes 2021-03-24 11:26:37 +01:00
xdr_fs.h
yfsclient.c afs: Fix warning due to unadvanced marshalling pointer 2020-11-18 19:20:18 +01:00