From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:51332 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762610AbdJRCIa (ORCPT ); Tue, 17 Oct 2017 22:08:30 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id v9I24DB0111359 for ; Tue, 17 Oct 2017 22:08:29 -0400 Received: from e06smtp13.uk.ibm.com (e06smtp13.uk.ibm.com [195.75.94.109]) by mx0a-001b2d01.pphosted.com with ESMTP id 2dnswk9206-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 17 Oct 2017 22:08:29 -0400 Received: from localhost by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 18 Oct 2017 03:08:27 +0100 Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v9I28NVk31588600 for ; Wed, 18 Oct 2017 02:08:24 GMT Received: from d23av04.au.ibm.com (localhost [127.0.0.1]) by d23av04.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id v9I28RLS016299 for ; Wed, 18 Oct 2017 13:08:27 +1100 Subject: Re: Writing out EVM protected xattrs while EVM is active From: Mimi Zohar To: Matthew Garrett Cc: linux-integrity , Dmitry Kasatkin Date: Tue, 17 Oct 2017 22:08:19 -0400 In-Reply-To: References: <1508291395.4513.95.camel@linux.vnet.ibm.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Message-Id: <1508292499.4513.99.camel@linux.vnet.ibm.com> Sender: linux-integrity-owner@vger.kernel.org List-ID: On Tue, 2017-10-17 at 19:02 -0700, Matthew Garrett wrote: > Is this accurate? If there's no IMA policy that covers the file in > question (eg, appraise is limited to a specific security context or > owner), will IMA_NEW ever be set? It looks like that codepath will > only be entered if there's a rule that matches. The EVM xattr > protections appear to be called regardless, which means that there's > then no way to write out attributes on them at runtime. Updating/writing security.evm is triggered by writing or updating ANY file metadata included in the HMAC calculation. There is no requirement for security.ima to exist. Mimi