From patchwork Thu Sep 13 01:05:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 146589 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp17610ljw; Wed, 12 Sep 2018 18:05:44 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZvr0R1h5dXbryeba+KuQh+11yMn1zg+0xSbJtguAo/pOawvsT8rXHnH+/BK7UqvzUSWBMi X-Received: by 2002:a62:990f:: with SMTP id d15-v6mr4974664pfe.162.1536800744376; Wed, 12 Sep 2018 18:05:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536800744; cv=none; d=google.com; s=arc-20160816; b=pC9wzn1c4v0htgG73qiuRS6aAvuuOuYl3X/g4ishy3KM5sW55mYoVSI1q+kYUUqEyH 5+dMls3JKG24OBzl+ITgsy0zBgUs5gLCQPjlqSE16bR53xwsOsv/cQ+EzmyzreBifp8w V3CiBk/XCTbT00paJxrUmHH+xW9DP3WKC+076ykEFVy5A+eDUN6cKunrCZaWR3DR8lqu v+9b0SV4xJKhG/JjKFzzaQh0cIieTz+HdHaUFO8gg+iAvoF3aySR4jAFu20nwwvsbcFi vWEPiHmF/ClHeAyKYUZcAvplCiWqqZe+JCSyoBBDpLXIDeOfO89DzRtJ82nLoiQmkJjd VCxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=47eS7945VE8pckpINA3L45wOpZOftgE65fxEf4Z7ewY=; b=j1E7RfXgVsLCOIZshetQtpjK1NcfKMrTphtreAAfTkfh60IPkokptTX081zEBKrqJ7 ffq/wBKAevjmPw/K59g2V9dJoQN7NFJge4Yzf8S3OzmD2i+BMLIZaleR880cB/yztY0m HoCaMMenl0BrdZH5pF6n5ReOki1cNDBoTIIhmhh98W9tD0CYtXMYhKci4da6FyE6cdM9 cpmzWck1riZQzPrM7CtmmBDTV4hemBYcShh/wP/wTz7dAGr1RFD0j7Bzp2KxUPauUL7e udFCBsLQzJs2M28HRi1oot1TlFwcGGkLfujeaZXQiScSRTbV89T6CVaIwQXSzraB10Xc eDKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="p/kCf3i9"; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id i19-v6si2728052pgj.140.2018.09.12.18.05.44; Wed, 12 Sep 2018 18:05:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="p/kCf3i9"; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 001D679861; Thu, 13 Sep 2018 01:05:40 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) by mail.openembedded.org (Postfix) with ESMTP id 426B878F5C for ; Thu, 13 Sep 2018 01:05:40 +0000 (UTC) Received: by mail-pg1-f178.google.com with SMTP id 7-v6so1916912pgf.2 for ; Wed, 12 Sep 2018 18:05:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=h6rO5VtblqGdVPSCulbsqQKWzTJyoD/P7QVbPrB1gQg=; b=p/kCf3i9WWF9lgTBKyRk3bMYMajqrBWJXoFDPeOkvPEpvtwqzb4D6Pb1xNh+yNtCMT gzsA2QB4+F1LtsVNml/2EKGszMGWVtEhiRYXPv3BD98NsPceIxpbv90ic8TmaS8qgTZt GSA24nSYXaVr63PMaTagEP48tMmUVzx2R3mKrT7pi3MOhIGz+WsWCJfTe9lG3x/eTuWv a2DZc6wQDbPOUlmNgw6BQlR69VMyQ7AF7x5aoBjpGAr/ERae3fNQ74x2Jy/RLLTyi3Xd M0BNsyQm0z3hZftOSuSPkoCQSNlw7i5B5lv1e6UOI2Z6M30+Ex8fzPUVSw04FMT3EWi6 pExg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=h6rO5VtblqGdVPSCulbsqQKWzTJyoD/P7QVbPrB1gQg=; b=sOgJavPSLMyRTP/aQFuEKxSK1qWNOBdEkidCo5b9VMyh6fJPAC9McW0PI5dGW8QQou XQ+5siIxv78MusXi/oooBVNKh6dvanIPHr/GUL+arkQpD4dJGLVKCH7WO5pusOVhMRAk ur+uYYUKFqSXjzsTKztnf8klBbw01ofAz7YkjxZM/kELd+X01Va/ghac9yvaTAfm76Jf Snj/lJjEfSlGq5/eUDHD62tS9oouo636urzNx9m/9/UFoLAKhHhwkJ1RF4xgPwpbuPY+ 5AVmGdqoI+5oeAFW7XlrQncoFRrbXaG4c9IQX6dcS4BPuZIZUaNZupyEPDRz54Zy85YQ B3bA== X-Gm-Message-State: APzg51DuxGKCL9p8FzfPlKMaEygDRTHpzvVDt+z2ljtWftGRkdEWsfp8 78ZJz7Net+ZFKm+2FrR2KpwvYcZD X-Received: by 2002:a62:c008:: with SMTP id x8-v6mr4918983pff.149.1536800740644; Wed, 12 Sep 2018 18:05:40 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::2887]) by smtp.gmail.com with ESMTPSA id f13-v6sm2664935pgs.92.2018.09.12.18.05.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Sep 2018 18:05:40 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Wed, 12 Sep 2018 18:05:30 -0700 Message-Id: <20180913010531.41241-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 Cc: Bruce Ashfield Subject: [OE-core] [PATCH 1/2] linux-libc-headers: Include linux/stddef.h in linux/swab.h X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org This helps compiling bpf tests using non-glibc C libraries e.g. musl Signed-off-by: Khem Raj Cc: Bruce Ashfield --- ...linux-stddef.h-in-swab.h-uapi-header.patch | 44 +++++++++++++++++++ .../linux-libc-headers_4.18.bb | 1 + 2 files changed, 45 insertions(+) create mode 100644 meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-include-linux-stddef.h-in-swab.h-uapi-header.patch -- 2.19.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core Acked-by: Bruce Ashfield diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-include-linux-stddef.h-in-swab.h-uapi-header.patch b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-include-linux-stddef.h-in-swab.h-uapi-header.patch new file mode 100644 index 0000000000..9d17daa70f --- /dev/null +++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-include-linux-stddef.h-in-swab.h-uapi-header.patch @@ -0,0 +1,44 @@ +From 9708dc74d9f49488d669e070982f6224a888d61a Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Wed, 12 Sep 2018 17:08:58 -0700 +Subject: [PATCH] include linux/stddef.h in swab.h uapi header + +swab.h uses __always_inline without including the header where it is +defined, this is exposed by musl based distributions where this macro is +not defined by system C library headers unlike glibc where it is defined +in sys/cdefs.h and that header gets pulled in indirectly via + +features.h -> sys/cdefs.h + +and features.h gets pulled in a lot of headers. Therefore it may work in +cases where features.h is includes but not otherwise. + +Adding linux/stddef.h here ensures that __always_inline is always +defined independent of which C library is used in userspace + +Upstream-Status: Submitted [https://lkml.org/lkml/2018/9/13/78] + +Signed-off-by: Khem Raj +Cc: Philippe Ombredanne +Cc: Kate Stewart +Cc: Greg Kroah-Hartman +Cc: Thomas Gleixner +--- + include/uapi/linux/swab.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/include/uapi/linux/swab.h b/include/uapi/linux/swab.h +index 23cd84868cc3..acddbe50a20d 100644 +--- a/include/uapi/linux/swab.h ++++ b/include/uapi/linux/swab.h +@@ -3,6 +3,7 @@ + #define _UAPI_LINUX_SWAB_H + + #include ++#include + #include + #include + +-- +2.19.0 + diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_4.18.bb b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_4.18.bb index e38872bb91..eb7bee72b0 100644 --- a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_4.18.bb +++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_4.18.bb @@ -6,6 +6,7 @@ SRC_URI_append_libc-musl = "\ file://0003-remove-inclusion-of-sysinfo.h-in-kernel.h.patch \ file://0001-libc-compat.h-musl-_does_-define-IFF_LOWER_UP-DORMAN.patch \ file://0001-if_ether-move-muslc-ethhdr-protection-to-uapi-file.patch \ + file://0001-include-linux-stddef.h-in-swab.h-uapi-header.patch \ " SRC_URI[md5sum] = "bee5fe53ee1c3142b8f0c12c0d3348f9" From patchwork Thu Sep 13 01:05:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 146590 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp17755ljw; Wed, 12 Sep 2018 18:05:54 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaatLm/Mqtz0MZyvmUhKGmwcpHpJNIfs/5Tr6dMPaNqPw37EMWhE5U4YLRZPL4NDU9wZaV9 X-Received: by 2002:a17:902:6e01:: with SMTP id u1-v6mr4868052plk.13.1536800754297; Wed, 12 Sep 2018 18:05:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536800754; cv=none; d=google.com; s=arc-20160816; b=V9puqmex6Dr5bPqFa8MxngxdfBadH9BMh2bUVromrGqF/DwOmNdo2OOWUBg5lJGcsv hrXrhVBnYi+U8gcSnhPmNq8VS9OSdqFIsBJjTQGhyZG9uOlky5qPCqVQH4iYYnl9HIcD f8qCRxQHFDGS7s92yyly23TRndB8oG09qqkOEgqcva29eEXXonUisG3LFtC060tifvvB 9omLdPHFyTP2kUdsG58rYyv7ii0WrhK++sUPvfb+y+e/umXrEijeU/7fpjIR4SllGems 3uJ1RIT1Lw8Bn853yEdf4TuralppIz0+uTBuUbMUWYKSN7L9GuzwaJlz5WVXnYQkDfdD JNWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=8OsaV75nOtAkX+3z3Wfl6xThiInOMnhRAz5ipW16Jzw=; b=qYTRIm3ujwJ2Rut89htMPGwuocy8LMzv671aKP9UwTL3jdIZr75eCtdY3fba4ls9qm hN10tgSU73Zh0IQBgA1ouwUbaG0FNVAL+IbWDDxf2xTbRi+Qi2d+f5SiahtsNyQC1tIs TFbuu5ftJjtzuQvoIqjKftkYfRVFGJDByxsvMChgv9LkeUZb5Vhh4NsussCmExTntxBZ EzQWyjqBlTL5ma6m0d/0lgXCXKvsUZyz79+cTRbzN/oe9tnELa3XAnxg+og/9Mea8GCa RjSxpXGICkDXlvOSwL/ufW93euS6Tg50g6KkQ2FCp85ffBQhyBX0MSPYXu/mkxxrtyZn h/8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=RtcynUDi; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id ca2-v6si2855056plb.305.2018.09.12.18.05.54; Wed, 12 Sep 2018 18:05:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=RtcynUDi; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 55B5179863; Thu, 13 Sep 2018 01:05:51 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) by mail.openembedded.org (Postfix) with ESMTP id DAACD78F5C for ; Thu, 13 Sep 2018 01:05:40 +0000 (UTC) Received: by mail-pg1-f171.google.com with SMTP id v66-v6so1897923pgb.10 for ; Wed, 12 Sep 2018 18:05:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WWlMicR3bkzpNXoQglNO+rRtIzQQ/dSTFxp0D/0Kgpc=; b=RtcynUDifa8hIzbTBwxCjPUxqn2c42FPAD5wBc2T48oeFhmhTrGBf6aG9Ta0MPUXck aym2rZK5SuTWPlRFZFbmzI6bxGPpNveTxCp/j0rffwEoB2PLPpDcNRDsdRyNIz8lyhZN 0omkbhpKeqxLfTM/GeuaOMOvWg4STt0zwBBkT/cE6oxVGNMvcgpUsj+CO3dro2v3Rc0s zvCfy1osqRIf/Y7Ld0MIWnT0hIXjmzJDCPSiiBTRWx60Yftd6PEMpxiULIOIP6ERJbS0 wjePUF6FIlG8AfaFKNJtw1B0JeevBVOEamZ3Bi1d95j7z59OMYCiL8LshsOkH3OaYwYM iVbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=WWlMicR3bkzpNXoQglNO+rRtIzQQ/dSTFxp0D/0Kgpc=; b=W0tnEZRBHHeuv1XRGNFym1j3IOnw1hCLQrMjkgPIsOOsyz3D8sh5bAzxNTRF+9J4EI xeTnvgvqkgZ3fvNslqEzNva8oFH2VkIqgJrYeUHUmiIXcW2sL0da3D0lSAp9SDh0P6x9 xdqYgZVR5AlGyji79UNGOZkuMFjh4viJQ1mGRPgDwaejLkx8agzN4tNvztJDIOqaqaj9 7jZEcIMcqkT/UAWdYDUFTRaJyDChTUFuVWnt8LJJ2Fi/9BYA/DqBHlIUtCWW5PFVDQio 5f6Fl4v8fgmtl6SQWWv3QGzpPiil9d3F/D9vsMFnrD5kVFRi3SHk0qa1ALbamMT5bzae wUVA== X-Gm-Message-State: APzg51BwJrvnvBn9EPE4e+xbsrTLKHkwNPCwrlqNiHAd6WAtwjfrVOvV PKUEEFbcdzfLQ2z7pUgHIPcJU3XM X-Received: by 2002:a62:8d16:: with SMTP id z22-v6mr4958105pfd.181.1536800741456; Wed, 12 Sep 2018 18:05:41 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::2887]) by smtp.gmail.com with ESMTPSA id f13-v6sm2664935pgs.92.2018.09.12.18.05.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Sep 2018 18:05:40 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Wed, 12 Sep 2018 18:05:31 -0700 Message-Id: <20180913010531.41241-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180913010531.41241-1-raj.khem@gmail.com> References: <20180913010531.41241-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH 2/2] musl: Wire-up name_to_handle_at and name_to_handle_at syscalls X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- ...e_to_handle_at-and-name_to_handle_at.patch | 76 +++++++++++++++++++ meta/recipes-core/musl/musl_git.bb | 1 + 2 files changed, 77 insertions(+) create mode 100644 meta/recipes-core/musl/musl/0001-wireup-linux-name_to_handle_at-and-name_to_handle_at.patch -- 2.19.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-core/musl/musl/0001-wireup-linux-name_to_handle_at-and-name_to_handle_at.patch b/meta/recipes-core/musl/musl/0001-wireup-linux-name_to_handle_at-and-name_to_handle_at.patch new file mode 100644 index 0000000000..4738e1efd8 --- /dev/null +++ b/meta/recipes-core/musl/musl/0001-wireup-linux-name_to_handle_at-and-name_to_handle_at.patch @@ -0,0 +1,76 @@ +From ef3ef607693a9513d5ab94a1de67dd2f1f97d8ad Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Wed, 12 Sep 2018 16:08:40 -0700 +Subject: [PATCH] wireup linux/name_to_handle_at and name_to_handle_at syscalls + +Upstream-Status: Submitted [https://www.openwall.com/lists/musl/2018/09/13/4] +Signed-off-by: Khem Raj +--- + include/fcntl.h | 7 +++++++ + src/linux/name_to_handle_at.c | 11 +++++++++++ + src/linux/open_by_handle_at.c | 10 ++++++++++ + 3 files changed, 28 insertions(+) + create mode 100644 src/linux/name_to_handle_at.c + create mode 100644 src/linux/open_by_handle_at.c + +diff --git a/include/fcntl.h b/include/fcntl.h +index 6d8edcd1..5c3defcb 100644 +--- a/include/fcntl.h ++++ b/include/fcntl.h +@@ -155,6 +155,11 @@ int lockf(int, int, off_t); + #define F_OWNER_PID 1 + #define F_OWNER_PGRP 2 + #define F_OWNER_GID 2 ++struct file_handle { ++ unsigned int handle_bytes; ++ int handle_type; ++ unsigned char f_handle[]; ++}; + struct f_owner_ex { + int type; + pid_t pid; +@@ -170,6 +175,8 @@ struct f_owner_ex { + #define SPLICE_F_GIFT 8 + int fallocate(int, int, off_t, off_t); + #define fallocate64 fallocate ++int name_to_handle_at(int, const char *, struct file_handle *, int *, int); ++int open_by_handle_at(int, struct file_handle *, int); + ssize_t readahead(int, off_t, size_t); + int sync_file_range(int, off_t, off_t, unsigned); + ssize_t vmsplice(int, const struct iovec *, size_t, unsigned); +diff --git a/src/linux/name_to_handle_at.c b/src/linux/name_to_handle_at.c +new file mode 100644 +index 00000000..bb6f8007 +--- /dev/null ++++ b/src/linux/name_to_handle_at.c +@@ -0,0 +1,11 @@ ++#define _GNU_SOURCE ++#include ++#include "syscall.h" ++ ++int name_to_handle_at(int dirfd, const char *pathname, ++ struct file_handle *handle, ++ int *mount_id, int flags) ++{ ++ return syscall(SYS_name_to_handle_at, dirfd, ++ pathname, handle, mount_id, flags); ++} +diff --git a/src/linux/open_by_handle_at.c b/src/linux/open_by_handle_at.c +new file mode 100644 +index 00000000..9bc93f14 +--- /dev/null ++++ b/src/linux/open_by_handle_at.c +@@ -0,0 +1,10 @@ ++#define _GNU_SOURCE ++#include ++#include "syscall.h" ++ ++int open_by_handle_at(int mount_fd, struct file_handle *handle, ++ int flags) ++{ ++ return syscall(SYS_open_by_handle_at, mount_fd, ++ handle, flags); ++} +-- +2.19.0 + diff --git a/meta/recipes-core/musl/musl_git.bb b/meta/recipes-core/musl/musl_git.bb index de1cfd0058..f6edf7de61 100644 --- a/meta/recipes-core/musl/musl_git.bb +++ b/meta/recipes-core/musl/musl_git.bb @@ -11,6 +11,7 @@ PV = "1.1.20+git${SRCPV}" SRC_URI = "git://git.musl-libc.org/musl \ file://0001-Make-dynamic-linker-a-relative-symlink-to-libc.patch \ + file://0001-wireup-linux-name_to_handle_at-and-name_to_handle_at.patch \ " S = "${WORKDIR}/git"