]> git.ipfire.org Git - thirdparty/linux.git/commit
xen/privcmd: add boot control for restricted usage in domU
authorJuergen Gross <jgross@suse.com>
Tue, 14 Oct 2025 11:28:15 +0000 (13:28 +0200)
committerJuergen Gross <jgross@suse.com>
Fri, 20 Mar 2026 11:06:01 +0000 (12:06 +0100)
commit1613462be621ad5103ec338a7b0ca0746ec4e5f1
tree5e8c7bcfcbf7734641b66fd007290d8b94dfed13
parent453b8fb68f3641fea970db88b7d9a153ed2a37e8
xen/privcmd: add boot control for restricted usage in domU

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>
---
V2:
- new patch
drivers/xen/privcmd.c
include/linux/security.h
security/security.c