Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4295930imu; Tue, 18 Dec 2018 12:15:42 -0800 (PST) X-Google-Smtp-Source: AFSGD/WELM8lvnzQFgZj3ez/A3EXu1xy+K1+z14xbuBNqnybymxXMaOTUohVwOpv4E8TdZgBhEO0 X-Received: by 2002:a17:902:82c2:: with SMTP id u2mr17730627plz.110.1545164142095; Tue, 18 Dec 2018 12:15:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545164142; cv=none; d=google.com; s=arc-20160816; b=P6CiN456zlOBA3NjjXxw/dp5dOwGzxEM9jdcAOR4oaGiI7jK/EpQ85+Fany2SXvXvu 6hh+yKwj4iVkdriPZv3cZEQ56NkfEeb+nHv7YJVmkYpN6OxHl2EDi7xiPLwG36DF+t3b 8Gh16zb3yalq8wNKdqu9tAweag1hXXzCmgZwrLi7OI2MKsf02IXpgL1fMVeL1Nv0oa8W wdZJ11+u5H6BXal8NgOkJgoYtXDhHTkgqiueQWU0VU2b+E1hTLaOGvsGkLuDOS2f4msc F/UlR33/qD75fFwtqpucroDGnBz1VClQK/8AJg0ooA6UTlPJFOJG9q+DRsD/by3OcSjP tjeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=XS0/gqWSEt8vL+sp+1az0b5N1sGNGsEjDA5L3XQ1SaE=; b=s5dbo6SuXpD2NF3wlCY1KjnKSQlAsaGaLJauv83Olm17mVhADXkLyLyMvnQ6t2ZD9l 1HG+Byez+xSz27vd1Xgus/HlWxWKKQNyBCrsH1RZFqBD1bbdyoo0PrnVrwWzzedjgmGo 3ZV2F38MjXK11JLNpKtpt5AxNgfIzCbNivEXhSOI27OotM2jcoyWrsDPqhkBquJuzaP2 qUfssICoOkh4hBWE2Qb0bIA+hg1/I9m5suJGJo0Qz6BmhjmNlwLU5ttPw/YDSB1oU9r1 tbJcy3NHNhBXOSR57o2RaWxXGiloUeFP0b36ylBHfoVmKD9TJJWOlBCiq3qQ19IHYHrZ plfw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c136si14325801pfc.141.2018.12.18.12.15.26; Tue, 18 Dec 2018 12:15:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727099AbeLRTXS (ORCPT + 99 others); Tue, 18 Dec 2018 14:23:18 -0500 Received: from mx2.suse.de ([195.135.220.15]:57494 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726422AbeLRTXR (ORCPT ); Tue, 18 Dec 2018 14:23:17 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 2A7D2B0C2; Tue, 18 Dec 2018 19:23:16 +0000 (UTC) Subject: Re: [PATCH v2] ima: define ima_post_create_tmpfile() hook and add missing call To: Mimi Zohar Cc: linux-integrity , linux-kernel , Goldwyn Rodrigues , Fabian Vogt , Al Viro References: <1545158873.4206.86.camel@linux.ibm.com> From: Ignaz Forster Message-ID: Date: Tue, 18 Dec 2018 20:23:15 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <1545158873.4206.86.camel@linux.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 18.12.18 um 19:47 schrieb Mimi Zohar: > If tmpfiles can be made persistent, then newly created tmpfiles need to > be treated like any other new files in policy. > > This patch indicates which newly created tmpfiles are in policy, causing > the file hash to be calculated on __fput(). > > Reported-by: Ignaz Forster > Signed-off-by: Mimi Zohar Tested-by: Ignaz Forster Thanks a lot, the patch is working as expected. Ignaz