Skip to content

Commit

Permalink
Merge "run-as: Keep supplementary groups."
Browse files Browse the repository at this point in the history
  • Loading branch information
enh-google authored and Gerrit Code Review committed Sep 29, 2017
2 parents e808f92 + 8c27e19 commit e80beca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions run-as/run-as.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ int main(int argc, char* argv[]) {
ScopedMinijail j(minijail_new());
minijail_change_uid(j.get(), uid);
minijail_change_gid(j.get(), gid);
minijail_keep_supplementary_gids(j.get());
minijail_enter(j.get());

if (selinux_android_setcontext(uid, 0, info.seinfo, pkgname) < 0) {
Expand Down

0 comments on commit e80beca

Please sign in to comment.