Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751983AbaDZI6u (ORCPT ); Sat, 26 Apr 2014 04:58:50 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:43771 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751122AbaDZI6r (ORCPT ); Sat, 26 Apr 2014 04:58:47 -0400 MIME-Version: 1.0 In-Reply-To: <87lhutt4ph.fsf@x220.int.ebiederm.org> References: <535A5C78.1070901@samsung.com> <535A75C1.3050901@samsung.com> <20140425182310.GA9128@redhat.com> <87sip15iy5.fsf@x220.int.ebiederm.org> <20140425192543.GA11908@redhat.com> <878uqt42q7.fsf@x220.int.ebiederm.org> <20140425200156.GA13727@redhat.com> <874n1h16le.fsf@x220.int.ebiederm.org> <87iopxxfpp.fsf@x220.int.ebiederm.org> <87lhutt4ph.fsf@x220.int.ebiederm.org> Date: Sat, 26 Apr 2014 11:58:45 +0300 Message-ID: Subject: Re: Kernel panic at Ubuntu: IMA + Apparmor From: Dmitry Kasatkin To: "Eric W. Biederman" Cc: Oleg Nesterov , Dmitry Kasatkin , linux-security-module , John Johansen , Mimi Zohar , James Morris , viro@zeniv.linux.org.uk, Linux Kernel Mailing List , kernel-team Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26 April 2014 01:38, Eric W. Biederman wrote: > Dmitry Kasatkin writes: > >> Is it really a show stopper to switch order of 2 functions as quick fix? >> It was like that before 3.10 and seemed ok... > > When that is the question. The answer is yes it is a show stopper. > > A quick fix to bury a fundamental design flaw because the code > previously seemed ok. That seems fundamentally wrong. > > Having IMA conflict with Apparmor in Kconfig would be a sensible quick > fix. > > Eric Conflict with Apparmor means with Ubuntu. But answering to your early question.. IMA does not want permission denied when measuring and re-measuring files. may_open() is doing that job before. We need quickly introduce kernel_read without LSM checks... -- Thanks, Dmitry -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/