From: Ian Campbell Subject: Re: Questions about the in-tree Flask policy Date: Tue, 23 Sep 2014 10:53:42 +0100 Message-ID: <1411466022.14989.41.camel@kazak.uk.xensource.com> References: <20140917153837.GE8376@zion.uk.xensource.com> <54208525.3090604@tycho.nsa.gov> <20140923094943.GC20691@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20140923094943.GC20691@zion.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Wei Liu Cc: Daniel De Graaf , Ian Jackson , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, 2014-09-23 at 10:49 +0100, Wei Liu wrote: > 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. Some sort of ts-logs-check which grepped logs/dmesg etc for red flags, such as these AVC failures, "segfault at c0ffee ip 0000000000400623 sp 00007fff9548ac90 error 4 in conftest", kernel BUG/WARNING/oops etc might be interesting > Let's leave it for the moment. Agreed. > > Wei. > > > -- > > Daniel De Graaf > > National Security Agency