public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Adriaan Schmidt <adriaan.schmidt@siemens.com>
To: <isar-users@googlegroups.com>
Cc: Adriaan Schmidt <adriaan.schmidt@siemens.com>
Subject: [FYI 1/2] bitbake: no user namespace in disable_network
Date: Tue, 7 Jun 2022 17:25:30 +0200	[thread overview]
Message-ID: <20220607152531.3498370-2-adriaan.schmidt@siemens.com> (raw)
In-Reply-To: <20220607152531.3498370-1-adriaan.schmidt@siemens.com>

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

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
-- 
2.30.2


  reply	other threads:[~2022-06-07 15:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-07 15:25 [FYI 0/2] Migration to bitbake 2.0 Adriaan Schmidt
2022-06-07 15:25 ` Adriaan Schmidt [this message]
2022-06-07 15:25 ` [FYI 2/2] migrate Isar " Adriaan Schmidt
2022-06-07 15:46 ` [FYI 0/2] Migration " Anton Mikanovich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220607152531.3498370-2-adriaan.schmidt@siemens.com \
    --to=adriaan.schmidt@siemens.com \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox