Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5426693pxb; Mon, 28 Mar 2022 12:19:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeYoLDqkNG1q2M0OsuOWzd5oaf7d+9BQyl9iZ3Xv1c+Vy9cn7G06lvM3KnDsw+Bu9wJHit X-Received: by 2002:a17:906:c111:b0:6db:cf0e:3146 with SMTP id do17-20020a170906c11100b006dbcf0e3146mr30053021ejc.280.1648495169602; Mon, 28 Mar 2022 12:19:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648495169; cv=none; d=google.com; s=arc-20160816; b=DTbbbjr/HUgtNk/6hbShRe2/Od7AKMgkJcb0afJZiTyVRmUdbX88HG5vA0Fue0GrZo oHC3g7eadztPJ01HvAdCXj4Pd+EGry8SEpNIOeyI8dmSWlrvsJpgLQ1yOD7QnB+X9qHk we3Jla8t4P8OMrmXYYTqmVhDFlZZK6ZAnD9j0+UC+5oq8FnKYz3cFBITV72GRyWvb7rV PhwDMtGEfphtHxyCQO91DAcE21iTTB6MKQPjM+djWe58lDlpE1eI3xNqEsSar9O9AKjo 4T8kIjfjf3SWA8VdJsS8tSqasuDGpSzAB2tV5KZXOI+zOz+j40SCYyQxtT1xcSb5brNG KbkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=5YF472UBEt2/+0TMmuAJ6M5CUqS69OAWnmeSQdznm4c=; b=XUm712WXE0Nan/rFIzh0Kg1BW11wO+BHBXLuOeKLepiOu2uzZ6h/mqK7iT6PLh7u6T wpPl/v9mSS12yAnJBOu+M0p0t1AMQhE9osK8MZhW7iqLnCo1Cpjwrwr0UuH/JdjdV986 4FQw+IJixBXJuaMAjIriF55sokJ+ZsdmMKqlOCxJr4SC8rQRKUugGqMyX4JNvg7zr/lw o6RrFY4BcTs2P8IPDqz0QLfo7XEX12EyBA3Wm4sIu+Hl9r/jqI7xIC131FFWa6GG2MjQ pwTo/cGFipAcuaNLaqh0/8NHZdndmUPkKqNSgH2D8lzye59D3OMVx75LrQI13a+sRD4+ +oQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Otbv6BZ5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k8-20020a50cb88000000b00419339928a4si14866003edi.584.2022.03.28.12.19.02; Mon, 28 Mar 2022 12:19:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Otbv6BZ5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237966AbiC1ECc (ORCPT + 99 others); Mon, 28 Mar 2022 00:02:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237970AbiC1ECI (ORCPT ); Mon, 28 Mar 2022 00:02:08 -0400 Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA37546641 for ; Sun, 27 Mar 2022 21:00:17 -0700 (PDT) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-2e5bcae3665so108169427b3.16 for ; Sun, 27 Mar 2022 21:00:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=5YF472UBEt2/+0TMmuAJ6M5CUqS69OAWnmeSQdznm4c=; b=Otbv6BZ5qGCcevBDAZX6xN8e9nfLahzy72aZz2C8ZnF7O0aumEiNkqQhZur1HY8/Cs iuIInxQV8DulTLV4peuIv24Kjo659uXmfHBO0sgraK+JrrU+As1YNNyP5VsmX8xvpfHj +DBCyPIEf7Myz5u2eebcccJK1GhatoYgWRAn9u6/hx3eLzgc6yDZpT0DbGZeqrIsxVy0 MWOGzNy1ZJc3Y1AzaPB/KCHt1qRh6XZ3/aS55BAmF+xfDQhiQ6MSAI6I/s870uy88oLD B8qFjM3s8ixGcMg26tII9h+aMEs3oAt5IN56f2ExKguMu+wacxiRqK48y/Tgb9VayNGA E72w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=5YF472UBEt2/+0TMmuAJ6M5CUqS69OAWnmeSQdznm4c=; b=yHq9DY+fi3ZS+6RHy82omiik6knn4fOP81bLBQ6HDS57Si0+Sxcpbpkc2q9dM0WoqG v7lKBJpDQyIctA7ZuHpDZ3D33ehQJQixFIWJ5gxbOC6Tw+UkOGP3bO8A7h7Q5QlHvBcD VJwOPulf/dQBVkSkfxL5f/5JhzzHpvlqyAYDIYlMAWHG89fqSV1r8TlCynijk3QfIAW6 ZzPDsI9XB7righsVVx4mVXB+uYSnLNBD3YAZLCQfibsGbPcz6TlZMJDtlDIrw2V1e7Mx ifvDvXHxEOyWStN7yaKCwnwnaRzeB/4jQz5xXWiak5AziLLztjtydAa+jTyEK9P7PQq5 Bg3g== X-Gm-Message-State: AOAM5311Jl50epRSZzlNCdEKNP1g2ACcnZxSVpuFdRgrNg3Ks18dOMUl gVnF5CKoQA/8MR8k+b59qyuwBWaFjhdzFgo= X-Received: from tj2.c.googlers.com ([fda3:e722:ac3:cc00:20:ed76:c0a8:187]) (user=tjmercier job=sendgmr) by 2002:a81:f0c:0:b0:2d6:83ab:7605 with SMTP id 12-20020a810f0c000000b002d683ab7605mr23417374ywp.150.1648440016871; Sun, 27 Mar 2022 21:00:16 -0700 (PDT) Date: Mon, 28 Mar 2022 03:59:46 +0000 In-Reply-To: <20220328035951.1817417-1-tjmercier@google.com> Message-Id: <20220328035951.1817417-8-tjmercier@google.com> Mime-Version: 1.0 References: <20220328035951.1817417-1-tjmercier@google.com> X-Mailer: git-send-email 2.35.1.1021.g381101b075-goog Subject: [RFC v4 7/8] binder: use __kernel_pid_t and __kernel_uid_t for userspace From: "T.J. Mercier" To: tjmercier@google.com, David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Jonathan Corbet , Greg Kroah-Hartman , "=?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?=" , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Hridya Valsaraju , Suren Baghdasaryan , Sumit Semwal , "=?UTF-8?q?Christian=20K=C3=B6nig?=" , Benjamin Gaignard , Liam Mark , Laura Abbott , Brian Starkey , John Stultz , Tejun Heo , Zefan Li , Johannes Weiner , Shuah Khan Cc: kaleshsingh@google.com, Kenny.Ho@amd.com, mkoutny@suse.com, skhan@linuxfoundation.org, dri-devel@lists.freedesktop.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org, cgroups@vger.kernel.org, linux-kselftest@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The kernel interface should use types that the kernel defines instead of pid_t and uid_t, whose definiton is owned by libc. This fixes the header so that it can be included without first including sys/types.h. Signed-off-by: T.J. Mercier --- include/uapi/linux/android/binder.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/android/binder.h b/include/uapi/linux/android/binder.h index 169fd5069a1a..aa28454dbca3 100644 --- a/include/uapi/linux/android/binder.h +++ b/include/uapi/linux/android/binder.h @@ -289,8 +289,8 @@ struct binder_transaction_data { /* General information about the transaction. */ __u32 flags; - pid_t sender_pid; - uid_t sender_euid; + __kernel_pid_t sender_pid; + __kernel_uid_t sender_euid; binder_size_t data_size; /* number of bytes of data */ binder_size_t offsets_size; /* number of bytes of offsets */ -- 2.35.1.1021.g381101b075-goog