Fix to default policy to get simple VM running
PATCH 1/1 Fix to default policy to get simple VM running
This fix gets to the default Flask/XSM policy gets a simple guest VM (Ramdisk only, no VIF) running.
tools/flask/policy/policy/modules/xen/xen.te +1 -1
@@ -33,7 +33,7 @@ getvcpuinfo getaddrsize getvcpuaffinity}; allow $1 $2:shadow {enable}; allow $1 $2:mmu {map_read map_write memorymap adjust pinpage}; - allow $2 $2:mmu {map_read map_write pinpage}; + allow $2 $2:mmu {map_read map_write adjust pinpage}; allow $2 domio_t:mmu {map_read}; allow $2 $2:grant {query setup}; allow $1 $2:grant {map_read unmap};
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
I've been looking into this issue as a result of your earlier post and I have only been able to reproduce your error when manipulating the memory reservations for a domU. The sample flask policy is a basic policy that only supports pv guests, so its not surprising that you've uncovered a limitation of this policy. Nonetheless, your patch should go in.
It's a little unclear how many guests you are running or what resources are committed against the domUs. How many domUs are you trying to supporting? Do you only get the error with more than a few domUs?
Quoted 5 lines · Stefan Berger
This fix gets to the default Flask/XSM policy gets a simple guest VM (Ramdisk only, no VIF) running.
Signed-off-by Stefan Berger <[email protected]>
Signature · 1 line
George S. Coker, II <[email protected]>
"George S. Coker, II" <[email protected]> wrote on 10/07/2008 03:28:05 PM:
Quoted 8 lines
I've been looking into this issue as a result of your earlier post and I have only been able to reproduce your error when manipulating the memory reservations for a domU. The sample flask policy is a basic policy that only supports pv guests, so its not surprising that you've uncovered a limitation of this policy. Nonetheless, your patch should go in.
It's a little unclear how many guests you are running or what resources
are
Quoted 1 line
committed against the domUs. How many domUs are you trying to
supporting?
Quoted 1 line
Do you only get the error with more than a few domUs?
Just starting a single domU required me to add this rule. 2 more rules are needed to start a domU with networking enabled - see 2nd patch.
Stefan
Quoted 13 lines · Stefan Berger
Quoted 6 lines
This fix gets to the default Flask/XSM policy gets a simple guest VM (Ramdisk only, no VIF) running.
Signed-off-by Stefan Berger <[email protected]>Signature · 1 line
George S. Coker, II <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Would you send me your config file for this guest?
Quoted 33 lines · Stefan Berger
"George S. Coker, II" <[email protected]> wrote on 10/07/2008 03:28:05 PM:
Quoted 10 lines
Quoted 10 lines
I've been looking into this issue as a result of your earlier post and I have only been able to reproduce your error when manipulating the memory reservations for a domU. The sample flask policy is a basic policy that only supports pv guests, so its not surprising that you've uncovered a limitation of this policy. Nonetheless, your patch should go in.
It's a little unclear how many guests you are running or what resources are committed against the domUs. How many domUs are you trying to supporting? Do you only get the error with more than a few domUs?
Just starting a single domU required me to add this rule. 2 more rules are needed to start a domU with networking enabled - see 2nd patch.
Stefan
Quoted 13 lines
Quoted 13 lines · Stefan Berger
Quoted 6 lines
Quoted 6 lines
This fix gets to the default Flask/XSM policy gets a simple guest VM (Ramdisk only, no VIF) running.
Signed-off-by Stefan Berger <[email protected]>Signature · 1 line
George S. Coker, II <[email protected]>
Signature · 1 line
George S. Coker, II <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
"George S. Coker, II" <[email protected]> wrote on 10/07/2008 03:57:54 PM:
Quoted 6 lines
Subject
Re: [PATCH] [Flask] Fix to default policy to get simple VM running
Would you send me your config file for this guest?
Here it is:
kernel = "/boot/vmlinuz-2.6.18.8-xen"
ramdisk = "/xen/initrd_domU/U1_ramdisk.img"
memory = 256
name = "UserDomain0"
root = "/dev/ram0 xencons=tty ro"
vif = ['backend=0']access_control = ['policy=,label=system_u:object_r:domU_t']
Stefan
Quoted 8 lines · Stefan Berger
"George S. Coker, II" <[email protected]> wrote on 10/07/2008 03:28:05 PM:
Quoted 2 lines
I've been looking into this issue as a result of your earlier post and
I
Quoted 1 line
Quoted 1 line
have only been able to reproduce your error when manipulating the
memory
Quoted 1 line
Quoted 1 line
reservations for a domU. The sample flask policy is a basic policy
that
Quoted 4 lines
Quoted 4 lines
only supports pv guests, so its not surprising that you've uncovered a limitation of this policy. Nonetheless, your patch should go in.
It's a little unclear how many guests you are running or what
resources are
Quoted 1 line
Quoted 1 line
committed against the domUs. How many domUs are you trying to
supporting?
Quoted 4 lines
Quoted 1 line
Do you only get the error with more than a few domUs?
Just starting a single domU required me to add this rule. 2 more rules are needed to start a domU with networking enabled - see 2nd
patch.
Quoted 9 lines
Stefan
Quoted 6 lines · Stefan Berger
Quoted 4 lines
This fix gets to the default Flask/XSM policy gets a simple guest VM (Ramdisk only, no VIF) running.
Quoted 11 lines
Quoted 7 lines
Quoted 2 lines
Signed-off-by Stefan Berger <[email protected]>Signature · 1 line
George S. Coker, II <[email protected]>Signature · 1 line
George S. Coker, II <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel