diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-12-21 17:38:07 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-01-12 21:10:24 +0000 |
commit | 60d25f278c9cc4d6288166aba4b5c8927d32f84c (patch) | |
tree | 9d66658e3bd655f884baf86851552a8ec420b293 /bitbake/lib/bb/runqueue.py | |
parent | 6a2dfdf27a6829df9f58e825af2f90f0297a3aa0 (diff) | |
download | poky-60d25f278c9cc4d6288166aba4b5c8927d32f84c.tar.gz |
bitbake: utils: Add disable_network function
Add a function which uses the unshare glibc call to disable networking
in the current process. This doesn't work on older distros/kernels
but will on more recent ones so for now we simply ignore the cases we
can't execute on. uid/gid can be passed in externally so this can
work with pseudo/fakeroot contexts.
(Bitbake rev: 9d6341df611a1725090444f6f8eb0244aed08213)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
0 files changed, 0 insertions, 0 deletions