mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
sysctl/Flask: add preliminary check for XEN_SYSCTL_getdomaininfolist
To shield the sysctl lock from abuse by unauthorized domains, follow what5154fdda11("domctl: protect locking for get_domain_state") did: Check for permission to issue the operation against DOM_XEN in flask_sysctl(). The finer-grained xsm_getdomaininfo() later in the handling of the sub-op remains unaltered. In the in-tree policy respective permission therefore needs granting. This is part of CVE-2026-62426 / XSA-499. Signed-off-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com> Acked-by: Daniel P. Smith <dpsmith@apertussolutions.com> (cherry picked from commit3179bf2931)
This commit is contained in:
1 parent
2881e008a7
commit
1ef3886a18
2 files changed
+4
-1
No files matched your search
@@ -150,6 +150,7 @@ define(`create_domain_build_label', `
|
||||
# manage_domain(priv, target)
|
||||
# Allow managing a running domain
|
||||
define(`manage_domain', `
|
||||
allow $1 domxen_t:domain getdomaininfo;
|
||||
allow $1 $2:domain {
|
||||
getdomaininfo
|
||||
getvcpuinfo
|
||||
|
||||