Android-cuttlefish cvd tool
Functions
cvd_refresh_groups.cc File Reference
#include <grp.h>
#include <pwd.h>
#include <stdio.h>
#include <unistd.h>
Include dependency graph for cvd_refresh_groups.cc:

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Privileged executable that calls initgroups to refresh the secondary groups list. Comparable to sg, except that it doesn't update the primary group, and refreshes the entire list of secondary groups.

Necessary because Debian 13's sg no longer updates the secondary groups list.

Sample invocation:

cvd_refresh_groups /usr/bin/groups groups