From patchwork Wed Dec 18 22:09:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Duskett X-Patchwork-Id: 1212880 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="djxYCu5/"; 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 47dThH3Gdjz9sNH for ; Thu, 19 Dec 2019 09:09:51 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id BEE86884CE; Wed, 18 Dec 2019 22:09:49 +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 p6VfC5IcYHuw; Wed, 18 Dec 2019 22:09:49 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 2943B884D0; Wed, 18 Dec 2019 22:09:49 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id B5C2E1BF3A3 for ; Wed, 18 Dec 2019 22:09:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8ABA287C8E for ; Wed, 18 Dec 2019 22:09:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ljFK1hKIXmHb for ; Wed, 18 Dec 2019 22:09:45 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com [209.85.215.195]) by whitealder.osuosl.org (Postfix) with ESMTPS id C99CC86223 for ; Wed, 18 Dec 2019 22:09:45 +0000 (UTC) Received: by mail-pg1-f195.google.com with SMTP id b137so1996355pga.6 for ; Wed, 18 Dec 2019 14:09:45 -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:mime-version :content-transfer-encoding; bh=T01oA7K2HgpFQTTOf4z0+9btIKPf7Sdj/mCXHEyA/u8=; b=djxYCu5/hsMKpo/AA4qmnqZEdSk8aOoPEmZyRnUHYyzlzVPD9wW3agslaMu9TL0qKU oPBBcGg3QBNoCM/Qi13oKcRf/Ssrd5/0cTSvN/xb5cdMtfONkp0jraABUiwEkye17xiy 3ejOF3eq4HiwG6AdLQ0IW0SaW/L2jPdfe1uaWR+F+svHr/KJ6SO31q2y0/irOk4trW31 FpQ5NPiXzB9bh0TNLYk2FODAblESyo3fRViLr1TyenUAPP2/eEg8Be1Ud+7wEPCpU/ae Bpn6THTPoidZ9u8ahiWnMJXyWT5WfS7K/qWx1q+zg04hasZ3gzQQIgno8tfSOYf9ZFkH pJYQ== 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=T01oA7K2HgpFQTTOf4z0+9btIKPf7Sdj/mCXHEyA/u8=; b=JLqgRI09MIzd51KDb4c5IJepY7B40ZuH4vakqJ0ahW7Vpu41cFBTd8P+/pNmAC16sh rReI3kHLuBH2d3au5XCebrXff2vfZ4aSlG6Jrz1AIymdaRSe119aYLkfQ2HgJKzHd4QB 4LpvOdguh52wLqLVZfyl0N0yKCK8+2ybH8iLv8wqi7g5yAgT9zMheccS7KpnGExTR9CT IhBS6wKCXwAantRJNNvQ5z98xOyALMbVPMN9VD0Sn7QFQzYPKFtLEnU0KjGoVaTtwM+J aWmIrdxjFHEMba2e4TnIn7ayiZxUJWzefdFqW/+2/EqTFw9kxeTkhGUnyJQiNuHa5AUc UffQ== X-Gm-Message-State: APjAAAXWJYTwt/nvMF+EZsa9669YidgWE+cizjlp0cVsTT12RrJbM++t kPuJE9UyiEPvy3BPdxLExLpAL7mz X-Google-Smtp-Source: APXvYqzyT7gHAeFKxX83SaL9ws9qNx+hYoW3Cu+23nCg3lJtteKoY0cWJJEDkvveDdO+x4wmfaNDFg== X-Received: by 2002:a63:fa50:: with SMTP id g16mr5513430pgk.202.1576706984982; Wed, 18 Dec 2019 14:09:44 -0800 (PST) Received: from localhost.localdomain ([12.220.142.98]) by smtp.gmail.com with ESMTPSA id f9sm4588776pfd.141.2019.12.18.14.09.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Dec 2019 14:09:44 -0800 (PST) From: aduskett@gmail.com To: buildroot@buildroot.org Date: Wed, 18 Dec 2019 14:09:35 -0800 Message-Id: <20191218220935.49014-1-aduskett@gmail.com> X-Mailer: git-send-email 2.21.0 (Apple Git-122) MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/polkit: add needed system changes 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 polkit daemon requires a polkitd user with permission to access the following directories: - /etc/polkit-1 - /usr/share/polkit-1 The /usr/bin/pkexec file must be owned by owned by root with the permissions 4755 or else the error "pkexec must be setuid root" is thrown when it's ran. Signed-off-by: Adam Duskett --- package/polkit/polkit.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/package/polkit/polkit.mk b/package/polkit/polkit.mk index a98c138356..bc9e3580ab 100644 --- a/package/polkit/polkit.mk +++ b/package/polkit/polkit.mk @@ -29,4 +29,14 @@ else POLKIT_CONF_OPTS += --with-authfw=shadow endif +define POLKIT_USERS + polkitd -1 polkitd -1 * - - - Polkit Daemon +endef + +define POLKIT_PERMISSIONS + /etc/polkit-1 r 750 root polkitd - - - - - + /usr/share/polkit-1 r 750 root polkitd - - - - - + /usr/bin/pkexec f 4755 root root - - - - - +endef + $(eval $(autotools-package))