Skip to content

eBPF-based security platform

bpf2: refuse XFS attribute changes by file handle

Daniel Borkmann918a1a81ee3e
diff --git a/Documentation/contribute/testing/test-coverage.rst b/Documentation/contribute/testing/test-coverage.rst
index 46e5f591..05c6fea2 100644
--- a/Documentation/contribute/testing/test-coverage.rst
+++ b/Documentation/contribute/testing/test-coverage.rst
@@ -502,6 +502,11 @@ signed config image.
* - ``t6152-exec-shared``
- The exec of the runtime binary by a task that shares its
``fs_struct`` is refused and counted; another program's is not
+ * - ``t6153-xfs-attrmulti``
+ - The ``XFS_IOC_ATTRMULTI_BY_HANDLE`` number on another file system
+ is not refused or counted, and on an XFS image it is refused and
+ counted. The XFS case needs XFS in the kernel and ``mkfs.xfs``,
+ which the slim test VM kernel lacks
``bpm`` (7)
~~~~~~~~~~~
@@ -1025,6 +1030,8 @@ tests assert that a refusal moves its counter:
- ``t6137``
* - ``ExecShared``
- ``t6152``
+ * - ``XattrHandle``
+ - ``t6153``, on a kernel with XFS
* - ``Kexec``
- ``t6126``
diff --git a/Documentation/internals/enforcement.rst b/Documentation/internals/enforcement.rst
index 2388bee7..2ed2922c 100644
--- a/Documentation/internals/enforcement.rst
+++ b/Documentation/internals/enforcement.rst
@@ -342,14 +342,16 @@ when the record it needs is missing.
- ``ObjGet``
- Closed.
* - ``lsm/file_ioctl``, ``lsm/file_ioctl_compat`` (``bpf2``)
- - ``PERF_EVENT_IOC_SET_BPF`` on any file, and every device-mapper
+ - ``PERF_EVENT_IOC_SET_BPF`` on any file,
+ ``XFS_IOC_ATTRMULTI_BY_HANDLE`` on an XFS file system, which
+ changes attributes past every xattr hook, and every device-mapper
control command except ``DM_VERSION``, ``DM_LIST_DEVICES``,
``DM_DEV_STATUS``, ``DM_DEV_WAIT``, ``DM_TABLE_DEPS``,
``DM_TABLE_STATUS``, ``DM_LIST_VERSIONS`` and
``DM_GET_TARGET_VERSION`` on the control device (10:236), to a
task without authority.
- - ``EACCES`` (perf), ``EPERM`` (DM)
- - ``PerfAttach``; DM refusals uncounted
+ - ``EACCES`` (perf, XFS), ``EPERM`` (DM)
+ - ``PerfAttach``, ``XattrHandle``; DM refusals uncounted
- Closed: unknown DM commands are refused.
* - ``lsm/inode_unlink``, ``lsm/inode_rmdir``, ``lsm/inode_mkdir``,
``lsm/inode_symlink``, ``lsm/inode_link``, ``lsm/inode_rename``,
diff --git a/Documentation/operate/plan/interoperability.rst b/Documentation/operate/plan/interoperability.rst
index 38053059..7e888156 100644
--- a/Documentation/operate/plan/interoperability.rst
+++ b/Documentation/operate/plan/interoperability.rst
@@ -403,6 +403,10 @@ Debuggers, tracing and /proc
* - Starting shirudo under ``strace`` or ``gdb``
- The exec fails with ``EACCES``
- ``ExecTraced``
+ * - Starting shirudo from a process that shares its root and working
+ directory with another, made with ``clone(CLONE_FS)``
+ - The exec fails with ``EACCES``
+ - ``ExecShared``
* - Reading ``/proc/<pid>/mem`` of a shirudo command
- ``EACCES``
- ``SealPtrace``
@@ -428,6 +432,23 @@ Debuggers, tracing and /proc
A task-bound perf event that a process opened before the exec that marks
the task is not refused (D9 in :doc:`/security/threat-model`).
+XFS dump and restore
+--------------------
+
+:Mechanism: ``lsm/file_ioctl`` refuses ``XFS_IOC_ATTRMULTI_BY_HANDLE``
+ on an XFS file system to every task without runtime authority, since
+ XFS changes the attributes a handle names without passing an xattr
+ hook, and a seal label removed that way would unseal the inode.
+:Symptom: ``xfsdump`` and ``xfsrestore``, which read and write extended
+ attributes through that ioctl, fail on the attributes with
+ ``EACCES``, and ``XattrHandle`` moves.
+:Not refused: Reading and writing attributes through ``getfattr``,
+ ``setfattr`` and the other xattr system calls, which the seal checks
+ as it checks every xattr change.
+:What to do: Back up XFS file systems on a target with a tool that reads
+ attributes through the xattr system calls, or without extended
+ attributes.
+
TPM tools
---------
diff --git a/Documentation/reference/cli/status.rst b/Documentation/reference/cli/status.rst
index f08a8821..7f9d4073 100644
--- a/Documentation/reference/cli/status.rst
+++ b/Documentation/reference/cli/status.rst
@@ -408,7 +408,7 @@ Print the keepalive body of the same target, which follows no tree:
.. code-block:: console
target# shirudo status --keepalive
- {"schema":"shirudo.keepalive/1","boot_id":"82639935-1127-4dab-91b5-f818eabc7f13","version_id":"d0d7aa800303439023907d1979d917d46a21bec21f816689c138728a28e84af9","config_root":"6d5ed552f448a1c07e3b9d24f5a86c1e0b7d93f2c4e5a6b7180c9d2e3f4a5b6c","kernel_release":"7.3.0-bpf-next+","image_id":null,"image_version":null,"image_root":null,"verdict":"ok","cond":5461,"flags":0,"tamper":[15,0,0,0,0,1,0,0,0,0,0,8,0,0,0,0,0,1,0,0,1,0,0,0,0,0,7,0,0,2,0,0,0,0,0,0,0,0,0,0],"tree_id":null,"generation":null,"base_seq":null,"last_seq":null,"base_root":null,"projection_root":null,"mask":null,"set_sha256":"5f0c2e8b7a1d4c3f9e6b2a0d8c7f1e3b5a9d4c2e6f8b0a1d3c5e7f9b2d4a6c8e","count":1,"not_ok":0}
+ {"schema":"shirudo.keepalive/1","boot_id":"82639935-1127-4dab-91b5-f818eabc7f13","version_id":"d0d7aa800303439023907d1979d917d46a21bec21f816689c138728a28e84af9","config_root":"6d5ed552f448a1c07e3b9d24f5a86c1e0b7d93f2c4e5a6b7180c9d2e3f4a5b6c","kernel_release":"7.3.0-bpf-next+","image_id":null,"image_version":null,"image_root":null,"verdict":"ok","cond":5461,"flags":0,"tamper":[15,0,0,0,0,1,0,0,0,0,0,8,0,0,0,0,0,1,0,0,1,0,0,0,0,0,7,0,0,2,0,0,0,0,0,0,0,0,0,0,0],"tree_id":null,"generation":null,"base_seq":null,"last_seq":null,"base_root":null,"projection_root":null,"mask":null,"set_sha256":"5f0c2e8b7a1d4c3f9e6b2a0d8c7f1e3b5a9d4c2e6f8b0a1d3c5e7f9b2d4a6c8e","count":1,"not_ok":0}
Add this boot's eventlog to the report:
diff --git a/Documentation/reference/formats/status-json.rst b/Documentation/reference/formats/status-json.rst
index a2adabc8..53a98679 100644
--- a/Documentation/reference/formats/status-json.rst
+++ b/Documentation/reference/formats/status-json.rst
@@ -958,7 +958,8 @@ indented here:
"SealSignal": 0,
"SealCoreDump": 0,
"SealUprobe": 0,
- "ExecShared": 0
+ "ExecShared": 0,
+ "XattrHandle": 0
}
},
"config": {
@@ -1015,7 +1016,7 @@ of the same target read:
"ExecTraced": 0, "SealEntry": 0, "PerfAttach": 0, "PinEntry": 0,
"SealCopyUp": 0, "Kexec": 0, "TpmExtend": 0, "ObjGet": 1,
"SealSignal": 0, "SealCoreDump": 0, "SealUprobe": 0,
- "ExecShared": 0
+ "ExecShared": 0, "XattrHandle": 0
}
}
diff --git a/Documentation/security/tamper-counters.rst b/Documentation/security/tamper-counters.rst
index 48812621..7d2b3449 100644
--- a/Documentation/security/tamper-counters.rst
+++ b/Documentation/security/tamper-counters.rst
@@ -231,6 +231,12 @@ counter.
its authority for good, and the hook refuses the operation and
moves its own counter
- the hook's
+ * - ``XattrHandle``
+ - XFS attribute change by file handle, which passes no xattr hook
+ - ``lsm/file_ioctl``, ``lsm/file_ioctl_compat``:
+ ``XFS_IOC_ATTRMULTI_BY_HANDLE`` on an XFS file system, reads
+ included, from a task without authority
+ - ``EACCES``
* - ``ExecShared``
- exec of the runtime binary by a task that shares its file system
context
diff --git a/Documentation/security/threat-model.rst b/Documentation/security/threat-model.rst
index c7f2235a..fda9ef69 100644
--- a/Documentation/security/threat-model.rst
+++ b/Documentation/security/threat-model.rst
@@ -683,7 +683,10 @@ with ``chattr``, an xattr change and a change of its POSIX ACL need
runtime authority (``SealWrite``, ``SealUnlink``, ``SealRename``,
``SealSetattr``, ``SealXattr``); every one of those hooks reads the
label. Only an authorized task sets or removes the exact seal label or
-changes the policy label on any inode (``SealLabel``).
+changes the policy label on any inode (``SealLabel``). XFS also changes
+attributes by file handle, ``XFS_IOC_ATTRMULTI_BY_HANDLE``, through no
+xattr hook, so ``lsm/file_ioctl`` refuses that ioctl on XFS to tasks
+without authority (``XattrHandle``, ``t6153``).
A rename of a directory above the state root, ``/var/lib`` say, would
move the sealed tree aside for the next boot's bootstrap run of
@@ -867,7 +870,8 @@ An authorized process is protected against being taken over:
:Adversary: ADV-B and ADV-C
:Enforced at: ``lsm.s/file_open``, ``lsm.s/inode_unlink``,
- ``lsm.s/inode_rmdir``, ``lsm.s/inode_rename``,
+ ``lsm.s/inode_rmdir``, ``lsm.s/inode_rename``, ``lsm/file_ioctl``,
+ ``lsm/file_ioctl_compat``,
``lsm.s/inode_setattr``, ``lsm.s/inode_setxattr``,
``lsm.s/inode_removexattr``, ``lsm.s/inode_set_acl``,
``lsm.s/inode_remove_acl``, ``lsm.s/inode_file_setattr``,
@@ -890,13 +894,13 @@ An authorized process is protected against being taken over:
``SealSetattr``, ``SealXattr``, ``SealLabel``, ``SealEntry``,
``SealCopyUp``, ``KeyringWrite``, ``SealPtrace``, ``SealPerf``,
``SealSignal``, ``SealCoreDump``, ``SealUprobe``, ``ExecTraced``,
- ``ExecShared``,
+ ``ExecShared``, ``XattrHandle``,
``ExeIdentity``
:Tests: ``t6001``, ``t6006``, ``t6007``, ``t6110``, ``t6111``,
``t6112``, ``t6113``, ``t6114``, ``t6115``, ``t6118``, ``t6123``,
``t6124``, ``t6127``, ``t6129``, ``t6131``, ``t6133``, ``t6134``,
``t6135``, ``t6136``, ``t6137``, ``t6144``, ``t6145``, ``t6146``,
- ``t6149``, ``t6150``, ``t6152``
+ ``t6149``, ``t6150``, ``t6152``, ``t6153``
:Residual: R2, R19, R22
T4 Substituting artifacts
diff --git a/Makefile.shirudo b/Makefile.shirudo
index 340d086c..317ed2ce 100644
--- a/Makefile.shirudo
+++ b/Makefile.shirudo
@@ -777,6 +777,7 @@ TEST_HELPERS := $(VERITY_TEST_HELPERS) \
testing/helper/test-bpf-cmd \
testing/helper/test-exec-fail \
testing/helper/test-exec-shared \
+ testing/helper/test-xfs-attrmulti \
testing/helper/test-perf-attach \
testing/helper/test-otel-map \
testing/helper/test-upatch-map-types \
@@ -923,6 +924,10 @@ testing/helper/test-exec-shared: testing/helper/test-exec-shared.c
@printf ' CC $@\n'
$(Q)$(CC) $(CFLAGS) -o $@ $^
+testing/helper/test-xfs-attrmulti: testing/helper/test-xfs-attrmulti.c
+ @printf ' CC $@\n'
+ $(Q)$(CC) $(CFLAGS) -o $@ $^
+
testing/helper/test-perf-attach: testing/helper/test-perf-attach.c
@printf ' CC $@\n'
$(Q)$(CC) $(CFLAGS) -I$(BPF_UAPI_INCLUDE) -o $@ $^
diff --git a/bpf/bpf2.c b/bpf/bpf2.c
index 69a457de..9aa48da3 100644
--- a/bpf/bpf2.c
+++ b/bpf/bpf2.c
@@ -975,6 +975,23 @@ static __always_inline int shirudo_dm_ioctl(struct file *file,
* program a signed loader created would run at a probe of root's own.
* Keep it to the caller BPF_LINK_CREATE is kept to.
*/
+#define XFS_SUPER_MAGIC 0x58465342
+#define XFS_IOC_ATTRMULTI_NR 123
+
+/*
+ * XFS_IOC_ATTRMULTI_BY_HANDLE sets and removes the attributes of the
+ * inode a handle names through xfs_attr_change(), past vfs_setxattr()
+ * and so past every xattr hook: a seal label removed that way unseals
+ * the inode. Matched by type and number, as its size differs between
+ * the native and the compat call.
+ */
+static __always_inline bool xfs_attrmulti(struct file *file, unsigned int cmd)
+{
+ return ((cmd >> 8) & 0xff) == 'X' &&
+ (cmd & 0xff) == XFS_IOC_ATTRMULTI_NR &&
+ BPF_CORE_READ(file, f_inode, i_sb, s_magic) == XFS_SUPER_MAGIC;
+}
+
static __always_inline int shirudo_ioctl(struct file *file, unsigned int cmd,
int ret)
{
@@ -982,6 +999,8 @@ static __always_inline int shirudo_ioctl(struct file *file, unsigned int cmd,
return ret;
if (cmd == PERF_EVENT_IOC_SET_BPF)
return shirudo_self_or_deny(TAMPER_PERF_ATTACH);
+ if (xfs_attrmulti(file, cmd))
+ return shirudo_self_or_deny(TAMPER_XATTR_HANDLE);
return shirudo_dm_ioctl(file, cmd, ret);
}
diff --git a/bpf/lib/tamper.h b/bpf/lib/tamper.h
index 928cd62d..70dd1951 100644
--- a/bpf/lib/tamper.h
+++ b/bpf/lib/tamper.h
@@ -52,6 +52,7 @@ enum tamper_point {
TAMPER_SEAL_CORE_DUMP,
TAMPER_SEAL_UPROBE,
TAMPER_EXEC_SHARED,
+ TAMPER_XATTR_HANDLE,
TAMPER_MAX
};
diff --git a/testing/fixtures/keepalive/node-a-1.0.0.json b/testing/fixtures/keepalive/node-a-1.0.0.json
index daf86a6d..7f82c1c7 100644
--- a/testing/fixtures/keepalive/node-a-1.0.0.json
+++ b/testing/fixtures/keepalive/node-a-1.0.0.json
@@ -1 +1 @@
-{"schema":"shirudo.keepalive/1","boot_id":"168d20a1-5011-4e1b-9924-d8b73c85aa4e","version_id":"d6d918ad22ff597579e6678bef75adca84d30f9661e0b7bbdbf534eebc138c1f","config_root":"1d8465c5b17838303fee92b3905420d294d2c22c576a0bdef0f69f190ed22807","kernel_release":"7.4.2","image_id":"fleet-os","image_version":"2026.11.1","image_root":"a3c3f1b0e4c2d7f09e3b6b2a8b1d5e7c4f6a9d0b2c8e1f3a5b7d9c0e2f4a6b8c","verdict":"ok","cond":5461,"flags":0,"tamper":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"tree_id":"fleet-base","generation":1,"base_seq":0,"last_seq":1,"base_root":"0000000000000000000000000000000000000000000000000000000000000000","projection_root":"04f83540c1727aefcf3c53449a99594c8fd1cc15e1466dbdbf3168cc8f9dc136","mask":"QA==","set_sha256":"6c9e113d02cd14646f617d7bba4a092b91bc3802dfdaae50e2fef7a01e0580aa","count":1,"not_ok":0}
\ No newline at end of file
+{"schema":"shirudo.keepalive/1","boot_id":"168d20a1-5011-4e1b-9924-d8b73c85aa4e","version_id":"d6d918ad22ff597579e6678bef75adca84d30f9661e0b7bbdbf534eebc138c1f","config_root":"1d8465c5b17838303fee92b3905420d294d2c22c576a0bdef0f69f190ed22807","kernel_release":"7.4.2","image_id":"fleet-os","image_version":"2026.11.1","image_root":"a3c3f1b0e4c2d7f09e3b6b2a8b1d5e7c4f6a9d0b2c8e1f3a5b7d9c0e2f4a6b8c","verdict":"ok","cond":5461,"flags":0,"tamper":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"tree_id":"fleet-base","generation":1,"base_seq":0,"last_seq":1,"base_root":"0000000000000000000000000000000000000000000000000000000000000000","projection_root":"04f83540c1727aefcf3c53449a99594c8fd1cc15e1466dbdbf3168cc8f9dc136","mask":"QA==","set_sha256":"6c9e113d02cd14646f617d7bba4a092b91bc3802dfdaae50e2fef7a01e0580aa","count":1,"not_ok":0}
\ No newline at end of file
diff --git a/testing/fixtures/keepalive/node-a-1.1.0.json b/testing/fixtures/keepalive/node-a-1.1.0.json
index 81379516..84e974fa 100644
--- a/testing/fixtures/keepalive/node-a-1.1.0.json
+++ b/testing/fixtures/keepalive/node-a-1.1.0.json
@@ -1 +1 @@
-{"schema":"shirudo.keepalive/1","boot_id":"168d20a1-5011-4e1b-9924-d8b73c85aa4e","version_id":"d6d918ad22ff597579e6678bef75adca84d30f9661e0b7bbdbf534eebc138c1f","config_root":"1d8465c5b17838303fee92b3905420d294d2c22c576a0bdef0f69f190ed22807","kernel_release":"7.4.2","image_id":"fleet-os","image_version":"2026.11.1","image_root":"a3c3f1b0e4c2d7f09e3b6b2a8b1d5e7c4f6a9d0b2c8e1f3a5b7d9c0e2f4a6b8c","verdict":"ok","cond":5461,"flags":0,"tamper":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"tree_id":"fleet-base","generation":3,"base_seq":0,"last_seq":3,"base_root":"0000000000000000000000000000000000000000000000000000000000000000","projection_root":"154522480ff8884daa95589e80f26f20248bbf9c192dfbb3cee04e03b4f136a1","mask":"VA==","set_sha256":"74e5bd2c665109f6d8f926af5476c266ad70ab07293ff13b1a13d0b89aa5c1bf","count":1,"not_ok":0}
\ No newline at end of file
+{"schema":"shirudo.keepalive/1","boot_id":"168d20a1-5011-4e1b-9924-d8b73c85aa4e","version_id":"d6d918ad22ff597579e6678bef75adca84d30f9661e0b7bbdbf534eebc138c1f","config_root":"1d8465c5b17838303fee92b3905420d294d2c22c576a0bdef0f69f190ed22807","kernel_release":"7.4.2","image_id":"fleet-os","image_version":"2026.11.1","image_root":"a3c3f1b0e4c2d7f09e3b6b2a8b1d5e7c4f6a9d0b2c8e1f3a5b7d9c0e2f4a6b8c","verdict":"ok","cond":5461,"flags":0,"tamper":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"tree_id":"fleet-base","generation":3,"base_seq":0,"last_seq":3,"base_root":"0000000000000000000000000000000000000000000000000000000000000000","projection_root":"154522480ff8884daa95589e80f26f20248bbf9c192dfbb3cee04e03b4f136a1","mask":"VA==","set_sha256":"74e5bd2c665109f6d8f926af5476c266ad70ab07293ff13b1a13d0b89aa5c1bf","count":1,"not_ok":0}
\ No newline at end of file
diff --git a/testing/fixtures/keepalive/node-b-1.0.0.json b/testing/fixtures/keepalive/node-b-1.0.0.json
index 7c6bf655..f6ed8e74 100644
--- a/testing/fixtures/keepalive/node-b-1.0.0.json
+++ b/testing/fixtures/keepalive/node-b-1.0.0.json
@@ -1 +1 @@
-{"schema":"shirudo.keepalive/1","boot_id":"9a6f14ea-0cc2-45e1-8e23-7b887120cf54","version_id":"d6d918ad22ff597579e6678bef75adca84d30f9661e0b7bbdbf534eebc138c1f","config_root":"ff2cbeff5d0e9c41a7b36f28d14ce09b73a5182e6fc40d97b5e2a1683c0f7ff8","kernel_release":"7.4.2","image_id":"fleet-os","image_version":"2026.11.1","image_root":null,"verdict":"ok","cond":5461,"flags":0,"tamper":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"tree_id":"fleet-base","generation":1,"base_seq":0,"last_seq":1,"base_root":"0000000000000000000000000000000000000000000000000000000000000000","projection_root":"0000000000000000000000000000000000000000000000000000000000000000","mask":"gA==","set_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","count":0,"not_ok":0}
\ No newline at end of file
+{"schema":"shirudo.keepalive/1","boot_id":"9a6f14ea-0cc2-45e1-8e23-7b887120cf54","version_id":"d6d918ad22ff597579e6678bef75adca84d30f9661e0b7bbdbf534eebc138c1f","config_root":"ff2cbeff5d0e9c41a7b36f28d14ce09b73a5182e6fc40d97b5e2a1683c0f7ff8","kernel_release":"7.4.2","image_id":"fleet-os","image_version":"2026.11.1","image_root":null,"verdict":"ok","cond":5461,"flags":0,"tamper":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"tree_id":"fleet-base","generation":1,"base_seq":0,"last_seq":1,"base_root":"0000000000000000000000000000000000000000000000000000000000000000","projection_root":"0000000000000000000000000000000000000000000000000000000000000000","mask":"gA==","set_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","count":0,"not_ok":0}
\ No newline at end of file
diff --git a/testing/fixtures/keepalive/node-b-1.1.0.json b/testing/fixtures/keepalive/node-b-1.1.0.json
index 12da5921..071d64c4 100644
--- a/testing/fixtures/keepalive/node-b-1.1.0.json
+++ b/testing/fixtures/keepalive/node-b-1.1.0.json
@@ -1 +1 @@
-{"schema":"shirudo.keepalive/1","boot_id":"9a6f14ea-0cc2-45e1-8e23-7b887120cf54","version_id":"d6d918ad22ff597579e6678bef75adca84d30f9661e0b7bbdbf534eebc138c1f","config_root":"ff2cbeff5d0e9c41a7b36f28d14ce09b73a5182e6fc40d97b5e2a1683c0f7ff8","kernel_release":"7.4.2","image_id":"fleet-os","image_version":"2026.11.1","image_root":null,"verdict":"ok","cond":5461,"flags":0,"tamper":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"tree_id":"fleet-base","generation":3,"base_seq":0,"last_seq":3,"base_root":"0000000000000000000000000000000000000000000000000000000000000000","projection_root":"0000000000000000000000000000000000000000000000000000000000000000","mask":"qA==","set_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","count":0,"not_ok":0}
\ No newline at end of file
+{"schema":"shirudo.keepalive/1","boot_id":"9a6f14ea-0cc2-45e1-8e23-7b887120cf54","version_id":"d6d918ad22ff597579e6678bef75adca84d30f9661e0b7bbdbf534eebc138c1f","config_root":"ff2cbeff5d0e9c41a7b36f28d14ce09b73a5182e6fc40d97b5e2a1683c0f7ff8","kernel_release":"7.4.2","image_id":"fleet-os","image_version":"2026.11.1","image_root":null,"verdict":"ok","cond":5461,"flags":0,"tamper":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"tree_id":"fleet-base","generation":3,"base_seq":0,"last_seq":3,"base_root":"0000000000000000000000000000000000000000000000000000000000000000","projection_root":"0000000000000000000000000000000000000000000000000000000000000000","mask":"qA==","set_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","count":0,"not_ok":0}
\ No newline at end of file
diff --git a/testing/fixtures/keepalive/ops-16.json b/testing/fixtures/keepalive/ops-16.json
index 47530972..76fadef7 100644
--- a/testing/fixtures/keepalive/ops-16.json
+++ b/testing/fixtures/keepalive/ops-16.json
@@ -1 +1 @@
-{"schema":"shirudo.keepalive/1","boot_id":"d5140906-4eab-4983-a62c-29e49d449ea3","version_id":"d6d918ad22ff597579e6678bef75adca84d30f9661e0b7bbdbf534eebc138c1f","config_root":"1fbdff17ad8d50404772901df54d5aa2c698eddbb413e286fc654f80931c688a","kernel_release":"7.4.0-shirudo","image_id":"fleet-os","image_version":"2026.11.1","image_root":"a3c3f1b0e4c2d7f09e3b6b2a8b1d5e7c4f6a9d0b2c8e1f3a5b7d9c0e2f4a6b8c","verdict":"ok","cond":5461,"flags":0,"tamper":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"tree_id":"fleet-base","generation":42,"base_seq":0,"last_seq":12,"base_root":"0000000000000000000000000000000000000000000000000000000000000000","projection_root":"f59301708fc8e150c5d2abb1009b4f13fc0dcc1304b708f77dc14b1541679e28","mask":"WdlZAA==","set_sha256":"ac1af1d44b5c1fe3f616384db421138aa4d296595797b5864908a89276e17e6d","count":7,"not_ok":0}
\ No newline at end of file
+{"schema":"shirudo.keepalive/1","boot_id":"d5140906-4eab-4983-a62c-29e49d449ea3","version_id":"d6d918ad22ff597579e6678bef75adca84d30f9661e0b7bbdbf534eebc138c1f","config_root":"1fbdff17ad8d50404772901df54d5aa2c698eddbb413e286fc654f80931c688a","kernel_release":"7.4.0-shirudo","image_id":"fleet-os","image_version":"2026.11.1","image_root":"a3c3f1b0e4c2d7f09e3b6b2a8b1d5e7c4f6a9d0b2c8e1f3a5b7d9c0e2f4a6b8c","verdict":"ok","cond":5461,"flags":0,"tamper":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"tree_id":"fleet-base","generation":42,"base_seq":0,"last_seq":12,"base_root":"0000000000000000000000000000000000000000000000000000000000000000","projection_root":"f59301708fc8e150c5d2abb1009b4f13fc0dcc1304b708f77dc14b1541679e28","mask":"WdlZAA==","set_sha256":"ac1af1d44b5c1fe3f616384db421138aa4d296595797b5864908a89276e17e6d","count":7,"not_ok":0}
\ No newline at end of file
diff --git a/testing/fixtures/keepalive/quotes.tsv b/testing/fixtures/keepalive/quotes.tsv
index f1ee1f3d..7bd57e02 100644
--- a/testing/fixtures/keepalive/quotes.tsv
+++ b/testing/fixtures/keepalive/quotes.tsv
@@ -1,4 +1,4 @@
-node-a-1.0.0.json /1RDR4AYACIAC6g5pzR1aKcWDeiOfwjwtf5XxZ9BVaT6eYTStcbVHDGzACBUVp05I5kSn+uYG2wCWnPITsgwEP4XtU9lCCqPRIZg/QAAAAAAAAAJAAAAAAAAAAABIBkQIwAWNjYAAAABAAsDAAAAACDjsMRCmPwcFJr79MiZb7kkJ65B5GSbk0yklZkbeFK4VQ== ABgACwAgGdPq8y/bh8Xf5aAE7VYzjssKiCHSzOJczHEcte72dZcAIEg17/dY5efOKfr8Jjy8IjsIm64XATm+IBpjRi2Xk+PW ACMACwAFAHIAAAAQABgACwADABAAIPH0oXsS7TbVbWJ2dns42uteKlcvs3RJCu/m6bdv1h/aACDppRuefM1dDFxLHlEVeI9USkrN5LBXFiIh4EtpKwsp1g== 54569d392399129feb981b6c025a73c84ec83010fe17b54f65082a8f448660fd
-node-a-1.1.0.json /1RDR4AYACIAC6g5pzR1aKcWDeiOfwjwtf5XxZ9BVaT6eYTStcbVHDGzACBRCQb08KpPeWEJLPQdMO+acYOzDoP/BD+8V50265vuMQAAAAAAAAAbAAAAAAAAAAABIBkQIwAWNjYAAAABAAsDAAAAACDjsMRCmPwcFJr79MiZb7kkJ65B5GSbk0yklZkbeFK4VQ== ABgACwAgstoIbbCbJl04us+3WU8VmbnWN6aLwxCLJQDmznQWnh4AIEYfyG9k0QWeZRq6LRlErGaa1LRAaFX+iGpIeT4HCwSQ ACMACwAFAHIAAAAQABgACwADABAAIPH0oXsS7TbVbWJ2dns42uteKlcvs3RJCu/m6bdv1h/aACDppRuefM1dDFxLHlEVeI9USkrN5LBXFiIh4EtpKwsp1g== 510906f4f0aa4f7961092cf41d30ef9a7183b30e83ff043fbc579d36eb9bee31
-node-b-1.0.0.json /1RDR4AYACIAC2Gm27OAwZ9VyAugoPReFl7LRGZ00wXC3pm7OixDcFmZACDTe2TD6WPChtm1FHQKUZhHitndUVRwfaVFGXDY40qlsAAAAAAAAAAJAAAAAAAAAAABIBkQIwAWNjYAAAABAAsDAAAAACDjsMRCmPwcFJr79MiZb7kkJ65B5GSbk0yklZkbeFK4VQ== ABgACwAg6HK93DHg0OiHH9GfFKzMVOWaptBwgFfPW8YAd6NSkOsAIPnEfoiRKlVCggRRhbjQMN01svaQgj8u4wHoc/s26Cug ACMACwAFAHIAAAAQABgACwADABAAIAHAteZRrmI/aXfBdmgB+/MA3EZ7Ng7ctI8moukmgSjdACBM/X0qACJhDZR/pLchNIrX/cZ+mG9zi6dia+l9sT0i6A== d37b64c3e963c286d9b514740a5198478ad9dd5154707da5451970d8e34aa5b0
-node-b-1.1.0.json /1RDR4AYACIAC2Gm27OAwZ9VyAugoPReFl7LRGZ00wXC3pm7OixDcFmZACDbxZUSdvWxq9cRdDiUzk3o19H6gxmaKakw7E4KJB5mjQAAAAAAAAAaAAAAAAAAAAABIBkQIwAWNjYAAAABAAsDAAAAACDjsMRCmPwcFJr79MiZb7kkJ65B5GSbk0yklZkbeFK4VQ== ABgACwAguKRxC6oOC+rp8k+X9NH7L/LwDjwU5RAStE397GAHNVQAINhQ4K1nS6BpgCj0Bbj6ziHSXi8mXdulrY8Mjft/DF9M ACMACwAFAHIAAAAQABgACwADABAAIAHAteZRrmI/aXfBdmgB+/MA3EZ7Ng7ctI8moukmgSjdACBM/X0qACJhDZR/pLchNIrX/cZ+mG9zi6dia+l9sT0i6A== dbc5951276f5b1abd711743894ce4de8d7d1fa83199a29a930ec4e0a241e668d
+node-a-1.0.0.json /1RDR4AYACIAC26qnBF6MihCyjLCji8Q8sJmUXn1Qh6GPwCuDFbLswFLACDaNzaLmTGJta5hxqgb6FFqNY2oMaMwsxwIqbxJOQ5VzAAAAAAAAAAKAAAAAAAAAAABIBkQIwAWNjYAAAABAAsDAAAAACDjsMRCmPwcFJr79MiZb7kkJ65B5GSbk0yklZkbeFK4VQ== ABgACwAgi4Fwa2CbrKGvoTtCvEsSTl67IjzUhe7WZkPSsDcNTZYAIMB5upp2sMl+u+C0ZAUjU2catO9AbuuTc7Q9FOGT96/i ACMACwAFAHIAAAAQABgACwADABAAIOPXhQHNHyOkg+gwQx4SiSNbBR8UpiOrYQ68ttai/KUQACD0QADC8ysgldseBqytxq67BEdBKdG16a6n1gwA0+HtuA== da37368b993189b5ae61c6a81be8516a358da831a330b31c08a9bc49390e55cc
+node-a-1.1.0.json /1RDR4AYACIAC26qnBF6MihCyjLCji8Q8sJmUXn1Qh6GPwCuDFbLswFLACAShV5xcV/bPg4RWN7CEuS4EecLszKatOXwwOk3OkKIuAAAAAAAAAAcAAAAAAAAAAABIBkQIwAWNjYAAAABAAsDAAAAACDjsMRCmPwcFJr79MiZb7kkJ65B5GSbk0yklZkbeFK4VQ== ABgACwAgaJrN5SzXk7ffZJC9tXeOftl2DxaznLZv0SRX7+IRfPMAIIbjBETyPewha32Xq1FROCBJe6/prg+xG02LhFNPhDRb ACMACwAFAHIAAAAQABgACwADABAAIOPXhQHNHyOkg+gwQx4SiSNbBR8UpiOrYQ68ttai/KUQACD0QADC8ysgldseBqytxq67BEdBKdG16a6n1gwA0+HtuA== 12855e71715fdb3e0e1158dec212e4b811e70bb3329ab4e5f0c0e9373a4288b8
+node-b-1.0.0.json /1RDR4AYACIAC1l8fIFi6VOTMQcyqjWrQ2g2b5zaL/1SzcUmkVI8zh6cACBoAkB6Ih2y9hq1lQWpk5x50Ivux8uFmuH4glt234UcTAAAAAAAAAAJAAAAAAAAAAABIBkQIwAWNjYAAAABAAsDAAAAACDjsMRCmPwcFJr79MiZb7kkJ65B5GSbk0yklZkbeFK4VQ== ABgACwAgxeKi7vbVIc1sbTAcbYvNCl3ronVFKO2CfqrfcT5lmFIAIMrJMf3KiJveZDjNXnJJCrMU5GyT8KPz0H+nhTE4m/Uy ACMACwAFAHIAAAAQABgACwADABAAIL1SpeBevicmumRAI1eBOOwE6XsC+CEC1O4pfKfZchT9ACAF/6zmu5EiPXssOPH0A2iu/CaeM2N6fKADQTj1eBeLEw== 6802407a221db2f61ab59505a9939c79d08beec7cb859ae1f8825b76df851c4c
+node-b-1.1.0.json /1RDR4AYACIAC1l8fIFi6VOTMQcyqjWrQ2g2b5zaL/1SzcUmkVI8zh6cACAG3x/X6GIDmeD42kECuur7j2O3ULeyJt/r5xOIkcZI/gAAAAAAAAAaAAAAAAAAAAABIBkQIwAWNjYAAAABAAsDAAAAACDjsMRCmPwcFJr79MiZb7kkJ65B5GSbk0yklZkbeFK4VQ== ABgACwAgKy2QVZma+3nIafXcf86g89JJYnivzy1wJA3xmSfX9I8AIGjHmbj6kuiKlad1S+Ns4FT7a/AG1GJ0fb10nAwpFXfn ACMACwAFAHIAAAAQABgACwADABAAIL1SpeBevicmumRAI1eBOOwE6XsC+CEC1O4pfKfZchT9ACAF/6zmu5EiPXssOPH0A2iu/CaeM2N6fKADQTj1eBeLEw== 06df1fd7e8620399e0f8da4102baeafb8f63b750b7b226dfebe7138891c648fe
diff --git a/testing/fixtures/keepalive/recompute.py b/testing/fixtures/keepalive/recompute.py
index 7f0ba74e..ceb8d8ac 100755
--- a/testing/fixtures/keepalive/recompute.py
+++ b/testing/fixtures/keepalive/recompute.py
@@ -24,7 +24,7 @@ BODY_KEYS = [
"projection_root", "mask", "set_sha256", "count", "not_ok",
]
CANONICAL_KEYS = ["seq", "op", "id", "selector", "artifact"]
-TAMPER_COUNTERS = 40
+TAMPER_COUNTERS = 41
ALL_OK = 0x1555
OPERATION_DIGESTS = [
@@ -51,9 +51,9 @@ MASKS = [
# The body the example pages print for node A after release 1.1.0: six
# conditions and no image keys.
-PAGE_BODY_LEN = 738
+PAGE_BODY_LEN = 740
PAGE_BODY_SHA256 = \
- "387a1917e56c2e73478982a50df323289fd648195afe5baa3f3c37ef8ad1f724"
+ "6e40704db76a1be5e3fd544511962cc502380e9aa63137e1e5fc4fa91d1a377c"
PAGE_COND = 0x555
VERSION_ID = "d6d918ad22ff597579e6678bef75adca84d30f9661e0b7bbdbf534eebc138c1f"
diff --git a/testing/functional/tamperproof/t6153-xfs-attrmulti.sh b/testing/functional/tamperproof/t6153-xfs-attrmulti.sh
new file mode 100755
index 00000000..9fbcb01b
--- /dev/null
+++ b/testing/functional/tamperproof/t6153-xfs-attrmulti.sh
@@ -0,0 +1,48 @@
+#!/bin/sh
+# SPDX-License-Identifier: BSD-2-Clause
+# Copyright (c) 2026 Authors of shirudo
+#
+# t6153 -- XFS_IOC_ATTRMULTI_BY_HANDLE changes attributes past every xattr
+# hook, so a task without authority may not issue it on an XFS file
+# system: it fails with EACCES and counts as XattrHandle. On any other
+# file system the same number reaches the file system, which does not
+# know it. The XFS case needs XFS in the kernel and mkfs.xfs, which the
+# slim test VM kernel lacks.
+
+cd "$(dirname "$0")/../.."
+. ./integration-lib.sh
+target_guard
+command -v python3 >/dev/null 2>&1 || test_skip_all "no python3"
+H=helper/test-xfs-attrmulti
+[ -x "$H" ] || test_skip_all "test-xfs-attrmulti helper not built"
+W=$(mktemp -d)
+cleanup() {
+ ! mountpoint -q "$W/mnt" || umount "$W/mnt"
+ rm -rf "$W"
+}
+trap cleanup EXIT
+counter() {
+ "$SHIRUDO_BIN" status --json | python3 -c '
+import json, sys
+print(json.load(sys.stdin)["tamper_attempts"]["counters"][sys.argv[1]])
+' "$1"
+}
+before=$(counter XattrHandle) || test_skip_all "no tamper counters"
+: >"$W/file"
+
+test_expect_success 'the ioctl number on another file system is not refused' '
+ [ "$("$H" "$W/file")" != 13 ] &&
+ [ "$(counter XattrHandle)" = "$before" ]
+'
+if command -v mkfs.xfs >/dev/null 2>&1 && grep -qw xfs /proc/filesystems &&
+ truncate -s 320M "$W/xfs.img" && mkfs.xfs -q "$W/xfs.img" &&
+ mkdir "$W/mnt" && mount -o loop "$W/xfs.img" "$W/mnt" &&
+ : >"$W/mnt/file"; then
+ test_expect_success 'attrmulti by handle is refused on XFS and counted' '
+ [ "$("$H" "$W/mnt/file")" = 13 ] &&
+ [ "$(counter XattrHandle)" -gt "$before" ]
+ '
+else
+ echo "# no XFS here; the XFS case is not run"
+fi
+test_done
diff --git a/testing/helper/test-xfs-attrmulti.c b/testing/helper/test-xfs-attrmulti.c
new file mode 100644
index 00000000..0275b5ca
--- /dev/null
+++ b/testing/helper/test-xfs-attrmulti.c
@@ -0,0 +1,55 @@
+// SPDX-License-Identifier: BSD-2-Clause
+/*
+ * Copyright (c) 2026 Authors of shirudo
+ *
+ * Issues XFS_IOC_ATTRMULTI_BY_HANDLE with no operations on the file named
+ * and prints the errno it fails with, or 0: XFS itself refuses the empty
+ * handle with EINVAL, so EACCES comes from an LSM.
+ */
+
+#include <errno.h>
+#include <fcntl.h>
+#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
+#include <sys/ioctl.h>
+
+#include <linux/types.h>
+
+struct handle_req {
+ __u32 fd;
+ void *path;
+ __u32 oflags;
+ void *ihandle;
+ __u32 ihandlen;
+ void *ohandle;
+ __u32 *ohandlen;
+};
+
+struct attrmulti_req {
+ struct handle_req hreq;
+ __u32 opcount;
+ void *ops;
+};
+
+#define XFS_IOC_ATTRMULTI_BY_HANDLE _IOW('X', 123, struct attrmulti_req)
+
+int main(int argc, char **argv)
+{
+ struct attrmulti_req req = {};
+ int fd, ret;
+
+ if (argc != 2) {
+ fprintf(stderr, "usage: %s <file on XFS>\n", argv[0]);
+ return 2;
+ }
+ fd = open(argv[1], O_RDONLY | O_CLOEXEC);
+ if (fd < 0) {
+ fprintf(stderr, "open %s: %s\n", argv[1], strerror(errno));
+ return 2;
+ }
+ ret = ioctl(fd, XFS_IOC_ATTRMULTI_BY_HANDLE, &req);
+ printf("%d\n", ret < 0 ? errno : 0);
+ close(fd);
+ return 0;
+}
diff --git a/testing/proofs/cbmc/proofs.list b/testing/proofs/cbmc/proofs.list
index f44bb24b..060432d8 100644
--- a/testing/proofs/cbmc/proofs.list
+++ b/testing/proofs/cbmc/proofs.list
@@ -56,7 +56,7 @@ log-escape --unwind 7 LEN=0-5
json-emit-string --unwind 5 --unwindset json_string.0:27,put_string_n.0:5,put_raw.0:7,well_formed.0:27,replaced.0:5,memchr.0:9,memcmp.0:13 LEN=0-4
json-emit-buffer --unwind 1 --unwindset json_raw_value.0:5,harness.0:5 --malloc-may-fail --malloc-fail-null LEN=0-4
json-emit-nest --object-bits 12 --unwind 1 --unwindset json_text.0:57,sequences.0:4,sequences.1:5,any_depth.0:4,any_depth.1:4,strcmp.0:12,memchr.0:9,put_string_n.0:2,put_string_n.1:2,put_raw.0:8,json_kv_raw.0:3,json_raw_value.0:3,json_raw.0:5,strlen.0:3,vsnprintf.2:5,vsnprintf.0:2,format_number.0:3,format_number.2:5,format_number.3:3
-keepalive-emit -I ../../.. --object-bits 12 --max-field-sensitivity-array-size 832 --unwind 1 --unwindset json_members.0:833,power_of_ten.0:6,put_string_n.0:5,put_string_n.1:66,put_raw.0:7,strlen.0:66,hex_is_lower.0:66,kv_tamper.0:41,kv_no_tree.0:8,json_raw_value.0:6,vsnprintf.2:4,vsnprintf.0:2,format_number.0:6,format_number.2:5,format_number.3:6,ends_in_any_number.0:6,ends_in_any_number.1:833,ends_in_any_number.2:5 LEN=0-3
+keepalive-emit -I ../../.. --object-bits 12 --max-field-sensitivity-array-size 832 --unwind 1 --unwindset json_members.0:833,power_of_ten.0:6,put_string_n.0:5,put_string_n.1:66,put_raw.0:7,strlen.0:66,hex_is_lower.0:66,kv_tamper.0:42,kv_no_tree.0:8,json_raw_value.0:6,vsnprintf.2:4,vsnprintf.0:2,format_number.0:6,format_number.2:5,format_number.3:6,ends_in_any_number.0:6,ends_in_any_number.1:833,ends_in_any_number.2:5 LEN=0-3
json-string --unwind 5 --unwindset json_string.0:7,parse_string.0:5,parse_string.1:7,memchr.0:9,memcmp.0:7,harness.0:8 LEN=0-6
json-escape --unwind 5 --unwindset parse_string.0:4,memcmp.0:9
json-roundtrip --unwind 1 --unwindset put_string_n.0:5,put_string_n.1:5,put_raw.0:7,vsnprintf.2:4,vsnprintf.0:2,format_number.0:3,format_number.2:5,format_number.3:3,parse_string.1:6,parse_string.0:4,hex4.0:5,utf8_width.0:4,memcmp.0:5 LEN=0-4
diff --git a/testing/unit/keepalive.c b/testing/unit/keepalive.c
index 777ddbea..6a47c223 100644
--- a/testing/unit/keepalive.c
+++ b/testing/unit/keepalive.c
@@ -595,17 +595,17 @@ static const char * const tamper_order[] = {
"SealRename", "SealSetattr", "SealXattr", "SealLabel", "SealPtrace",
"SealPerf", "ExecTraced", "SealEntry", "PerfAttach", "PinEntry",
"SealCopyUp", "Kexec", "TpmExtend", "ObjGet", "SealSignal",
- "SealCoreDump", "SealUprobe", "ExecShared",
+ "SealCoreDump", "SealUprobe", "ExecShared", "XattrHandle",
};
static void tamper_counters_keep_their_places(void)
{
size_t i;
- ASSERT_EQ(ARRAY_SIZE(tamper_order), 40);
+ ASSERT_EQ(ARRAY_SIZE(tamper_order), 41);
ASSERT_EQ(TAMPER_MAX, ARRAY_SIZE(tamper_order));
EXPECT_EQ(TAMPER_LOAD_NOT_LOADER, 0);
- EXPECT_EQ(TAMPER_EXEC_SHARED, TAMPER_MAX - 1);
+ EXPECT_EQ(TAMPER_XATTR_HANDLE, TAMPER_MAX - 1);
for (i = 0; i < ARRAY_SIZE(tamper_order); i++)
EXPECT_STREQ(tamper_name(i), tamper_order[i]);
}
@@ -622,7 +622,7 @@ static void body_lists_the_counters_in_enum_order(void)
in.tamper = tamper;
expect_member(&in, ",\"tamper\":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,"
"16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,"
- "34,35,36,18446744073709551615,38,39,40],\"tree_id\":");
+ "34,35,36,18446744073709551615,38,39,40,41],\"tree_id\":");
}
static void body_refuses_a_missing_string(void)
@@ -742,7 +742,7 @@ static void body_of_the_largest_values_fits(void)
in.tamper = tamper;
ASSERT_EQ(keepalive_emit(&in, body, sizeof(body), &whole), 0);
- EXPECT_EQ(whole, 3361);
+ EXPECT_EQ(whole, 3382);
EXPECT_LT(whole, KEEPALIVE_BODY_MAX);
EXPECT_EQ(keepalive_emit(&in, body, whole, &len), -ENOSPC);
EXPECT_EQ(keepalive_emit(&in, body, whole + 1, &len), 0);
diff --git a/testing/vm/build-bundle-payload.sh b/testing/vm/build-bundle-payload.sh
index 11eb2020..7308cb1b 100755
--- a/testing/vm/build-bundle-payload.sh
+++ b/testing/vm/build-bundle-payload.sh
@@ -101,6 +101,7 @@ testing/helper/test-bpf-load
testing/helper/test-bpf-cmd
testing/helper/test-exec-fail
testing/helper/test-exec-shared
+testing/helper/test-xfs-attrmulti
testing/helper/test-perf-attach
testing/helper/test-otel-map
testing/helper/test-upatch-map-types
diff --git a/util/tamper.c b/util/tamper.c
index 25febd8d..186be435 100644
--- a/util/tamper.c
+++ b/util/tamper.c
@@ -100,6 +100,8 @@ static const struct {
"uprobe in a shirudo task, which acts without authority" },
[TAMPER_EXEC_SHARED] = { "ExecShared",
"exec of the runtime binary by a task that shares its file system context" },
+ [TAMPER_XATTR_HANDLE] = { "XattrHandle",
+ "XFS attribute change by file handle, which passes no xattr hook" },
};
const char *tamper_name(enum tamper_point point)