Received: by 10.213.65.68 with SMTP id h4csp2158775imn; Sun, 8 Apr 2018 21:14:14 -0700 (PDT) X-Google-Smtp-Source: AIpwx48DdIo2r+JkrVRcAVQzncKrf/qADlchdR7veOJTe5LFIZ3ia+V9jt+tgVT81MjOC2rbbNK3 X-Received: by 10.99.96.141 with SMTP id u135mr24269575pgb.49.1523247254559; Sun, 08 Apr 2018 21:14:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523247254; cv=none; d=google.com; s=arc-20160816; b=LJE1EyxnOYovXnh87iP4MvhTWYsARibrfWEeD83ZGT3h3ieqaSLycJa5Bu17BKZtBP VV8CSSEtUR8OGIJkHzGowJrZ5yjjgGWoI/i+ASTbXDC+N5/toow8qo8LWWGg60m8DHJp /ZYFNa2s5U1r3C0GyorBS0fk7raVxvXmCr3PGbZOok6qZT3W4pUyJsjaPzz26nwAmloa wIJWtT7AUE+k7v1xFwE4BHV5Rzn1wuT47KrrYMzC+WY1Vw8LPQwyBjGRMfZ5UXDLS2SZ 2E6sf/hc9IZTI3b5TJCYtjwyG5K0X1pWOrUrDvbQe1IJqlHGxIpxXDTrrbCupNwre7O6 qMVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=3O4dNRB6BQRaZjhFlK0bdKyYn4v3g0sfGiuhYW5h/So=; b=iReZuprHsp6FlDXyd0pFYUL/82sdzw2GWRiQuAXTYB4FCLc7TFUFsYGYDKmcvGJ3qR CGt+XinNV/h0RQWcIZnXYQyQyOwPtwfYGk3wgqCZZDvIjSwtGqj+rpR/uwB+nqqpNCjd sZIbYgrjUY08z/BT8pJG6z9zX7fdn4C8p2DnDTR5RGWhlBCh3Wva2CiF0AI0fU9C/q3E e+qSnvb2g7P4wqrfTuVHQJn2lQDB1UgbhPosQYbU18Bj7s2KUlJ6MxQKcRyBt/7uDEwg 9C12//uE8E05pa8GmulK8myONbd2REcC3OW3+bOTnKnjQCQ8EbCOUkdBalUsXD52A7AX wJjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=fBfbB/K0; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a33-v6si13849302pld.125.2018.04.08.21.13.37; Sun, 08 Apr 2018 21:14:14 -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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=fBfbB/K0; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754352AbeDIEIi (ORCPT + 99 others); Mon, 9 Apr 2018 00:08:38 -0400 Received: from mail-co1nam03on0128.outbound.protection.outlook.com ([104.47.40.128]:49080 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753065AbeDIARI (ORCPT ); Sun, 8 Apr 2018 20:17:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=3O4dNRB6BQRaZjhFlK0bdKyYn4v3g0sfGiuhYW5h/So=; b=fBfbB/K0B0bIZuZWeJbm1tey1BCZjArwtUUpsSZi5L7oL3VmcBi3YJOhF0sPuGuRCdx0a15rbM0cWTYYrwSHSJAvW6beX09G6NIw6CGNNPAU67hEUU4bTM3p9DqkEtwTKFbBZ1Fqy7ckWg2034mgUSoLCjL7K+q0cqH0zO9C5Vk= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1127.namprd21.prod.outlook.com (52.132.132.167) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:17:04 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:17:04 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Jesper Dangaard Brouer , Daniel Borkmann , Sasha Levin Subject: [PATCH AUTOSEL for 4.15 023/189] libbpf: Makefile set specified permission mode Thread-Topic: [PATCH AUTOSEL for 4.15 023/189] libbpf: Makefile set specified permission mode Thread-Index: AQHTz5gWxTIyBx6D60iT/JVlILDR9w== Date: Mon, 9 Apr 2018 00:17:03 +0000 Message-ID: <20180409001637.162453-23-alexander.levin@microsoft.com> References: <20180409001637.162453-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001637.162453-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1127;7:kzKZe6r/mjEiMM5g0xUzAVdLZut/trZ1oRkTNoiGvxQmXSX7dmtAnwGT4xTK1v6bWYJAcaV0ZxTrHhDkJ5pGgWOtkb2U6qkId/g+pC+8ercvVyDfieTb1sd3NO+IMjdxCXRYbIp29l9W5b9pdxPMOIrx+7za8aM/u/r3OBriPLQVVgIy2THApRSBKoaBDnxa2pDSTq94DcePdq6c5Wb2eDW7EPxnBWyQtz+aXV3Z3I66ft7qdaibALoE8YA73cuW;20:V47xmsJw2SGpHgpMLTTEfk4Ny+2Yonw45fTAdQKLb7K9Jssbw/L1yWRvXnfHOiy5pH34SkirvouWKtaqtpRbKtNI91mNBhwWLW+phwSn2io0jFlvEM54nC60t+cyLlp3GVa+HkgAmRTWCAkQ78YcC5fGNwqhTOjlrscMMCb4ZnI= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 41e327dd-da55-48ca-0743-08d59daf38cd x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1127; x-ms-traffictypediagnostic: DM5PR2101MB1127: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(3231221)(944501327)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB1127;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1127; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(39380400002)(39860400002)(376002)(346002)(366004)(189003)(199004)(105586002)(186003)(66066001)(6486002)(54906003)(7736002)(26005)(86362001)(316002)(305945005)(110136005)(478600001)(3280700002)(86612001)(10290500003)(25786009)(5250100002)(2616005)(99286004)(22452003)(5660300001)(3660700001)(2900100001)(81166006)(3846002)(2906002)(106356001)(6506007)(59450400001)(107886003)(486006)(8676002)(81156014)(14454004)(10090500001)(68736007)(4326008)(6116002)(1076002)(72206003)(102836004)(97736004)(11346002)(8936002)(476003)(2501003)(6436002)(6512007)(446003)(76176011)(36756003)(53936002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1127;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: p+ds7fkblekl7o3N1RhzuzPlFbTfcnP62EtQREgDqDozg/+y1JwxWVDmWYYHBuMje3pYq7JoN+GNSD3nJyvud+wqy8SgFe3pr1/8FCjTY7VGHPMjm6C071/rCrlHzYFd3NrYd4hXlVeONcnRjzJJ1LyMAothvvJtwMCagT/c+N+/b7USL9nj6ZJFJ6HzryH4iZ+fks+Jgc9Xz+JUqPg2LWsH6KmhRhVJAW6s6LjYHRIJ+l6RAFBn1tBSUtsQ8woHTs/g2VJwzD1xWVRMv7P/v5JQCOWJHQIxL8bkVfvl8Nx8uqmqBJKpTojYy0dgYKZGuvrFGyGiQd/R59f8Etnywt7gOI1xEr4vdiAmTASNsCdkhJqUI3hUAQ5Ni3GQ7xoKygYAME5YJ5CFyJBsqgFjkAhUEdoMDcWTHw/0+k4e6M8= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 41e327dd-da55-48ca-0743-08d59daf38cd X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:17:03.9029 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1127 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- tools/lib/bpf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/bpf/Makefile b/tools/lib/bpf/Makefile index 4555304dc18e..f02448e86d38 100644 --- 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 =20 install_lib: all_cmd --=20 2.15.1