Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751412AbWIWSef (ORCPT ); Sat, 23 Sep 2006 14:34:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751414AbWIWSef (ORCPT ); Sat, 23 Sep 2006 14:34:35 -0400 Received: from outpipe-village-512-1.bc.nu ([81.2.110.250]:38876 "EHLO lxorguk.ukuu.org.uk") by vger.kernel.org with ESMTP id S1751412AbWIWSee (ORCPT ); Sat, 23 Sep 2006 14:34:34 -0400 Subject: Re: [patch] remove MNT_NOEXEC check for PROT_EXEC mmaps From: Alan Cox To: Hugh Dickins Cc: Stas Sergeev , Andrew Morton , Ulrich Drepper , Linux kernel In-Reply-To: References: <45150CD7.4010708@aknet.ru> <451555CB.5010006@aknet.ru> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sat, 23 Sep 2006 19:58:33 +0100 Message-Id: <1159037913.24572.62.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 (2.6.2-1.fc5.5) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 602 Lines: 14 Ar Sad, 2006-09-23 am 17:04 +0100, ysgrifennodd Hugh Dickins: > No, it's not. But this doesn't have much to do with tmpfs, > nor with shm_open. It's just that the kernel is not allowing > mmap PROT_EXEC on a MNT_NOEXEC mount. Which seems reasonable > (though you can argue that mprotect ought to disallow it too). Agreed mprotect should also be fixed. - 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/