Received: by 10.192.165.148 with SMTP id m20csp564483imm; Wed, 25 Apr 2018 04:20:59 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/rzT9jTiggKMZF8RJ7Yz1Go5pMV6Z1cLXzY4AJZmU3sUbzugsas2vbMUFP9282Gpd2ZKwA X-Received: by 10.98.196.133 with SMTP id h5mr23937615pfk.86.1524655259019; Wed, 25 Apr 2018 04:20:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524655258; cv=none; d=google.com; s=arc-20160816; b=Fsrg/mfAFV0aa9vr8y2I38DXuguM2MpPMVzvJsDt8aKHhaa2n8hEzpTRVd2whoGv2I q1et/uTN8UzrK2X0CoQoncGjl2uaW2LLHVEOhkoWbkjMbrSD3pj9gEwh/TQzF2t3d1pq kFobNGakpCCifqfDMWSwfTv0JN8b+Qtn0qkPyLKrF6MJb2K12O94P6UNXvFk2WjPMxpm zl+IoieBTT5YdSsP6SDUQIaDjPYJ7vjAkI0jmK6b5eqiXt+yzcTVWcbS55/CwFMtKXb+ E9zXslEfGgY3BqtUJk2ths9lIOH9Lo0dpZPYH8Utj9vn5Bv2SzaxPSZ5uV9Tp0wd2KrZ q9pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=n0E5GYW3C4h+QCJqyNMiRCZWWwtxcawqUCTyul444oE=; b=nGYFbSGbqkH6jy76RjHvV5Kh9hz9Z9BugjbSz7EBhqMnqjjBSxGDGY7WoIp42QrUx2 3GSokWaXeKrLUtISJH6ri+5Fa+jYrk63iCODuMpVfl2AGLUwWE1oTm0Hk1DffLsXBBrT lFvklqAj9j4craRW+uChL/yaDMFIpqCSTMjVVnGxg2eyOiFseW96wdWLe9AnwGjuUl0k iPkKCf+XLzAH+XvNWxDSjdq+B7TRpRsiU9WsbANSyzTlRKFVJIxFDK8Q0qU/RpXxwCgr yZRsCh9kztlQau9+hdOli2SuRzDWDspZwakD1R/Qo5vq8WlOxeiM9BarA+wlGHtXTpfG 6ttw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b6si15574185pfe.265.2018.04.25.04.20.44; Wed, 25 Apr 2018 04:20:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753729AbeDYKj7 (ORCPT + 99 others); Wed, 25 Apr 2018 06:39:59 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51960 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753700AbeDYKjv (ORCPT ); Wed, 25 Apr 2018 06:39:51 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 32EB536; Wed, 25 Apr 2018 10:39:50 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jesper Dangaard Brouer , Daniel Borkmann , Sasha Levin Subject: [PATCH 4.14 033/183] libbpf: Makefile set specified permission mode Date: Wed, 25 Apr 2018 12:34:13 +0200 Message-Id: <20180425103243.916550229@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180425103242.532713678@linuxfoundation.org> References: <20180425103242.532713678@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jesper Dangaard Brouer [ Upstream commit 7110d80d53f472956420cd05a6297f49b558b674 ] The third parameter to do_install was not used by $(INSTALL) command. Fix this by only setting the -m option when the third parameter is supplied. The use of a third parameter was introduced in commit eb54e522a000 ("bpf: install libbpf headers on 'make install'"). Without this change, the header files are install as executables files (755). Fixes: eb54e522a000 ("bpf: install libbpf headers on 'make install'") Signed-off-by: Jesper Dangaard Brouer Signed-off-by: Daniel Borkmann Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- tools/lib/bpf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/lib/bpf/Makefile +++ b/tools/lib/bpf/Makefile @@ -183,7 +183,7 @@ define do_install if [ ! -d '$(DESTDIR_SQ)$2' ]; then \ $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$2'; \ fi; \ - $(INSTALL) $1 '$(DESTDIR_SQ)$2' + $(INSTALL) $1 $(if $3,-m $3,) '$(DESTDIR_SQ)$2' endef install_lib: all_cmd