common/filter: fix _filter_file_attributes to handle src/file_attr.c file flags
Currently, _filter_file_attributes filters ext4 lsattr flags, but it's
only callers (all introduced in 4eb4017) are using it to filter the file
attribute letters from src/file_attr.c. These correspond to the flags
defined by the new file_getattr system call, so let's rename the helper
to make it clear we're filtering *VFS* attribute characters, and change
the code to filter all known characters from that interface.
While we're at it, make filtering of multiple characters work
consistently whether we're masking specific flags or everything *except*
those flags.
Cc: fstests@vger.kernel.org # v2025.10.05
Fixes: 4eb40174d77c1b ("generic: introduce test to test file_getattr/file_setattr syscalls")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zorro Lang <zlang@kernel.org>
2 files changed