From patchwork Tue Feb 5 10:56:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Adrien_Gallou=C3=ABt?= X-Patchwork-Id: 1036622 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) 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=none (p=none dis=none) header.from=gallouet.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="bs2SYDHK"; 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 43v1m11KQ7z9sMl for ; Tue, 5 Feb 2019 21:58:57 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id A2554884E1; Tue, 5 Feb 2019 10:58:53 +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 UObiculizcgk; Tue, 5 Feb 2019 10:58:41 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id F0AE8884DF; Tue, 5 Feb 2019 10:58:38 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 5067B1BF95C for ; Tue, 5 Feb 2019 10:58:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id BBD2B884E4 for ; Tue, 5 Feb 2019 10:58:26 +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 PJPq7Q1Hx5Wd for ; Tue, 5 Feb 2019 10:58:15 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by hemlock.osuosl.org (Postfix) with ESMTPS id 6740E884DF for ; Tue, 5 Feb 2019 10:58:14 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id y139so3067273wmc.5 for ; Tue, 05 Feb 2019 02:58:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6G3HMXQyj5JZXPG0pAFk7BqkQibc7Vkpvo+LM2huH+g=; b=bs2SYDHKKBFlrrh/eWdsj8WYKRkpOnSCX+yK3J83WZTRJi+xMtcjUW1wB0ugc7h7WM CvUm988pUGPUUtUXSWUILSHk5sRZzpW9EEl1Crl/Um3/czKRQDa10OiNCFUdk914QKC/ RfwKMQizAP7Cvp7lzgHM70AWxNywzNNYZm82oaMuViyHtX8aKJLDLkjpWvMEjmFQ92PD o7ho2sOb/QvSbWY+/2FLL+yUJvchnOPrRH573P/8LfDaDjBoVPj14M1rhsT/wdoj6OkU t50hCCQAwKDp6YFRTURcUbt3FxRMgWL2UFl+SJfJkPdqpE4p53k+X4ArtY+IrmFMDOBJ ZDPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=6G3HMXQyj5JZXPG0pAFk7BqkQibc7Vkpvo+LM2huH+g=; b=XtkYh2bORcsnWuLxMQrBn8KtE4Xax22nKuDMbMEliBZ8J+PPi6Uw4sSwtJqlvF6W5q W5TNJ6DM8TmBeMFp6RO1YMFFWpF22kTUiPx7IwK98/vDCAKd3zOc428B85z8zwK8Oogv +06b5dgFxmfszz/A+QWHyLdAPBhl5jNACoeqx8xjFKEQfiIOypwimKV/ei7uok8sIAL5 U57SX03dnwVc3XY1AJZnistXPcgOkAbKn1RCAU3w16cGF/kL1KFAusQF13YYLN1lgQLp 6UFY/jRjq9MdaB45zzuG5cGD3qtWJH0qZ/+NOkHfCcUeOeS5FJsMXp/I6XtInL2TQBho KpnQ== X-Gm-Message-State: AHQUAuY/cYbFGRHz9SBRL5r28fE6sZ+qN70ROQeKPHLoP5nzWhSCN6i6 mNrhrfqr4ZxL66/A7LMUoIUkRIJCoHA= X-Google-Smtp-Source: AHgI3IaOMf9/zSAhF+dN8ytWut8mQeZV55sPPO6KMVOckAnzEPG8KZW9qwtaderBpLsrAGL6jg+nVg== X-Received: by 2002:a1c:ac42:: with SMTP id v63mr3095555wme.119.1549364292471; Tue, 05 Feb 2019 02:58:12 -0800 (PST) Received: from localhost.localdomain (angt.sticky.ovh. [51.68.38.46]) by smtp.gmail.com with ESMTPSA id x10sm23633680wrn.29.2019.02.05.02.58.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Feb 2019 02:58:11 -0800 (PST) From: =?utf-8?q?Adrien_Gallou=C3=ABt?= To: buildroot@buildroot.org Date: Tue, 5 Feb 2019 10:56:31 +0000 Message-Id: <20190205105630.17008-1-adrien@gallouet.fr> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/bird: add a unprivileged 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: =?utf-8?q?Adrien_Gallou=C3=ABt?= Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This commit add a specific unprivileged user for BIRD to avoid full root privileges while running. Signed-off-by: Adrien Gallouët --- package/bird/bird.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package/bird/bird.mk b/package/bird/bird.mk index da2f868070..8091644108 100644 --- a/package/bird/bird.mk +++ b/package/bird/bird.mk @@ -17,4 +17,12 @@ else BIRD_CONF_OPTS += --disable-client endif +define BIRD_USERS + bird -1 bird -1 * - - - BIRD unprivileged user +endef + +define BIRD_PERMISSIONS + /etc/bird.conf r 600 bird bird - - - - - +endef + $(eval $(autotools-package))