]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
fetch2: Add BB_ALLOWED_NETWORKS support
authorLiam R. Howlett <Liam.Howlett@windriver.com>
Thu, 16 Apr 2015 17:23:18 +0000 (13:23 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 12 May 2015 11:17:08 +0000 (12:17 +0100)
commitc7263096ba31ba45daeeb9de90c1cb9ebef24a28
tree37d95deb3c887a6b7be44074fbf75243d4a3a18e
parentf002b1ca80cb542a4ed0c06c53c914cd5e076565
fetch2: Add BB_ALLOWED_NETWORKS support

BB_ALLOWED_NETWORKS is a list of hosts that the fetcher will be allowed
to use when BB_NO_NETWORK is not set.

If BB_NO_NETWORK is set, then networking is still disabled.

If BB_ALLOWED_NETWORKS is not set, the behaviour remains the same as
today.

If BB_NO_NETWORK is NOT set, and BB_ALLOWED_NETWORKS is configured, then
only the hosts in the list are usable by the fetcher.

eg:
BB_ALLOWED_NETWORKS="yoctoproject.org git.gnu.org"
The fetcher will be able to download from yoctoproject.org, git.gnu.org,
but not ftp.gnu.org or any other hostname that is not in the list.

There is also limited support for wildcards on the beginning of the
hosts, so BB_ALLOWED_NETWORKS="*.gnu.org" with match git.gnu.org and
ftp.gnu.org as well as foo.git.gnu.org

Signed-off-by: Liam R. Howlett <Liam.Howlett@WindRiver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/fetch2/__init__.py
lib/bb/tests/fetch.py