From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753611Ab2DSDo7 (ORCPT ); Wed, 18 Apr 2012 23:44:59 -0400 Received: from tundra.namei.org ([65.99.196.166]:44839 "EHLO tundra.namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751388Ab2DSDo6 (ORCPT ); Wed, 18 Apr 2012 23:44:58 -0400 Date: Thu, 19 Apr 2012 13:44:44 +1000 (EST) From: James Morris To: Will Drewry cc: james@namei.org, paul.gortmaker@windriver.com, eparis@redhat.com, linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, keescook@chromium.org, linux-security-module@vger.kernel.org Subject: Re: [PATCH] samples/seccomp: fix dependencies on arch macros In-Reply-To: <1334796625-26830-1-git-send-email-wad@chromium.org> Message-ID: References: <1334796625-26830-1-git-send-email-wad@chromium.org> User-Agent: Alpine 2.02 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 18 Apr 2012, Will Drewry wrote: > This change fixes the compilation error triggered here for > i386 allmodconfig in linux-next: > http://kisskb.ellerman.id.au/kisskb/buildresult/6123842/ > > Logic attempting to predict the host architecture has been > removed from the Makefile. Instead, the bpf-direct sample > should now compile on any architecture, but if the architecture > is not supported, it will compile a minimal main() function. > > This change also ensures the samples are not compiled when > there is no seccomp filter support. > > (Note, I wasn't able to reproduce the error locally, but > the existing approach was clearly flawed. This tweak > should resolve your issue and avoid other future weirdness.) > > Reported-by: Paul Gortmaker > Suggested-by: Kees Cook > Signed-off-by: Will Drewry Applied to git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git next -- James Morris