summaryrefslogtreecommitdiff
path: root/bubblewrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'bubblewrap.c')
-rw-r--r--bubblewrap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bubblewrap.c b/bubblewrap.c
index 9fa836d..1b75a48 100644
--- a/bubblewrap.c
+++ b/bubblewrap.c
@@ -805,7 +805,7 @@ static void
switch_to_user_with_privs (void)
{
/* If we're in a new user namespace, we got back the bounding set, clear it again */
- if (opt_unshare_user)
+ if (opt_unshare_user || opt_userns_fd != -1)
drop_cap_bounding_set (FALSE);
if (!is_privileged)