From: Wei Liu Subject: Re: Questions about the in-tree Flask policy Date: Tue, 23 Sep 2014 10:49:43 +0100 Message-ID: <20140923094943.GC20691@zion.uk.xensource.com> References: <20140917153837.GE8376@zion.uk.xensource.com> <54208525.3090604@tycho.nsa.gov> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <54208525.3090604@tycho.nsa.gov> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Daniel De Graaf Cc: Ian Jackson , Wei Liu , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Mon, Sep 22, 2014 at 04:23:01PM -0400, Daniel De Graaf wrote: [...] > >I tried to look at the policy file(s), only to find out that there's a > >bunch of files that have excessive amount of information. I'm certainly > >not an XSM expert and have no intention to become one at the moment. :-) > > True, and you shouldn't have to be an expert to report errors (your current > report was exactly what was needed to fix the policy). > > In the future, any AVC denied messages in the output when under normal test > operation (i.e. not when a VM is misbehaving) should be treated as a bug in > the XSM policy even when it doesn't cause real failures. Usually, the answer Cool, this is exactly what I needed to know. :-) > is to add the permission to the proper part of the policy, and the denial > will cause operations to break (like the above errors). In some other cases, > such as cacheflush, the process continues but was not able to perform an > important operation. If this is something that can be easily added to the > test script as a failure condition, that would be helpful (but this is > certainly not a prerequisite for adding the tests in the first place). > Off the top of my head I couldn't figure out a quick way to add in this kind of failure condition. Let's leave it for the moment. Wei. > -- > Daniel De Graaf > National Security Agency