From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by mail.openembedded.org (Postfix) with ESMTP id 32EC373505 for ; Wed, 15 Apr 2015 18:17:04 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.14.9/8.14.9) with ESMTP id t3FIH5Nl001146 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Wed, 15 Apr 2015 11:17:05 -0700 (PDT) Received: from yow-lhowlett-d0.wrs.com (128.224.56.215) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.224.2; Wed, 15 Apr 2015 11:17:12 -0700 From: "Liam R. Howlett" To: Date: Wed, 15 Apr 2015 14:17:03 -0400 Message-ID: <1429121824-31200-1-git-send-email-Liam.Howlett@WindRiver.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1427827190-10442-2-git-send-email-Liam.Howlett@WindRiver.com> References: <1427827190-10442-2-git-send-email-Liam.Howlett@WindRiver.com> MIME-Version: 1.0 Subject: [PATCH v2] fetch2: Add BB_TRUSTED_NETWORK support X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussion that advance bitbake development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Apr 2015 18:17:05 -0000 Content-Type: text/plain This patch adds support for a new local.conf variable called BB_TRUSTED_NETWORK. BB_TRUSTED_NETWORK holds a list of hostnames that the user trusts as a source for downloading content. If network access is enabled and the user has configured trusted hosts, then any hosts that are not in the list will cause an error to occur at fetch. Any mirrors and pre-mirrors that are not in the list will result in warnings that these locations will not be used. The BB_NO_NETWORK variable still stops all network access. Please see the comments in the patch for more details and example usage. Liam R. Howlett (1): fetch2: Add BB_TRUSTED_NETWORK support lib/bb/fetch2/__init__.py | 53 +++++++++++++++++++++++++++++++++++++++++++++++ lib/bb/tests/fetch.py | 37 +++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+) -- 2.1.1