Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761902AbXFIVCi (ORCPT ); Sat, 9 Jun 2007 17:02:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760144AbXFIVC3 (ORCPT ); Sat, 9 Jun 2007 17:02:29 -0400 Received: from gprs189-60.eurotel.cz ([160.218.189.60]:39764 "EHLO amd.ucw.cz" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1760277AbXFIVC1 (ORCPT ); Sat, 9 Jun 2007 17:02:27 -0400 Date: Sat, 9 Jun 2007 23:01:51 +0200 From: Pavel Machek To: Crispin Cowan Cc: James Morris , Alan Cox , Andi Kleen , Casey Schaufler , linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: AppArmor FAQ Message-ID: <20070609210151.GB6663@elf.ucw.cz> References: <20070417181016.GA10903@one.firstfloor.org> <657751.18080.qm@web36614.mail.mud.yahoo.com> <20070417211653.GB11944@one.firstfloor.org> <20070417225815.000b0fdb@the-village.bc.nu> <4626746A.9010701@novell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4626746A.9010701@novell.com> X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.11+cvs20060126 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1516 Lines: 35 Hi! > >> I'm not sure if AppArmor can be made good security for the general case, > >> but it is a model that works in the limited http environment > >> (eg .htaccess) and is something people can play with and hack on and may > >> be possible to configure to be very secure. > >> > > Perhaps -- until your httpd is compromised via a buffer overflow or > > simply misbehaves due to a software or configuration flaw, then the > > assumptions being made about its use of pathnames and their security > > properties are out the window. > > > How is it that you think a buffer overflow in httpd could allow an > attacker to break out of an AppArmor profile? This is exactly what > AppArmor was designed to do, and without specifics, this is just > FUD. No, it is not, I already broke AppArmor once, and it took me less then one hour. Give me machine with root shell, and make app armor permit everything but reading /etc/secret.file. AppArmor is not designed for this, but if you want to claim your solution works, this looks like a nice test. Actually, give password to everyone, and see who breaks it first. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html - 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/