[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [OSSTEST PATCH] enable FLASK_ENABLE when using it for testing



On 1/14/16 10:22 AM, Ian Campbell wrote:
> On Thu, 2016-01-14 at 08:58 -0600, Doug Goldstein wrote:
>> Currently OSSTest has 'XSM' tests but XSM and FLASK are two different
>> options and OSSTests's 'XSM' test depends on FLASK so ensure that FLASK
>> is enabled so that tests pass.
> 
> IMHO the xen/Kconfig should be arranged such that if XSM is enabled then
> FLASK is on by default. Having XSM but not Flask as what happens if you
> enable XSM isn't helpful.

That is how its setup. But a test framework should be explicit over
implicit over behaviors.

> 
> However, xen/common/Kconfig already has "default y" and "depends XSM" for
> the FLASK entry, which I would have said was what was required to behave as
> I suggest.
> 
> So why isn't it I wonder?

It is. If the test framework enabled FLASK since its testing FLASK then
I would agree with you. I'd actually argue that my patch didn't go far
enough and change all the places to FLASK instead of XSM.

> 
> After a plain "make -C xen defconfig" I end up with a xen/.config
> containing "CONFIG_XSM is not set" and no mention of CONFIG_FLASK (as
> expected, due to the depends).
> 
> Adding CONFIG_XSM=y to the end of xen/.config and running "make -C xen
> oldconfig" I then get asked:
> 
>     FLux Advanced Security Kernel support (FLASK) [Y/n/?] (NEW)  
> 
> IOW it does appear to be defaulting to on (I also get asked about
> LATE_HWDOM).
> 
> osstest uses "olddefconfig", and with:
> 
> $ make -C xen olddefconfig
> $ echo 'CONFIG_XSM=y' >> xen/.config  
> $ make -C xen olddefconfig
> 
> I end up with both XSM and FLASK enabled:
> 
> $ grep -E XSM\|FLASK xen/.config
> CONFIG_FLASK=y
> CONFIG_XSM=y
> 
> which is what we want and is expected etc. Looking at the results of the
> latest xen-unstable http://logs.test-lab.xenproject.org/osstest/logs/77945/
>  and specifically at
> http://logs.test-lab.xenproject.org/osstest/logs/77945/build-amd64-xsm/build/xen-hv-config
> it seems that the automated version is doing what is expected too. IOW this
> patch is both unnecessary (since it already works) and wrong (since it is
> working how we want it to) and the issue exhibited by the test cases in
> 77945 is something different.
> 
> Ian.
> 

This patch is for the tooling. The point of the patch is to be explicit
over implicit defaults. FLASK depends on XSM. The test framework tests
FLASK. It was relying on the behavior that FLASK is defaulted to enabled
when XSM is enabled but if it wants to test FLASK it should turn on FLASK.

-- 
Doug Goldstein

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.