From patchwork Thu Jan 28 12:59:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 8151341 Return-Path: X-Original-To: patchwork-selinux@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4C84C9F440 for ; Thu, 28 Jan 2016 15:09:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AEF3B20303 for ; Thu, 28 Jan 2016 15:09:22 +0000 (UTC) Received: from emvm-gh1-uea08.nsa.gov (emvm-gh1-uea08.nsa.gov [63.239.67.9]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BE44B2024F for ; Thu, 28 Jan 2016 15:09:21 +0000 (UTC) X-TM-IMSS-Message-ID: <5fc77ec70010965b@nsa.gov> Received: from tarius.tycho.ncsc.mil ([144.51.242.1]) by nsa.gov ([10.208.42.193]) with ESMTP (TREND IMSS SMTP Service 7.1) id 5fc77ec70010965b ; Thu, 28 Jan 2016 10:06:19 -0500 Received: from prometheus.infosec.tycho.ncsc.mil (prometheus [192.168.25.40]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id u0SF5Ef5003076; Thu, 28 Jan 2016 10:05:38 -0500 Received: from tarius.tycho.ncsc.mil (tarius.infosec.tycho.ncsc.mil [144.51.242.1]) by prometheus.infosec.tycho.ncsc.mil (8.15.2/8.15.2) with ESMTP id u0SCxalr141356 for ; Thu, 28 Jan 2016 07:59:36 -0500 Received: from goalie.tycho.ncsc.mil (goalie [144.51.242.250]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id u0SCxVHm024355 for ; Thu, 28 Jan 2016 07:59:36 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A1CeBABQEKpW/yNjr8ZeGQEBAQEPAQEBAYRJiFevL4QDE4V8ghEBAQEBAQGGMxmBDTEBEogbvmyORIRsBZZujUuOcY49YoE2AYI1Oi4Bh0OBOQEBAQ X-IPAS-Result: A1CeBABQEKpW/yNjr8ZeGQEBAQEPAQEBAYRJiFevL4QDE4V8ghEBAQEBAQGGMxmBDTEBEogbvmyORIRsBZZujUuOcY49YoE2AYI1Oi4Bh0OBOQEBAQ X-IronPort-AV: E=Sophos;i="5.22,358,1449550800"; d="scan'208";a="5144470" Received: from emvm-gh1-uea08.nsa.gov ([10.208.42.193]) by goalie.tycho.ncsc.mil with ESMTP; 28 Jan 2016 07:59:33 -0500 X-TM-IMSS-Message-ID: <5f5283e30010671e@nsa.gov> Received: from fmsmga002-icc.fm.intel.com (fmsmga002-icc.fm.intel.com [198.175.99.35]) by nsa.gov ([10.208.42.193]) with ESMTP (TREND IMSS SMTP Service 7.1) id 5f5283e30010671e ; Thu, 28 Jan 2016 07:58:33 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,358,1449561600"; d="scan'208";a="902981428" Received: from black.fi.intel.com ([10.237.72.93]) by fmsmga002.fm.intel.com with ESMTP; 28 Jan 2016 04:59:20 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 144D8E3; Thu, 28 Jan 2016 14:59:17 +0200 (EET) From: Andy Shevchenko To: selinux@tycho.nsa.gov, linux-security-module@vger.kernel.org, James Morris , Paul Moore Subject: [PATCH v3 1/1] selinux: use absolute path to include directory Date: Thu, 28 Jan 2016 14:59:16 +0200 Message-Id: <1453985956-133448-1-git-send-email-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.7.0.rc3 X-TM-AS-MML: disable X-Mailman-Approved-At: Thu, 28 Jan 2016 10:05:13 -0500 X-BeenThere: selinux@tycho.nsa.gov X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: Cc: Andy Shevchenko MIME-Version: 1.0 Errors-To: selinux-bounces@tycho.nsa.gov Sender: "Selinux" X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Compiler warns us a lot that it can't find include folder because it's provided in relative form. CC security/selinux/netlabel.o cc1: warning: security/selinux/include: No such file or directory [-Wmissing-include-dirs] cc1: warning: security/selinux/include: No such file or directory [-Wmissing-include-dirs] cc1: warning: security/selinux/include: No such file or directory [-Wmissing-include-dirs] cc1: warning: security/selinux/include: No such file or directory [-Wmissing-include-dirs] Add $(srctree) prefix to the path. Signed-off-by: Andy Shevchenko --- security/selinux/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/selinux/Makefile b/security/selinux/Makefile index ad5cd76..3411c33 100644 --- a/security/selinux/Makefile +++ b/security/selinux/Makefile @@ -13,7 +13,7 @@ selinux-$(CONFIG_SECURITY_NETWORK_XFRM) += xfrm.o selinux-$(CONFIG_NETLABEL) += netlabel.o -ccflags-y := -Isecurity/selinux -Isecurity/selinux/include +ccflags-y := -I$(srctree)/security/selinux -I$(srctree)/security/selinux/include $(addprefix $(obj)/,$(selinux-y)): $(obj)/flask.h