From: David Miller Date: Wed, 28 Apr 2010 20:02:16 +0000 Subject: Re: [PATCH] Disable execmem for sparc Message-Id: <20100428.130216.242154515.davem@davemloft.net> List-Id: References: <4BAA89B9.2030102@redhat.com> In-Reply-To: <4BAA89B9.2030102@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: sparclinux@vger.kernel.org From: Stephen Smalley Date: Wed, 28 Apr 2010 15:57:57 -0400 > To avoid maintaining per-arch ifdefs, it seems that we could just > directly use (VM_DATA_DEFAULT_FLAGS & VM_EXEC) as the basis for deciding > whether to enable or disable these checks. VM_DATA_DEFAULT_FLAGS isn't > constant on some architectures but instead depends on > current->personality, but we want this applied uniformly. So we'll just > use the initial task state to determine whether or not to enable these > checks. > > Signed-off-by: Stephen Smalley Acked-by: David S. Miller