From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22448 invoked by alias); 28 Mar 2014 15:43:09 -0000 Mailing-List: contact libffi-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libffi-discuss-owner@sourceware.org Received: (qmail 22425 invoked by uid 89); 28 Mar 2014 15:43:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-HELO: mail-qc0-f179.google.com Received: from mail-qc0-f179.google.com (HELO mail-qc0-f179.google.com) (209.85.216.179) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 28 Mar 2014 15:43:06 +0000 Received: by mail-qc0-f179.google.com with SMTP id m20so6061333qcx.24 for ; Fri, 28 Mar 2014 08:43:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=Q9DdHb00+sh1lz5nbyAMVounsq4y35XDbJEeMzbjnH8=; b=LD/eSKId/EbMjHLHPy/VOrUjJnvgUcZEcB+iYdO0s2gGnk3Z6hMr0jBZVwSOPI/jQ1 fd3GpVPb6j514KfP/fre9HjxpxtRYdx+H6v1SpYIAJOw6DDWcQ1dwQw4fVJ7ZCLHvLNn RN84b6Fue9Wmy43bwu1JcTmUGcjcz+SVDtzzXot7ocYKWulMWhHjE7G3IdUWiAghMz3Z 1y1GciyNQllbGOn8mpA9SOKxXTdZRvvEPsGvHNU/ljRtEkQ1e6hnCAgXEQpOG/g4gAtS rqp+uw38Ix8vuSD0ZRsipvk0gFTUt6ivb1kOFBml4WpBEb+b6o5cDMLKVkgPnuqk+0ku yNjg== X-Gm-Message-State: ALoCoQkwgM4QwUOFgRu655SzmUWimHlItmyWN7a904o3QdYbAf5vQvNoG1q4fkHJI2bWrne0WAcM X-Received: by 10.140.27.109 with SMTP id 100mr9541382qgw.14.1396021384094; Fri, 28 Mar 2014 08:43:04 -0700 (PDT) Received: from localhost ([207.112.112.168]) by mx.google.com with ESMTPSA id g92sm7496073qge.7.2014.03.28.08.43.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Mar 2014 08:43:02 -0700 (PDT) From: Anthony Green To: Magnus Granberg Cc: libffi-discuss@sourceware.org Subject: Re: [Patch] Updated version of emutramp_enabled_check() for PaX kernels References: <2285283.rsLvOXeDcT@laptop1.gw.ume.nu> Date: Fri, 28 Mar 2014 15:43:00 -0000 In-Reply-To: <2285283.rsLvOXeDcT@laptop1.gw.ume.nu> (Magnus Granberg's message of "Thu, 27 Mar 2014 20:14:57 +0100") Message-ID: <87eh1m8h3s.fsf@moxielogic.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2014/txt/msg00044.txt.bz2 Magnus Granberg writes: >>Hi >>Magnus, Reading /proc/self/status is a little more heavy weight than checking > an environment variable. Do we really have to do this every time we call > dlmmap(), or can we do it once and cache the result? >>Thanks, >>AG > > The selinux check read /proc/mount for selinux stuff and even check if it have > the selinux dir. I think the selinux check have the same heavy weight as the > pax check and then the selinux need to make a temp file in some dir the app > have acces to make file in. For me is fine to read /proc/... on every time. > > /Magnus Thanks Magnus, I am applying your patch. AG