summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJuergen Gross <jgross@suse.com>2025-10-14 14:28:15 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-04-18 11:33:22 +0300
commita5ea87cc1a2ec9dd9862080b3e530ddd8a995238 (patch)
treeaf098916421b64b48b090d3c958733a7a77ac470 /include/linux
parent3ee5b9e3de4b8bdd74183d83205481c91a9effc8 (diff)
downloadlinux-a5ea87cc1a2ec9dd9862080b3e530ddd8a995238.tar.xz
xen/privcmd: add boot control for restricted usage in domU
commit 1613462be621ad5103ec338a7b0ca0746ec4e5f1 upstream. When running in an unprivileged domU under Xen, the privcmd driver is restricted to allow only hypercalls against a target domain, for which the current domU is acting as a device model. Add a boot parameter "unrestricted" to allow all hypercalls (the hypervisor will still refuse destructive hypercalls affecting other guests). Make this new parameter effective only in case the domU wasn't started using secure boot, as otherwise hypercalls targeting the domU itself might result in violating the secure boot functionality. This is achieved by adding another lockdown reason, which can be tested to not being set when applying the "unrestricted" option. This is part of XSA-482 Signed-off-by: Juergen Gross <jgross@suse.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/security.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/security.h b/include/linux/security.h
index 95102b9f75c9..966ecfdacfe3 100644
--- a/include/linux/security.h
+++ b/include/linux/security.h
@@ -122,6 +122,7 @@ enum lockdown_reason {
LOCKDOWN_XMON_WR,
LOCKDOWN_BPF_WRITE_USER,
LOCKDOWN_DBG_WRITE_KERNEL,
+ LOCKDOWN_XEN_USER_ACTIONS,
LOCKDOWN_INTEGRITY_MAX,
LOCKDOWN_KCORE,
LOCKDOWN_KPROBES,