From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753570Ab0CGD37 (ORCPT ); Sat, 6 Mar 2010 22:29:59 -0500 Received: from fg-out-1718.google.com ([72.14.220.152]:64457 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752953Ab0CGD34 convert rfc822-to-8bit (ORCPT ); Sat, 6 Mar 2010 22:29:56 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=mpybSJ08xVdRt7Uh8l/B8I9869/jnZ/A0UOo5xuTfvgy+FrTXHUdCSAv73JSxefN84 YKur5X9DnZ2lkyQ3n/Bb9y+LFV8FA3QEIsvGqYXGENAIHxhe9TKGsIsoe0ZRdb7SQ26b r976nfEUlyA9YMJ1DLcvKetDrsVinVgMQka4c= MIME-Version: 1.0 In-Reply-To: References: <20100306112125.GN4958@bicker> Date: Sat, 6 Mar 2010 22:29:54 -0500 Message-ID: Subject: Re: [patch] security: ima_file_mmap() don't just return zero From: Vikram Dhillon To: Mimi Zohar Cc: Eric Paris , Dan Carpenter , "J.R. Okajima" , James Morris , kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, Al Viro Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 6, 2010 at 7:47 PM, Mimi Zohar wrote: > Vikram Dhillon wrote on 03/06/2010 04:30:33 PM: > >> On Sat, Mar 6, 2010 at 6:21 AM, Dan Carpenter wrote: >> > It seems like we should return an error here.  That's what the comment >> > says we should do. >> > >> > I also removed an out of date comment.  It wasn't needed and seemed >> > likely >> > to get out of date again. >> > >> > Signed-off-by: Dan Carpenter >> > --- > > The current code and comment are correct, as the return code will reflect > the file's integrity appraisal, which hasn't yet been implemented. > > Mimi Oh right :) I guess we aren't at a point yet to enforce integrity, so what should the return code return? Based on the comment the code seemed okay but I think we may have to base it on measurement appraisal in LIM (then again, not too sure if this is the right approach). -- Regards, Vikram Dhillon ~~~ There are lots of Linux users who don't care how the kernel works, but only want to use it. That is a tribute to how good Linux is. -- Linus Torvalds