From patchwork Wed Jun 24 20:43:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Compagnucci X-Patchwork-Id: 1316578 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=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=pF2Jj7kN; 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 49sZrK5Rpnz9sRW for ; Thu, 25 Jun 2020 06:44:17 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 543C186C47; Wed, 24 Jun 2020 20:44:16 +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 m-XjOEltOQ78; Wed, 24 Jun 2020 20:44:13 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 577F686BE5; Wed, 24 Jun 2020 20:44:13 +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 D527E1BF97C for ; Wed, 24 Jun 2020 20:44:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D0876875EE for ; Wed, 24 Jun 2020 20:44:07 +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 AdtSRyvEmlBu for ; Wed, 24 Jun 2020 20:44:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) by whitealder.osuosl.org (Postfix) with ESMTPS id 84555864F5 for ; Wed, 24 Jun 2020 20:44:04 +0000 (UTC) Received: by mail-wm1-f53.google.com with SMTP id q15so3516152wmj.2 for ; Wed, 24 Jun 2020 13:44:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hShYBoXiOSQS7dtU5a4hz9zcrWI8UuYefq9AVWaw1sI=; b=pF2Jj7kNCWbSPH7QnQhcVpN4IRT/5PM1OBx49G4H6R1rNfTFkHM+yFfvO9Qsr1LXMi IPce03qz2RohRBI2IQCSVIxmTBHyQFwTzU/nClTg5vHXVNxfZ8MFmFQ+kyCl3MXdapdM StX2hCYGjSUbS/2X8W5Rhl1aeN6OKFdSgAoQA= 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=hShYBoXiOSQS7dtU5a4hz9zcrWI8UuYefq9AVWaw1sI=; b=n5pEnp95vHoB3cPkJzBeO3ZV6E/Po62B18rp8lXQfwPKF2+m44dQ7AH68dDpT4urCo ZxBK40npzbFt7EGRJjeBgihOjnNk22jXFZzQaQSDmJsiD2PEQx4BlwMw4EOWGgTqZVqL apK1qdBf9FWmEvkuKJQOaeeuvZpL4hTj5fDUqMxkBDsv9HFfaMIZQ0Kps8v1X2/joQ5B Jycl612reM82HHJAbgz9A+YECFyQWSU+91g7JrnKw6DaZKI4quea38rUI1uRcR8YOb3E K6f8PnZ6j/xKQFkZ1no3usTctBVPI9WKqUTeLmjg44Ihw4gKZCzS+Qz/wrIG3iXqO1ql rNhw== X-Gm-Message-State: AOAM532apBFYWL+qYtVHiJhKm3/soKwqOTG20g4sASbFl/XNFj0ekk5y pCI3IZ9yvvZCyr3UZ5nabF9lQgnyNKn9PA== X-Google-Smtp-Source: ABdhPJxidDtJPHXvqqkXmSrPDxoKMfcHuXRjTvQyx9smBkp08QDD2RHPMBJojye9xkfHHdOAVMbvLA== X-Received: by 2002:a05:600c:21d7:: with SMTP id x23mr33270717wmj.95.1593031442399; Wed, 24 Jun 2020 13:44:02 -0700 (PDT) Received: from localhost.localdomain (host194055151123.static.fidoka.tech. [194.55.151.123]) by smtp.gmail.com with ESMTPSA id 11sm9643996wmg.41.2020.06.24.13.44.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jun 2020 13:44:01 -0700 (PDT) From: Angelo Compagnucci To: buildroot@buildroot.org Date: Wed, 24 Jun 2020 22:43:45 +0200 Message-Id: <20200624204347.797088-6-angelo@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200624204347.797088-1-angelo@amarulasolutions.com> References: <20200624204347.797088-1-angelo@amarulasolutions.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v3 5/7] package/cups: Add lp user as default cups user 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: Angelo Compagnucci Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This patch is a backport from the rockchip tree. Author: Jeffy Chen Date: Tue Nov 13 18:25:34 2018 +0800 package: cups: Add lp user as default cups user Change-Id: Ic7434fe0a7b41b86b5b8b097fa29dd9718e29aa5 Signed-off-by: Jeffy Chen User lp is necessary for running the cups spooler. Groups lpadmin grants administrative privileges to users. Signed-off-by: Angelo Compagnucci --- package/cups/cups.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/package/cups/cups.mk b/package/cups/cups.mk index acd8c2066b..e86374b027 100644 --- a/package/cups/cups.mk +++ b/package/cups/cups.mk @@ -22,6 +22,9 @@ CUPS_CONF_OPTS = \ --disable-gssapi \ --disable-pam \ --libdir=/usr/lib \ + --with-cups-user=lp \ + --with-cups-group=lp \ + --with-system-groups="lpadmin sys root" \ --with-rcdir=no CUPS_CONFIG_SCRIPTS = cups-config CUPS_DEPENDENCIES = \ @@ -78,4 +81,11 @@ define CUPS_INSTALL_INIT_SYSV $(TARGET_DIR)/etc/init.d/S81cupsd endef +# lp user is needed to run cups spooler +# lpadmin group membership grants administrative privileges +define CUPS_USERS + lp -1 lp -1 * /var/spool/lpd /bin/false - lp + - - lpadmin -1 * - - - Printers admin group. +endef + $(eval $(autotools-package))