From patchwork Sat Apr 18 02:58:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Duskett X-Patchwork-Id: 1272551 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.137; helo=fraxinus.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.a=rsa-sha256 header.s=20161025 header.b=TJXfIwIq; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 493yMQ1P9Wz9sP7 for ; Sat, 18 Apr 2020 12:58:26 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id EFEF586481; Sat, 18 Apr 2020 02:58:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pJ36zgjqiUs4; Sat, 18 Apr 2020 02:58:23 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6F5E186672; Sat, 18 Apr 2020 02:58:23 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 0A1091BF41E for ; Sat, 18 Apr 2020 02:58:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 0667E864B3 for ; Sat, 18 Apr 2020 02:58:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SDNWPmjYRDB4 for ; Sat, 18 Apr 2020 02:58:21 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pj1-f66.google.com (mail-pj1-f66.google.com [209.85.216.66]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 78B0986481 for ; Sat, 18 Apr 2020 02:58:21 +0000 (UTC) Received: by mail-pj1-f66.google.com with SMTP id a32so1886418pje.5 for ; Fri, 17 Apr 2020 19:58:21 -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=mW63uM+eflFQTaOTHoe1CWSY2eGBQ2k9Vxh/sG6TuHY=; b=TJXfIwIq47F+Am79JSMyWv1gUk6Ywv5gPUbw874MARQEGczJAPPj1gvydRg4Oi7pyr 6IVKOu4EBxgbw5qoXpaNCVYOTiVWuHiJ6neepsG8aFXcNgH+YSfQZx3PLqXxXxFGdYmE GNKI+6GJJadOJ9ua4zWJ68eJ1Jqd7hgz2DN3LCM/KhAiqe8uGTuHSLrVNLSxpqaoZ1lp VkZHy6mNhGqt6RmqVyswlT5XQmZX/rBEw4Z+KWjkE0phZ0Fvk7d7L98LVitP1dlffpz3 gCJ7DsKYQujTb2wCyLkIFKoqhEaxHcSBtHi7pAfKOWT6HR3aewYMJv3p0o0KqfSm2S43 8wUA== 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=mW63uM+eflFQTaOTHoe1CWSY2eGBQ2k9Vxh/sG6TuHY=; b=ct3Ailp0WT7qyYQxB20KmfHrVjW4lGK8pARh8tgkxCFKUp/XgplyvdKNZG4VX7ksb2 Py3Mqeblwh5SbRtHQLdMwyHLsO7ASlMSuslbp7seOzoYSOYmqCKP1iK8y5ctpdO3Hw4E 4ACKXTpft2to+OKxDk1zqRQ/jHOM8tlwM4oQQD2QO0lBbP1mppGqf1wUHDG0W37qjgUI S1nRu42AjLv7kjJZUURXDvMctBfiEAAa3zdFhmb8fkfeS496/2w4QUfeY+IrwhSEwhpn oSxU+/JBdBBhrFstRKFSSvCRHvETLXGNRhYK+UNEuDln44g/ncLnpyMzFEizGiCu9HWM F2jg== X-Gm-Message-State: AGi0PuZNg2g8KOIbxwmer/zLQoqQzyTG8AFKhRVZUNlSB1E/IOGLbzp+ 4qc3BBmxGTQ+QF4egt7bTnvrvGhS42E= X-Google-Smtp-Source: APiQypIOXREZzefetJaHWLQ8PoDl8Lp5Xo4fwQ7F4XucovgCjGaTgXgDkpBwrdI1FxNc0a9t/TQhsg== X-Received: by 2002:a17:90a:1a16:: with SMTP id 22mr7147137pjk.97.1587178700659; Fri, 17 Apr 2020 19:58:20 -0700 (PDT) Received: from localhost.localdomain ([178.128.184.60]) by smtp.gmail.com with ESMTPSA id y123sm20488270pfb.13.2020.04.17.19.58.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Apr 2020 19:58:20 -0700 (PDT) From: aduskett@gmail.com To: buildroot@buildroot.org Date: Fri, 17 Apr 2020 19:58:13 -0700 Message-Id: <20200418025816.1642936-1-aduskett@gmail.com> X-Mailer: git-send-email 2.25.2 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/4] package/polkit: install service file 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 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Adam Duskett The default installed service file is missing a target, which causes preset-all to not enable the service. Add the service file to package/polkit with the addition of: [Install] WantedBy=multi-user.target Signed-off-by: Adam Duskett --- package/polkit/polkit.mk | 6 ++++++ package/polkit/polkit.service | 12 ++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 package/polkit/polkit.service diff --git a/package/polkit/polkit.mk b/package/polkit/polkit.mk index 8572d8b9ba..ee0b3674de 100644 --- a/package/polkit/polkit.mk +++ b/package/polkit/polkit.mk @@ -43,4 +43,10 @@ define POLKIT_PERMISSIONS /usr/bin/pkexec f 4755 root root - - - - - endef +define POLKIT_INSTALL_INIT_SYSTEMD + $(INSTALL) -D -m 644 $(POLKIT_PKGDIR)/polkit.service \ + $(TARGET_DIR)/usr/lib/systemd/system/polkit.service + +endef + $(eval $(autotools-package)) diff --git a/package/polkit/polkit.service b/package/polkit/polkit.service new file mode 100644 index 0000000000..a69b28cd93 --- /dev/null +++ b/package/polkit/polkit.service @@ -0,0 +1,12 @@ +[Unit] + +Description=Authorization Manager +Documentation=man:polkit(8) + +[Service] +Type=dbus +BusName=org.freedesktop.PolicyKit1 +ExecStart=/usr/lib/polkit-1/polkitd --no-debug + +[Install] +WantedBy=multi-user.target From patchwork Sat Apr 18 02:58:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Duskett X-Patchwork-Id: 1272552 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.a=rsa-sha256 header.s=20161025 header.b=r0XqDyJ1; 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 493yMV2tFBz9sP7 for ; Sat, 18 Apr 2020 12:58:29 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 48B6088072; Sat, 18 Apr 2020 02:58:27 +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 ay43IFzBHaVL; Sat, 18 Apr 2020 02:58:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 7C6F18823A; Sat, 18 Apr 2020 02:58:26 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 68E2A1BF41E for ; Sat, 18 Apr 2020 02:58:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 657B4864B3 for ; Sat, 18 Apr 2020 02:58:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 727GjUXeqTmO for ; Sat, 18 Apr 2020 02:58:22 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 5B49786481 for ; Sat, 18 Apr 2020 02:58:22 +0000 (UTC) Received: by mail-pg1-f178.google.com with SMTP id n16so2039311pgb.7 for ; Fri, 17 Apr 2020 19:58:22 -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=PDWtr1VZj9qkV9+rFMeBOKP9KrC2Uq5MzVBQqKRaM0A=; b=r0XqDyJ1j3tDQjj6Db4TQWfFjCEAnCAS4oAhXCUaWUyZCJ7qv5djtC5SWeGFfKy/if 2qNucuoKrSV9+WcIJ10cv3PEzeaRbsumPEvq8qCIc4zNgrgJxtgxfIWFW0DgHoAM0UpH HBvyvJGyqHPrGvW0ple+06M3zJ2wKD2EDVfm4fVipqs7LWMbeR6W9r7GQwTmrdv+iTYj 3YoFlCYIwJCNoKkek+TukJN6yuFWsv+aurYMEgV1N9JKIj1BiPq4p41aDc90VkEzmRuF rKpX9kaCWnnd68qyIIeHI05o2FfMoAytEz0xKXHzTyp1Rdwo2/E5OJwhN5oNNNxUNfgG Xghw== 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=PDWtr1VZj9qkV9+rFMeBOKP9KrC2Uq5MzVBQqKRaM0A=; b=DzuXpG/Aut1HTKX6SOe7QTpZyE1Mb9Ur6IeN4C2VSL6P09USC+UCi1IEmFKhCsQbdy xE4fuPJNIf4h7hwfmCF6hf41PBYqjUKUR5CR0ZNr9QlaYNmXWS1U62uzRuWRpaYSkjTN u3jKpHLzcsQ3/8LF78oy7jLxVsxWkhV0j3/8VLFIaw18HCdSA8FHDJfSpzuDEy0jBn7e mODzJ20n/hdGIuQefU9FAR7ii9oSraMv1FHyEyxKHav+TRwzfvcM/QMD+EFPO8Qkbnvi xvEjU+ZSX6OJyPU3by4hpSdi+TkGyz9v9S6+Nv42w6hIF4v6ocV+t/XOfC/f8rN7CIPC mTCQ== X-Gm-Message-State: AGi0PubUvsUnsFBNGENKlLBprsoXb5E6Ywhe+5lrZgcDIA3GuhXgoCv9 BUV22tGRdeOMb5m0k6B+HLTDb1OxZYs= X-Google-Smtp-Source: APiQypJkYOvvk+OktoHXZLPeRZtZe63bucmmis50XhtPP3ps4iJ6F7Spw4uYlbbhpyScIyG/vl7l3w== X-Received: by 2002:a65:41c6:: with SMTP id b6mr5843583pgq.58.1587178701740; Fri, 17 Apr 2020 19:58:21 -0700 (PDT) Received: from localhost.localdomain ([178.128.184.60]) by smtp.gmail.com with ESMTPSA id y123sm20488270pfb.13.2020.04.17.19.58.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Apr 2020 19:58:21 -0700 (PDT) From: aduskett@gmail.com To: buildroot@buildroot.org Date: Fri, 17 Apr 2020 19:58:14 -0700 Message-Id: <20200418025816.1642936-2-aduskett@gmail.com> X-Mailer: git-send-email 2.25.2 In-Reply-To: <20200418025816.1642936-1-aduskett@gmail.com> References: <20200418025816.1642936-1-aduskett@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/4] package/polkit: add upstream memory leak fix 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 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Adam Duskett This patch fixes two small memory leaks. Upstream commit: 28e3a6653d8c3777b07e0128a0d97d46e586e311 Signed-off-by: Adam Duskett --- package/polkit/0002-jsauthority-memleak.patch | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 package/polkit/0002-jsauthority-memleak.patch diff --git a/package/polkit/0002-jsauthority-memleak.patch b/package/polkit/0002-jsauthority-memleak.patch new file mode 100644 index 0000000000..4f0733185c --- /dev/null +++ b/package/polkit/0002-jsauthority-memleak.patch @@ -0,0 +1,28 @@ +From 28e3a6653d8c3777b07e0128a0d97d46e586e311 Mon Sep 17 00:00:00 2001 +From: Jan Rybar +Date: Tue, 8 Oct 2019 13:28:18 +0000 +Subject: [PATCH] jsauthority: Fix two minor memory leaks + +(cherry picked from commit 28e3a6653d8c3777b07e0128a0d97d46e586e311) +Signed-off-by: Jan Rybar +Signed-off-by: Adam Duskett +--- + src/polkitbackend/polkitbackendjsauthority.cpp | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/polkitbackend/polkitbackendjsauthority.cpp b/src/polkitbackend/polkitbackendjsauthority.cpp +index 9b752d1..e97b8aa 100644 +--- a/src/polkitbackend/polkitbackendjsauthority.cpp ++++ b/src/polkitbackend/polkitbackendjsauthority.cpp +@@ -567,6 +567,8 @@ polkit_backend_js_authority_finalize (GObject *object) + g_strfreev (authority->priv->rules_dirs); + + delete authority->priv->ac; ++ delete authority->priv->js_global; ++ delete authority->priv->js_polkit; + + JS_DestroyContext (authority->priv->cx); + /* JS_ShutDown (); */ +-- +2.24.1 + From patchwork Sat Apr 18 02:58:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Duskett X-Patchwork-Id: 1272553 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.137; helo=fraxinus.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.a=rsa-sha256 header.s=20161025 header.b=ib8iKsk/; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 493yMV4Y2cz9sQx for ; Sat, 18 Apr 2020 12:58:30 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 278CF86672; Sat, 18 Apr 2020 02:58:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9rgMxeyyVoDx; Sat, 18 Apr 2020 02:58:28 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 8D33C866A9; Sat, 18 Apr 2020 02:58:28 +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 0A5211BF41E for ; Sat, 18 Apr 2020 02:58:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id F0C4D227AA for ; Sat, 18 Apr 2020 02:58:23 +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 5s+0GlEg9yCN for ; Sat, 18 Apr 2020 02:58:23 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by silver.osuosl.org (Postfix) with ESMTPS id 3AB7B2036E for ; Sat, 18 Apr 2020 02:58:23 +0000 (UTC) Received: by mail-pf1-f193.google.com with SMTP id g30so1999045pfr.3 for ; Fri, 17 Apr 2020 19:58:23 -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=PtIRavSaXIILbPrsVfPDhiXJFfprYMaUsKOdktFzI7k=; b=ib8iKsk/WiRQsY3v/DfsVvyfKWhVCnlE4WPmG0x3lMlFVul9F9wrrV2rPAC+4eqEzQ PlszvM2m1Ez1o2f0Zb8MS/vkDbEVy3q4gq3RD9QN3TSJy6K27xAKdo7G7qSydEfFyhLa lwZvn0twBXXEjLj6Ibz9R910VyH5ZjALut6Cd7fcgCPG/ky6NPV4ctU2oj9txpoF1VSw E3dxnDaPgGOLNr6RddY4RQcfmGSaDpRghq7/em8jrmLbJ5CuVHRQrHr0lsLHM6sXdnwn /GhJtmBqVZtTCaYI5UrACO7eKh/PeoxawYFaYKAGAb1QP6pI4N+zkhWpkcuA0KKEb3gL Ei5w== 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=PtIRavSaXIILbPrsVfPDhiXJFfprYMaUsKOdktFzI7k=; b=tsrIlfRe90tx1rnxvKRv17c5j8LuYegSbn47o4TrtTNdSeEv2rhL0Hjc8iI5um+LBx Mj7Th4pBlLeCZj+2pDVaGULJTw1l4H0IULpTlrX2a3S9hJPL0Gif36yoSKj4gD1Tj5zZ lBh0BFLPSN2GNtw0YzXYwt1rbswCM5uTU/gpjjAReJedu01Si497h0PkhfQad+dLfBE0 Xb5V8osvvyYXCPJwGCkBx6+i4IiAQjQK4RXY8bnZWB3m3ZTtsnEW0bHUAmkKvUHTb9wx cDzl8ofQ3tF/9XL80fMloYpbqofdnBHLxRNEa7cTlwLJeb2juLcT2T/fA0OeIbIkpSk0 o1rQ== X-Gm-Message-State: AGi0PuaT0U/DDzSpC3E5xcGtIdul3cykA4Rc64Ib/EgEozDvVkbtqjtN 2Id0mETKbezVV+4gXFQiOrIaxJHaVBA= X-Google-Smtp-Source: APiQypINvXqaoCL/xUbuEayOCwnEUWLA6mDcc9a2k3+ixEH15LdwBaw6WodWc8SM+SAN9UdTTUydzg== X-Received: by 2002:aa7:943c:: with SMTP id y28mr6374099pfo.171.1587178702519; Fri, 17 Apr 2020 19:58:22 -0700 (PDT) Received: from localhost.localdomain ([178.128.184.60]) by smtp.gmail.com with ESMTPSA id y123sm20488270pfb.13.2020.04.17.19.58.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Apr 2020 19:58:22 -0700 (PDT) From: aduskett@gmail.com To: buildroot@buildroot.org Date: Fri, 17 Apr 2020 19:58:15 -0700 Message-Id: <20200418025816.1642936-3-aduskett@gmail.com> X-Mailer: git-send-email 2.25.2 In-Reply-To: <20200418025816.1642936-1-aduskett@gmail.com> References: <20200418025816.1642936-1-aduskett@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 3/4] package/polkit: add upstream fix for SIGTTOU 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 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Adam Duskett If tty_handler() resets terminal while pkttyagent is run in background job, the process gets stopped by SIGTTOU. This impacts systemctl, hence it must be blocked for a while and then the process gets killed anyway. Upstream commit: 28e3a6653d8c3777b07e0128a0d97d46e586e311 Signed-off-by: Adam Duskett --- ...lkit-0.116-pkttyagent-sigttou-bg-job.patch | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 package/polkit/0003-polkit-0.116-pkttyagent-sigttou-bg-job.patch diff --git a/package/polkit/0003-polkit-0.116-pkttyagent-sigttou-bg-job.patch b/package/polkit/0003-polkit-0.116-pkttyagent-sigttou-bg-job.patch new file mode 100644 index 0000000000..fb41df3af2 --- /dev/null +++ b/package/polkit/0003-polkit-0.116-pkttyagent-sigttou-bg-job.patch @@ -0,0 +1,34 @@ +From 76aae4fce586b400f5fe08df31497db19d624609 Mon Sep 17 00:00:00 2001 +From: Jan Rybar +Date: Thu, 1 Aug 2019 06:46:10 +0000 +Subject: [PATCH] pkttyagent: process stopped by SIGTTOU if run in background + job + + +(cherry picked from commit 76aae4fce586b400f5fe08df31497db19d624609) +Signed-off-by: Jan Rybar +Signed-off-by: Adam Duskett +--- + src/programs/pkttyagent.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/src/programs/pkttyagent.c b/src/programs/pkttyagent.c +index 3c8d502..13879a2 100644 +--- a/src/programs/pkttyagent.c ++++ b/src/programs/pkttyagent.c +@@ -264,6 +264,12 @@ main (int argc, char *argv[]) + + memset (&sa, 0, sizeof (sa)); + sa.sa_handler = &tty_handler; ++/* If tty_handler() resets terminal while pkttyagent is run in background job, ++ the process gets stopped by SIGTTOU. This impacts systemctl, hence it must ++ be blocked for a while and then the process gets killed anyway. ++ */ ++ sigemptyset(&sa.sa_mask); ++ sigaddset(&sa.sa_mask, SIGTTOU); + sigaction (SIGTERM, &sa, &savesigterm); + sigaction (SIGINT, &sa, &savesigint); + sigaction (SIGTSTP, &sa, &savesigtstp); +-- +2.24.1 + From patchwork Sat Apr 18 02:58:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Duskett X-Patchwork-Id: 1272554 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.137; helo=fraxinus.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.a=rsa-sha256 header.s=20161025 header.b=FYHST6/r; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 493yMY1JH3z9sP7 for ; Sat, 18 Apr 2020 12:58:33 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id AACC98685E; Sat, 18 Apr 2020 02:58:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iyNF_3YvpIFi; Sat, 18 Apr 2020 02:58:30 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 96E2486890; Sat, 18 Apr 2020 02:58:29 +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 A691A1BF41E for ; Sat, 18 Apr 2020 02:58:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id A2F4A227AA for ; Sat, 18 Apr 2020 02:58:24 +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 6F51nHxsOf6s for ; Sat, 18 Apr 2020 02:58:24 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by silver.osuosl.org (Postfix) with ESMTPS id 2A23A2036E for ; Sat, 18 Apr 2020 02:58:24 +0000 (UTC) Received: by mail-pg1-f196.google.com with SMTP id q8so1205913pgq.6 for ; Fri, 17 Apr 2020 19:58:24 -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=xaUFMr2ghLr2h8syON1E4LmuLAMzGmFcq+ZYWXMWXUY=; b=FYHST6/riKzJMziwrnQAaqnhpglyCyRKJ9Rt2YXZqn0tsHTjUGsLK5zfIUWTAToEFr PJmU8fJJdjhMn02SPKQyI8nXo0OpT2TUlFpniem2Tu4Q04mz1K7tzz/5Zkh+Z3RK8/Eu rP+Vn3DhrsZoUO3HJT6RUmbodwAjtl7DjgXm1qdsBjac7Dijt087QYTvixTDnQm1GBIR 3qfQJR0oq3oAWtRQHQ9GCu117EtlsJioo6JdcCKftSuaMlQNG7sz9cvbh8vS8gRtcakU EhP7OaN9UBQPUFDki77+jIOxATZg8mUgzP0yMQ7OsX78070GZ39MhcjCtmw3NPAExxpH e83w== 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=xaUFMr2ghLr2h8syON1E4LmuLAMzGmFcq+ZYWXMWXUY=; b=B2J/CX8qOuHN6P35v0nYgLPBnXnpGfwxd9kdOvyiZ1kBaUTmPh/hUGrnrEriCG7oqf CYuAeFHkk5FnvR5SeM/UhD2LZjPxSVvl/JrkUrjP3ze77nzv2ud6csrfroFJiKnAs+JE s/bghV83rLPsWSwxZ7bCFO4lOinBP9kqTkdJJq/5CYhyY1ACyVGKyV3Vuy94Yls3sDWs T3FguneRLsp7OkVtInNavEYCl0YpXgVpCrQMDXMMYWPVC9OjqcyouJEUb2xDUR5ugUlH pgV5PwYGz5SJeYR/WMAWa8OoPrVFM7wBSKDASunwEXdcQpHO5Ujs82pMssd+xQv1bzQ4 Up+g== X-Gm-Message-State: AGi0PuYn95zH0Yx3mNIIoIwWUKqie/zlhQtsEA+kEif0PQCtg+9dtbgN 11Rn7EprnwSDRHme1fh69tu55WcuK4g= X-Google-Smtp-Source: APiQypIOrOUrQy+JTT8l/Y0QOoLUn83ZsLQ4rYy0UmUQYxMetMca06woU0dR4cD3YMblE4tTeOZsYQ== X-Received: by 2002:a62:2547:: with SMTP id l68mr5935150pfl.175.1587178703548; Fri, 17 Apr 2020 19:58:23 -0700 (PDT) Received: from localhost.localdomain ([178.128.184.60]) by smtp.gmail.com with ESMTPSA id y123sm20488270pfb.13.2020.04.17.19.58.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Apr 2020 19:58:22 -0700 (PDT) From: aduskett@gmail.com To: buildroot@buildroot.org Date: Fri, 17 Apr 2020 19:58:16 -0700 Message-Id: <20200418025816.1642936-4-aduskett@gmail.com> X-Mailer: git-send-email 2.25.2 In-Reply-To: <20200418025816.1642936-1-aduskett@gmail.com> References: <20200418025816.1642936-1-aduskett@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 4/4] package/polkit: enable gobject-introspection support 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 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Adam Duskett If gobject-introspection is selected, add the gobject-introspection package to the dependency list and set the conf opt --enable-introspection. Signed-off-by: Adam Duskett --- package/polkit/polkit.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/polkit/polkit.mk b/package/polkit/polkit.mk index ee0b3674de..3ae42b2312 100644 --- a/package/polkit/polkit.mk +++ b/package/polkit/polkit.mk @@ -26,6 +26,13 @@ POLKIT_CONF_OPTS = \ --disable-libelogind \ --disable-libsystemd-login +ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y) +POLKIT_CONF_OPTS += --enable-introspection +POLKIT_DEPENDENCIES += gobject-introspection +else +POLKIT_CONF_OPTS += --disable-introspection +endif + ifeq ($(BR2_PACKAGE_LINUX_PAM),y) POLKIT_DEPENDENCIES += linux-pam POLKIT_CONF_OPTS += --with-authfw=pam