[FYI,1/2] bitbake: no user namespace in disable_network

Message ID 20220607152531.3498370-2-adriaan.schmidt@siemens.com
State Superseded, archived
Headers show
Series Migration to bitbake 2.0 | expand

Commit Message

Schmidt, Adriaan June 7, 2022, 7:25 a.m. UTC
Signed-off-by: Adriaan Schmidt <adriaan.schmidt@siemens.com>
---
 bitbake/lib/bb/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index d11da97..05adb41 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -1618,7 +1618,7 @@  def disable_network(uid=None, gid=None):
     if gid is None:
         gid = os.getgid()
 
-    ret = libc.unshare(CLONE_NEWNET | CLONE_NEWUSER)
+    ret = libc.unshare(CLONE_NEWNET)
     if ret != 0:
         logger.debug("System doesn't suport disabling network without admin privs")
         return