Fix off-by-1 in default SELinux MCS range
Fix off-by-1 in default SELinux MCS range

For a while we're have random failures of 'securityselinuxtest'
which were not at all reproducible. Fortunately we finally
caught a failure with VIR_TEST_DEBUG=1 enabled. This revealed

TEST: securityselinuxtest
 1) GenLabel "dynamic unconfined, s0, c0.c1023"                       ... OK
 2) GenLabel "dynamic unconfined, s0, c0.c1023"                       ... OK
 3) GenLabel "dynamic unconfined, s0, c0.c1023"                       ... OK
 4) GenLabel "dynamic virtd, s0, c0.c1023"                            ... OK
 5) GenLabel "dynamic virtd, s0, c0.c10"                              ... OK
 6) GenLabel "dynamic virtd, s2-s3, c0.c1023"                         ... OK
 7) GenLabel "dynamic virtd, missing range"                           ... Category two 1024 is out of range 0-1023
FAILED
FAIL: securityselinuxtest

And sure enough we had an off-by-1 in the MCS range code when
the current process has no range set. The test suite randomly
allocates 2 categories from 0->1024 so the chances of hitting
this in the test suite were slim indeed :-)

Signed-off-by: Daniel P. Berrange <bb938cf255e055ff3507f2627d214e8e62118fcf@redhat.com>

andreabolognani/libvirt,jfehlig/libvirt,jardasgit/libvirt,jardasgit/libvirt,jfehlig/libvirt,shugaoye/libvirt,elmarco/libvirt,shugaoye/libvirt,datto/libvirt,zippy2/libvirt,shugaoye/libvirt,libvirt/libvirt,nertpinx/libvirt,cbosdo/libvirt,jardasgit/libvirt,taget/libvirt,VenkatDatta/libvirt,shugaoye/libvirt,VenkatDatta/libvirt,andreabolognani/libvirt,taget/libvirt,andreabolognani/libvirt,agx/libvirt,libvirt/libvirt,VenkatDatta/libvirt,zhlcindy/libvirt-1.1.4-maintain,elmarco/libvirt,eskultety/libvirt,agx/libvirt,elmarco/libvirt,cbosdo/libvirt,olafhering/libvirt,crobinso/libvirt,eskultety/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,taget/libvirt,cbosdo/libvirt,zhlcindy/libvirt-1.1.4-maintain,fabianfreyer/libvirt,agx/libvirt,shugaoye/libvirt,crobinso/libvirt,eskultety/libvirt,eskultety/libvirt,datto/libvirt,olafhering/libvirt,elmarco/libvirt,nertpinx/libvirt,rlaager/libvirt,VenkatDatta/libvirt,crobinso/libvirt,agx/libvirt,libvirt/libvirt,nertpinx/libvirt,taget/libvirt,datto/libvirt,eskultety/libvirt,libvirt/libvirt,datto/libvirt,nertpinx/libvirt,elmarco/libvirt,rlaager/libvirt,fabianfreyer/libvirt,crobinso/libvirt,zippy2/libvirt,rlaager/libvirt,zippy2/libvirt,andreabolognani/libvirt,agx/libvirt,zhlcindy/libvirt-1.1.4-maintain,zhlcindy/libvirt-1.1.4-maintain,nertpinx/libvirt,olafhering/libvirt,jfehlig/libvirt,fabianfreyer/libvirt,rlaager/libvirt,jardasgit/libvirt,VenkatDatta/libvirt,jardasgit/libvirt,zippy2/libvirt,cbosdo/libvirt,fabianfreyer/libvirt,taget/libvirt,rlaager/libvirt,cbosdo/libvirt,datto/libvirt,olafhering/libvirt,zhlcindy/libvirt-1.1.4-maintain