Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp73594pxf; Tue, 30 Mar 2021 19:56:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2Q+LgVhtY4HIhNRyN00ewuiOsR7tmxsByuxZuPjCm88X0/o4oUOQYY4rJI0N7AoZ8OxHw X-Received: by 2002:a05:6402:1d39:: with SMTP id dh25mr1049291edb.282.1617159370102; Tue, 30 Mar 2021 19:56:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617159370; cv=none; d=google.com; s=arc-20160816; b=K6CGHkdhP4sZilyxSCF1h79NGQ6MiQblzbSIG13s1zsrhARa/3IO3OtVjtcqe8u0aB 6+bX10NmSCGyWgMEaxnniQ6/hezW4mPyuzoWomxClAIR6mfSRw2ScbVcKt0A4lnJ/U4L vasLFk/EPth64lHKq6rOnw52THS5UO5PL/NPAl/Ip7SPt0TIp6fOrH2fh7u0w+7J1v1b ExIMwHk1QeOqEiFcj32P7kd7pdaYy8fPPS+M1k5KqF4e+2Gh3XKpzMqn/pgEa1ce5YXg lzbGJNNAMvSeClkWjmr1eKDjObiFMZZ1kjlvqW0Pz+xkSbRF+tAcyx1dyBgSK2FhbqVS rSrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BMOP78degiamY/WD4cbyeX15HDdFl30Ykqd+lMME4Qs=; b=rjqzPEkID8M6ZMkrGQvOhNKc002K7oAAEwthDlAtNpEIQ9K2d5rviXfjIXwnASZIgv ogqcIfbzEWs3ltX7GAVWefVGr6VnYkvgb5gJInjTHf6ELuM5gLLn+/MSxQ2Myz01E5iz t+NY62vWh4JNhgEDK6w04ibt9Fs31A84pfWQYzsv+53HMPkl5yPVmFdbBcwO/mffpFzA Sr8l4p9Bu1yHY+mKaQWkzUB1PLiHMhm7bahVf2LgGhJMp78VsJAskifye1MsPCEsqZW6 3b2i514CwSbYceAcDWXl6z7svE2TefQU1v1GeKBm6fzE8uW+j5xtNb6cpK5h/ZVtiqPO Xk/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gFoqu+lP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ga5si603145ejb.592.2021.03.30.19.55.44; Tue, 30 Mar 2021 19:56:10 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gFoqu+lP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233222AbhCaCyj (ORCPT + 99 others); Tue, 30 Mar 2021 22:54:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:34162 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233067AbhCaCyL (ORCPT ); Tue, 30 Mar 2021 22:54:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E31CC619CD; Wed, 31 Mar 2021 02:54:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617159249; bh=44BOhixTrsTOXN2vKxGGhWkzp//5d88yNw459tV6lEc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gFoqu+lPSk8p+rInWNrYAXDlaoY79qnvR7MJZnsZ2Y5aB03QrpFvwYvOLsahLBSxw MzAz5UrG1R7r6fVIptCHBNbU/h4AlM2nglOogOZrYxU9YGTTYfmB8U1tUIUgQyr32d mRa4PYgzPkGZJFCAZVokepRoleAsy3mn9B/u6O0kBmGwqOJrcuwJEPTBY9pTZj5Jdz 9c/h4yEVqR0gotEJVUgBqVFJPIsxzZtfivdCljRzfRyqCxJ/jZdIAoFLgcJX3lfnNg ic4MsWd6Za2gbsHbMs/P+GYzJanNeE1dZdr0d6R5hnSkJiQZXwhAInbuk7i+ZrLpuD wIVFbIhAFOqnw== Date: Wed, 31 Mar 2021 05:54:06 +0300 From: Jarkko Sakkinen To: Ricardo Ribalda Cc: linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, trivial@kernel.org Subject: Re: [PATCH] IMA: Fix error in comment Message-ID: References: <20210330060845.18422-1-ribalda@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210330060845.18422-1-ribalda@chromium.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 30, 2021 at 08:08:45AM +0200, Ricardo Ribalda wrote: > ima_file_mprotect does not return EACCES but EPERM. > > Signed-off-by: Ricardo Ribalda Acked-by: Jarkko Sakkinen /Jarkko > --- > security/integrity/ima/ima_main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/security/integrity/ima/ima_main.c b/security/integrity/ima/ima_main.c > index 9ef748ea829f..716ea29cf897 100644 > --- a/security/integrity/ima/ima_main.c > +++ b/security/integrity/ima/ima_main.c > @@ -409,7 +409,7 @@ int ima_file_mmap(struct file *file, unsigned long prot) > * this point. Eliminate this integrity gap by denying the mprotect > * PROT_EXECUTE change, if an mmap appraise policy rule exists. > * > - * On mprotect change success, return 0. On failure, return -EACESS. > + * On mprotect change success, return 0. On failure, return -EPERM. > */ > int ima_file_mprotect(struct vm_area_struct *vma, unsigned long prot) > { > -- > 2.31.0.291.g576ba9dcdaf-goog > >