summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/runqueue.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-12-21 17:38:07 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-01-12 21:10:24 +0000
commit60d25f278c9cc4d6288166aba4b5c8927d32f84c (patch)
tree9d66658e3bd655f884baf86851552a8ec420b293 /bitbake/lib/bb/runqueue.py
parent6a2dfdf27a6829df9f58e825af2f90f0297a3aa0 (diff)
downloadpoky-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