summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2020-12-19 12:16:08 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2021-01-28 10:22:48 +0100
commit03fedf93593c82538b18476d8c4f0e8f8435ea70 (patch)
tree009ed9b499776c3c368111cfc43f0fb2d3105712 /tools/perf/scripts/python
parente04527fefba6e4e66492f122cf8cc6314f3cf3bf (diff)
downloadkernel-03fedf93593c82538b18476d8c4f0e8f8435ea70.tar.gz
ovl: skip getxattr of security labels
When inode has no listxattr op of its own (e.g. squashfs) vfs_listxattr calls the LSM inode_listsecurity hooks to list the xattrs that LSMs will intercept in inode_getxattr hooks. When selinux LSM is installed but not initialized, it will list the security.selinux xattr in inode_listsecurity, but will not intercept it in inode_getxattr. This results in -ENODATA for a getxattr call for an xattr returned by listxattr. This situation was manifested as overlayfs failure to copy up lower files from squashfs when selinux is built-in but not initialized, because ovl_copy_xattr() iterates the lower inode xattrs by vfs_listxattr() and vfs_getxattr(). ovl_copy_xattr() skips copy up of security labels that are indentified by inode_copy_up_xattr LSM hooks, but it does that after vfs_getxattr(). Since we are not going to copy them, skip vfs_getxattr() of the security labels. Reported-by: Michael Labriola <michael.d.labriola@gmail.com> Tested-by: Michael Labriola <michael.d.labriola@gmail.com> Link: https://lore.kernel.org/linux-unionfs/2nv9d47zt7.fsf@aldarion.sourceruckus.org/ Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
s/nfs/fscache.c?h=linux-rolling-lts&id=de4eda9de2d957ef2d6a8365a01e26a435e958cb'>use less confusing names for iov_iter direction initializersAl Viro 2022-05-17NFS: Pass i_size to fscache_unuse_cookie() when a file is releasedDave Wysochanski 2022-03-31Merge tag 'netfs-prep-20220318' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds 2022-03-18fscache: export fscache_end_operation()Jeffle Xu 2022-03-13NFS: Remove remaining dfprintks related to fscache and remove NFSDBG_FSCACHEDave Wysochanski 2022-03-13NFS: Replace dfprintks with tracepoints in fscache read and write page functionsDave Wysochanski 2022-03-13NFS: Rename fscache read and write pages functionsDave Wysochanski 2022-03-13NFS: Cleanup usage of nfs_inode in fscache interfaceDave Wysochanski 2022-01-10nfs: Implement cache I/O by accessing the cache directlyDavid Howells 2022-01-10nfs: Convert to new fscache volume/cookie APIDave Wysochanski 2021-07-08NFS: Fix fscache read from NFS after cache errorDave Wysochanski 2021-02-01NFS: Add nfs_pageio_complete_read() and remove nfs_readpage_async()Dave Wysochanski 2020-05-08NFSv4: Fix fscache cookie aux_data to ensure change_attr is includedDave Wysochanski 2020-05-08NFS: Fix fscache super_cookie allocationDave Wysochanski 2020-05-08NFS: Fix fscache super_cookie index_key from changing after umountDave Wysochanski