Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp287609ybz; Tue, 28 Apr 2020 23:45:15 -0700 (PDT) X-Google-Smtp-Source: APiQypJpjo2b5DEEg2eLo7GG5xFjTPCDYvsKpApL1hZnsepwjrTCqX36plHuhDQxqeTlW6atF/Ms X-Received: by 2002:a50:9e6a:: with SMTP id z97mr1036570ede.375.1588142715424; Tue, 28 Apr 2020 23:45:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588142715; cv=none; d=google.com; s=arc-20160816; b=oYq5XvyNbcUjwPEhnXaDp8daDyKJptGeKfrf1X8/WoLqfWewYB3jkSH0vxmGPLNrzT bsMLiXTx4fM41jeh8M+FG71UKnU6crN2WwJD/FuCK8lY44hRXaTGIV/elyizSBB2k1PB beuqDhdVm/MGQntSjxUZ3Y/ngEk1GzJQE+z6Vlr3ZKq2nDXZbevwwvQVxID+jfoHwDFt wwE2gkA08jNsV3ZQ69HmFUlgFg0AVzB1hi/pk0XQM4nAxcLEVFlv78vEXmBy0bLbwU2u 7gKm0sfseGxcVnqoA4L+QQUkDVjIZqQHbF7MVhRW2vKt5VAktzQsZNQcGmASXBS4tudB 41iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=OjHLoknY9FukbEEn7A3oPPcPdUcPqwU1uSCB893MiQk=; b=mE5tYtGRKFLr6k4JLxWWkOMtQ4g+tNbnvSMvy+7yVe5BnbpxVhcDzlJccNWt/9+YX+ zPVxVwR+wl+EVJ/3yaR/PaesNLFmFXj7h/2P9l8pArmvxIMn1Mu6MvGtT+BRkaZTZX5C 75vAvQcnyUlgndEXGVU54JBq8vwDRHr+bhih4zeqjmAUDhQKWG5NVWOUdF6BujOnBP7S wnibFKxaADIdW67r31BD0AA3utPMDJtpkBkfx7NRIvaxNYpvW5GzmogyA/5oxQnB4XQw cM0ZWpN9jyy4JxASuZVYb0/yqu6FpgcAx+6h4IE3wx8x3WmQeJKmcypDScf2zlMS59IS PrzQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qo6si3236995ejb.204.2020.04.28.23.44.51; Tue, 28 Apr 2020 23:45:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726565AbgD2Gnh (ORCPT + 99 others); Wed, 29 Apr 2020 02:43:37 -0400 Received: from lhrrgout.huawei.com ([185.176.76.210]:2124 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726158AbgD2Gng (ORCPT ); Wed, 29 Apr 2020 02:43:36 -0400 Received: from LHREML713-CAH.china.huawei.com (unknown [172.18.7.107]) by Forcepoint Email with ESMTP id 0529315BC91E05DB2692; Wed, 29 Apr 2020 07:43:35 +0100 (IST) Received: from fraeml704-chm.china.huawei.com (10.206.15.53) by LHREML713-CAH.china.huawei.com (10.201.108.36) with Microsoft SMTP Server (TLS) id 14.3.487.0; Wed, 29 Apr 2020 07:43:34 +0100 Received: from lhreml722-chm.china.huawei.com (10.201.108.73) by fraeml704-chm.china.huawei.com (10.206.15.53) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1913.5; Wed, 29 Apr 2020 08:43:33 +0200 Received: from lhreml722-chm.china.huawei.com ([10.201.108.73]) by lhreml722-chm.china.huawei.com ([10.201.108.73]) with mapi id 15.01.1913.007; Wed, 29 Apr 2020 07:43:33 +0100 From: Krzysztof Struczynski To: Mimi Zohar , Roberto Sassu CC: "linux-integrity@vger.kernel.org" , "linux-security-module@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Silviu Vlasceanu , "stable@vger.kernel.org" Subject: RE: [PATCH v2 6/6] ima: Fix return value of ima_write_policy() Thread-Topic: [PATCH v2 6/6] ima: Fix return value of ima_write_policy() Thread-Index: AQHWHH9bJMB74MHPBU+JlJn2oiegG6iOwCwAgADnE9A= Date: Wed, 29 Apr 2020 06:43:33 +0000 Message-ID: References: <20200427102900.18887-1-roberto.sassu@huawei.com> <20200427103128.19229-1-roberto.sassu@huawei.com> <1588095998.5195.49.camel@linux.ibm.com> In-Reply-To: <1588095998.5195.49.camel@linux.ibm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.47.9.247] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgTWltaSwNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBNaW1pIFpv aGFyIFttYWlsdG86em9oYXJAbGludXguaWJtLmNvbV0NCj4gU2VudDogVHVlc2RheSwgQXByaWwg MjgsIDIwMjAgNzo0NyBQTQ0KPiBUbzogUm9iZXJ0byBTYXNzdSA8cm9iZXJ0by5zYXNzdUBodWF3 ZWkuY29tPjsgS3J6eXN6dG9mIFN0cnVjenluc2tpDQo+IDxrcnp5c3p0b2Yuc3RydWN6eW5za2lA aHVhd2VpLmNvbT4NCj4gQ2M6IGxpbnV4LWludGVncml0eUB2Z2VyLmtlcm5lbC5vcmc7IGxpbnV4 LXNlY3VyaXR5LW1vZH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