From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD435C43387 for ; Tue, 18 Dec 2018 19:23:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 95A8621841 for ; Tue, 18 Dec 2018 19:23:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726638AbeLRTXS (ORCPT ); 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-integrity-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-integrity@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