diff options
| author | Amir Goldstein <amir73il@gmail.com> | 2026-10-18 11:52:52 +0200 |
|---|---|---|
| committer | Amir Goldstein <amir73il@gmail.com> | 2026-10-29 13:22:48 +0100 |
| commit | 50912a1715b8a7c614b654011a0db750e372b43e (patch) | |
| tree | 5a6c7dd8aa55a5abd935747544bc744a84cfcd09 /scripts/objdiff | |
| parent | 2001cd7ca5560198131e46c6ca3c3472b06145c2 (diff) | |
| download | linux-50912a1715b8a7c614b654011a0db750e372b43e.tar.gz linux-50912a1715b8a7c614b654011a0db750e372b43e.zip | |
ovl: skip copy up of empty security.capability
ovl_copy_xattr() gives up if it can't read an attribute that
listxattr() has named. An empty security.capability, which anybody has
been able to store on any file for a long time, is such a case: it is
listed, and getxattr() has nothing to return for it. A file in a lower
layer that carries one can't be copied up: it can't be written to,
renamed or have its mode changed.
There is nothing to copy if there are no data. Go on with the next
one.
Fixes: 8db6c34f1dbc ("Introduce v3 namespaced file capabilities")
Cc: stable@vger.kernel.org
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
[amir: treat -EINVAL as no capability too, and do the same in
ovl_copy_up_meta_inode_data()]
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
