]> code.ossystems Code Review - openembedded-core.git/commit
classes: Only allow network in existing network accessing code
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 21 Dec 2021 17:38:58 +0000 (17:38 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 12 Jan 2022 21:10:15 +0000 (21:10 +0000)
commit7ce1e88a3ad85bbb925bb9f7167dc0a5fd1c27f4
treefd5aa428709789abf287ef9350fac7bcaa78a434
parent4d4485442830bb52b152f0419f4ff9f1d581d46a
classes: Only allow network in existing network accessing code

Use the newly added network task flag against tasks where network
access is expected. This is do_fetch, do_checkuri, do_testimage, do_testsdk
and do_testsdkext.

We can't disable networking in sstate tasks due to sstate downloads and
also so we can report hash equivalence to the server so network access
is enabled in sstate tasks.

Access within build-appliance do_image is also allowed due to the use
of pip, this is a poor example made rather obvious now and needs to be reworked.

Network access anywhere else in any other task isn't allowed.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/base.bbclass
meta/classes/sstate.bbclass
meta/classes/testimage.bbclass
meta/classes/testsdk.bbclass
meta/classes/utility-tasks.bbclass
meta/recipes-core/images/build-appliance-image_15.0.0.bb