Searched refs:groups (Results 1 - 18 of 18) sorted by relevance

/system/extras/runconuid/
H A Drunconuid.cpp25 -G List of groups by name or numeric value
44 static gid_t* groups = nullptr; variable
60 if (ngroups && setgroups(ngroups, groups) < 0) {
61 perror_exit("Setting supplementary groups failed.");
111 // Count the number of groups
123 groups = (gid_t*)calloc(ngroups, sizeof(gid_t));
128 groups[n] = lookup_gid(group);
/system/netd/server/
H A DNetlinkManager.h63 NetlinkHandler* setupSocket(int *sock, int netlinkFamily, int groups,
H A DNetlinkManager.cpp72 int groups, int format, bool configNflog) {
82 nladdr.nl_groups = groups;
71 setupSocket(int *sock, int netlinkFamily, int groups, int format, bool configNflog) argument
/system/extras/ext4_utils/
H A Dext4_utils.c124 the sparse_super feature, only block groups 0, 1, and powers of 3, 5,
125 and 7 have backup superblocks. Otherwise, all block groups have backup
180 for (i = 1; i < aux_info.groups; i++) {
208 aux_info.groups = DIV_ROUND_UP(aux_info.len_blocks - aux_info.first_data_block,
215 DIV_ROUND_UP(aux_info.groups * sizeof(struct ext2_group_desc),
222 if (ext4_bg_has_super_block(aux_info.groups - 1))
225 if (aux_info.groups <= 1 && last_group_size < last_header_size) {
229 aux_info.groups--;
255 aux_info.backup_sb = calloc(aux_info.groups, sizeof(char *));
270 for (i=0; i<aux_info.groups;
[all...]
H A Dallocate.c337 aux_info.bgs = calloc(sizeof(struct block_group_info), aux_info.groups);
341 for (i = 0; i < aux_info.groups; i++)
349 for (i = 0; i < aux_info.groups; i++) {
379 for (i = 0; i < aux_info.groups; i++) {
459 /* Allocate len blocks. The blocks may be spread across multiple block groups,
749 for (bg = 0; bg < aux_info.groups; bg++) {
H A Dmake_ext4fs.c570 for(i = 0; i < aux_info.groups; i++) {
692 for (i = 0; i < aux_info.groups; i++) {
824 printf(" Block groups: %d\n", aux_info.groups);
H A Dext4fixup.c308 for (i = 0; i < aux_info.groups; i++) {
/system/core/adb/daemon/
H A Dmain.cpp100 // Add extra groups:
111 gid_t groups[] = {AID_ADB, AID_LOG, AID_INPUT, AID_INET, local
114 minijail_set_supplementary_gids(jail.get(), arraysize(groups), groups);
/system/connectivity/wificond/net/
H A Dnetlink_manager.cpp173 // Exract multicast groups.
176 vector<NL80211NestedAttr> groups; local
177 if (!multicast_groups.GetListOfNestedAttributes(&groups)) {
180 for (auto& group : groups) {
189 message_types_[family_name].groups[group_name] = group_id;
446 auto groups = message_types_[NL80211_GENL_NAME].groups; local
447 if (groups.find(group) == groups.end()) {
451 uint32_t group_id = groups[grou
[all...]
H A Dnetlink_manager.h44 // Multicast groups supported by the family. The string and mapping to
46 std::map<std::string, uint32_t> groups; member in struct:android::wificond::MessageType
/system/core/logd/
H A Dmain.cpp145 gid_t groups[] = { AID_READPROC }; local
147 if (setgroups(arraysize(groups), groups) == -1) {
148 android::prdebug("failed to set AID_READPROC groups");
245 gid_t groups[] = { local
249 if (setgroups(arraysize(groups), groups) == -1) {
251 "logd.daemon: failed to set AID_SYSTEM AID_PACKAGE_INFO groups");
/system/core/liblog/
H A Dlogger_write.c67 gid_t* groups; local
73 groups = calloc(num_groups, sizeof(gid_t));
74 if (!groups) {
77 num_groups = getgroups(num_groups, groups);
79 if (groups[num_groups - 1] == AID_LOG) {
84 free(groups);
/system/extras/ext4_utils/include/ext4_utils/
H A Dext4_utils.h113 u32 groups; member in struct:fs_aux_info
/system/bt/tools/mcap_tool/
H A Dmcap_tool.cc88 static gid_t groups[] = {AID_NET_BT, AID_INET, AID_NET_BT_ADMIN, variable
209 setgroups(sizeof(groups) / sizeof(groups[0]), groups); local
/system/vold/
H A DEncryptInplace.cpp204 for (i = 0; i < aux_info.groups; ++i) {
333 for (i = 0; i < aux_info.groups; ++i) {
349 SLOGE("Error encrypting groups");
/system/vold/bench/
H A Dbenchgen.py119 time, call, args, ret = line.groups()
/system/core/init/
H A Dinit.cpp1024 gid_t groups[] = { AID_READPROC }; local
1025 setgroups(arraysize(groups), groups); local
/system/core/liblog/tests/
H A Dliblog_test.cpp2011 gid_t groups[num_groups]; local
2012 num_groups = getgroups(num_groups, groups);
2014 if (groups[num_groups - 1] == AID_LOG) {

Completed in 439 milliseconds