From patchwork Fri Dec 6 23:46:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Duskett X-Patchwork-Id: 1205313 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="VQriLow/"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47V8Q11pjrz9sPL for ; Sat, 7 Dec 2019 10:47:04 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id CB56688466; Fri, 6 Dec 2019 23:46:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0jZ78O2td0Kh; Fri, 6 Dec 2019 23:46:56 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 72E8188386; Fri, 6 Dec 2019 23:46:56 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 4F9351BF215 for ; Fri, 6 Dec 2019 23:46:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 4CDF020355 for ; Fri, 6 Dec 2019 23:46:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id F1kMUZ9s8B+i for ; Fri, 6 Dec 2019 23:46:53 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by silver.osuosl.org (Postfix) with ESMTPS id C126B203A8 for ; Fri, 6 Dec 2019 23:46:53 +0000 (UTC) Received: by mail-pl1-f177.google.com with SMTP id q16so3362031plr.10 for ; Fri, 06 Dec 2019 15:46:53 -0800 (PST) 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=mMlCtAs1jGbiOMaFBIb9RZRyZByeWETXNBadTFttEW4=; b=VQriLow/iyfOs4+cKJF6PMUzrCn1Sx22NkfZNhPObO5nYqsq4gdW+M1psqjI9HnhJo UtdFbRai3KjKvym7oe7X4iHneQ7wbF4tqZGAbs5zJOvylM3Xoc/KRopwQgflB6rMM/kF lh4krqm1A6NwSdTWfIOf0MhRCjubp7sdhsk8X+C7l/TsqIkW9M43wEUqj4vLV+w8HWkP 1mwiNK17nT5fDCTRqB9ioj+AaJ/wzz71CFLUAkKuDnwP783TAFBhesV7M4Z4FWJguNXu RgPI+KauJEdfYKn0os+52BFFOC2wv/+BGmdFs/s8Tv43GyeOcBjDxsRelQ0Cyy3YFnv2 xW2Q== 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=mMlCtAs1jGbiOMaFBIb9RZRyZByeWETXNBadTFttEW4=; b=gJipUk1knAa9YKThQhIoKrgrA0wCzApL3OgZjW/R0iKQ7N/GZjlFb4i9BJ3uwwShRD yvhuqiXb5YudbFu6iesLp/ckZQYxpbNp+cahwFo6j1cWLHmDBhMKWFEKre+DwaVGnOBj VU/5AagxTE9rKF0h/ArPhJHTaNI8kkRB0Y2hwJKvxdHgixbQ4zCL0xpVqTrWR5gz706/ ODvk2FukPspbaXjPB6rFAhiF8DelRd7wIVNAdghH8K+zaW/a+CbWAI4eWL8kLSCUH4vK UoX6xi47ynWBFnqBLKAtoVpjZw9Bc6NBxc5yVd/1FAbdKy1GOlaAIfPvuIaJcPv39HHF sxhA== X-Gm-Message-State: APjAAAU6/Dvm7U+h9T0kf4JrVlhVzVryfd/5iK1XDtLDCKYtRclXZUFY yl9Px9Xyp8IyDCIBuN78BJ6DH1ZA X-Google-Smtp-Source: APXvYqzfCA9+kzjcBnNldSPHy1FrtDufnnSB198TYI/bv+UZ9YnS60U5WTqndQWyLQ5RH5ajn5RN6w== X-Received: by 2002:a17:90b:3011:: with SMTP id hg17mr18484312pjb.90.1575676013029; Fri, 06 Dec 2019 15:46:53 -0800 (PST) Received: from localhost.localdomain ([47.149.5.15]) by smtp.gmail.com with ESMTPSA id i13sm16579991pgr.48.2019.12.06.15.46.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Dec 2019 15:46:52 -0800 (PST) From: aduskett@gmail.com To: buildroot@buildroot.org Date: Fri, 6 Dec 2019 15:46:45 -0800 Message-Id: <20191206234649.3972927-2-aduskett@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191206234649.3972927-1-aduskett@gmail.com> References: <20191206234649.3972927-1-aduskett@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v6 2/6] package/polkit: support different authentication frameworks X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Adam Duskett , Marek Belisko , Maxime Hadjinlian Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Adam Duskett Use pam if available, otherwise use shadow. Signed-off-by: Adam Duskett --- package/polkit/polkit.mk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/package/polkit/polkit.mk b/package/polkit/polkit.mk index 507d1865fa..7791d23d19 100644 --- a/package/polkit/polkit.mk +++ b/package/polkit/polkit.mk @@ -13,13 +13,17 @@ POLKIT_INSTALL_STAGING = YES POLKIT_DEPENDENCIES = libglib2 host-intltool expat spidermonkey -# We could also support --with-authfw=pam POLKIT_CONF_OPTS = \ - --with-authfw=shadow \ --with-os-type=unknown \ --disable-man-pages \ --disable-examples \ --disable-libelogind \ --disable-libsystemd-login +ifeq ($(BR2_PACKAGE_LINUX_PAM),y) +POLKIT_CONF_OPTS += --with-authfw=pam +else +POLKIT_CONF_OPTS += --with-authfw=shadow +endif + $(eval $(autotools-package))