aboutsummaryrefslogtreecommitdiff
path: root/sys/xen
diff options
context:
space:
mode:
authorRoger Pau Monne <roger.pau@citrix.com>2020-06-25 17:16:04 +0000
committerRoger Pau Monné <royger@FreeBSD.org>2021-01-11 15:33:27 +0000
commita7650787905d36ac01297aa699d3009da6cfaaa9 (patch)
tree7a950c884c680643e386019836ff68cb4ebea595 /sys/xen
parented78016d005c9ec97883a33c4468052ca9880c4f (diff)
downloadsrc-a7650787905d36ac01297aa699d3009da6cfaaa9.tar.gz
src-a7650787905d36ac01297aa699d3009da6cfaaa9.zip
xen/privcmd: implement the restrict ioctl
Use an interface compatible with the Linux one so that the user-space libraries already using the Linux interface can be used without much modifications. This allows an open privcmd instance to limit against which domains it can act upon. Sponsored by: Citrix Systems R&D
Diffstat (limited to 'sys/xen')
-rw-r--r--sys/xen/privcmd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/xen/privcmd.h b/sys/xen/privcmd.h
index cd0bc7d550d9..55a1cdc86471 100644
--- a/sys/xen/privcmd.h
+++ b/sys/xen/privcmd.h
@@ -82,5 +82,7 @@ struct ioctl_privcmd_dmop {
_IOW('E', 2, struct ioctl_privcmd_mmapresource)
#define IOCTL_PRIVCMD_DM_OP \
_IOW('E', 3, struct ioctl_privcmd_dmop)
+#define IOCTL_PRIVCMD_RESTRICT \
+ _IOW('E', 4, domid_t)
#endif /* !__XEN_PRIVCMD_H__ */