Skip to content

Commit

Permalink
fixup! Make setuid + no-unprivileged user namespaces work
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlarsson committed May 24, 2016
1 parent 2bdd130 commit df4ae62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bubblewrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ do_init (int event_fd, pid_t initial_pid)
}

/* low 32bit caps needed */
#define REQUIRED_CAPS_0 (CAP_TO_MASK (CAP_SYS_ADMIN) | CAP_TO_MASK (CAP_SYS_CHROOT) | CAP_TO_MASK (CAP_SETUID) | CAP_TO_MASK (CAP_SETGID))
#define REQUIRED_CAPS_0 (CAP_TO_MASK (CAP_SYS_ADMIN) | CAP_TO_MASK (CAP_SYS_CHROOT) | CAP_TO_MASK (CAP_NET_ADMIN) | CAP_TO_MASK (CAP_SETUID) | CAP_TO_MASK (CAP_SETGID))
/* high 32bit caps needed */
#define REQUIRED_CAPS_1 0

Expand Down

0 comments on commit df4ae62

Please sign in to comment.