1 Basics

St Architectu Compone ---------- # Overview By default can gain co system. dm_restric 0. It cons 1. Mechan domain 2. Mechani # User det ## Getting Linux: 4.1 Qemu: 3.0+ ## Setting For maximu domain unde are 32752 p aside for i also recomm The simple contiguous xen-qemuus Debian: adduse Two commen 1. Most to 2^31 (or UIDs howeve normally al 2. Additi upper 16 bi for the ran interpreted Another, l this, creat adduse A final wa UID per VM,device_mod named `c6-0 adduse And then i device If you use be used for adduse NOTE: It i A SEPARATE throw an er same uid. problems. It is also associated processes a ## Domain
The core d domain conf dm_res This will 'Technical
# Technica See docs/d # Limitati The follow * Insertin * Support f A number o device mode * Delay or * Launch "f * Make netw * Break out Additional significant implemented See SUPPOR # History ---------- Date
atus: **T re(s): x8 nt(s): to ------ -- , the QEM ntrol of t is a se ists of t isms to r sms to re ails the righ 1+ (Or the up a gro m securit r a user ossible d t. Setti ended. st and mo block of er-range- r --syste ts on thi modern sy 2^32 if r; UID 65 located t onally, s ts of the ge base ( by such ess-secur e a user r --no-cr y to set and set el_user1. You r --syste n your co modelus this met killing r --syste s importa UID, and ror a uid Multiple importan with it, re destro config ch omain con iguration trict=1 perform a details' l details esign/qem ons ing featu g a new c or qdisk f restric l may be exploit ork bombs ork conne of the r ly, getti rework o at some T.md for --------- Revision ech Previ 6 olstack --------- U device a QEMU pr t of oper wo halves estrict Q struct QE t version version t up and us y, libxl id (UID) omain IDs ng up a g st effect UIDs, and basewit m --uid 1 s method: stems hav uids are 535 is re o "nobody ome conta uid for as is don systems a e way is namedxe eate-home up a sepa the UID i argument. might do m --no-cr nfig file er="xen-q hod, you device mo m --no-cr nt when u that none maps to VMs with t that `x as they w yed. anges fig chang : number o section. u-deprivi res still drom whil backends tions sti able to d weaknesse " or othe ctions on estrictio ng PCI pa f how pas point but security --------- Version ew** ----------------------------------------- model is run in domain 0. If an attacker ocess, it could easily take control of a ations to restrict QEMU running in domain : EMU to only being able to affect its own MU's ability to interact with domain 0. s of software hat comes with Xen 4.12+) erid range needs to run the devicemodel for each corresponding to its domain id. There , and so libxl needs 32752 user ids set roup for all devicemodels to run at is ive way to do this is to allocate a create a single user named h the first UID. For example, under 31072 --group --no-create-home xen-qemuuser-range-base e 32-bit UIDs, and so can in theory go up unsigned). POSIX only guarantees 16-bit served for an invalid value, and 65534 is ". iner systems have proposed using the a container ID. Using a multiple of 2^16 e above) will result in all UIDs being s a single container ID. to run all QEMUs as the same UID. To do n-qemuuser-shared; for example: --system xen-qemuuser-shared rate process for qemus is to allocate one n the domain config file with the For example, suppose you have a VM the following: eate-home --group xen-qemuuser-c6-01 , the following line: emuuser-c6-01" should also allocate one "reaper" user to dels: eate-home --group xen-qemuuser-reaper singdevice_model_userthat EACH VM HAVE of these UIDs map to root. xl will zero, but not if multiple VMs have the the same device model uid will cause en-qemuuser-reaper not have any processes ill be destroyed when deprivileged qemu e is to add the following line to the f restrictions, outlined below in the lege.md for technical details. need to be implemented: e the guest is running (xl cdrom-insert) ll need to be implemented. A compromised o the following: s in the toolstack r resource exhaustion attacks the management network ns after migration ssthrough to work securely would require a sthrough works at the moment. It may be is not a near-term priority. support status. -------------------------------------------- Notes
2018-09-14 1 Xen 4.12 Imported from docs/misc