/base/startup/init/test/unittest/ueventd/ |
D | ueventd_config_unittest.cpp | 47 gid_t gid = 0; variable 49 GetDeviceNodePermissions("/dev/test", &uid, &gid, &mode); 51 EXPECT_EQ(gid, 1000); 54 gid = 999; 58 GetDeviceNodePermissions("/dev/test1", &uid, &gid, &mode); 60 EXPECT_EQ(gid, 999); 64 GetDeviceNodePermissions("/dev/test2", &uid, &gid, &mode); 66 EXPECT_EQ(gid, 999);
|
D | ueventd_event_unittest.cpp | 201 ueventdBuffer.append(std::string("DEVGID=") + std::to_string(uevent.ug.gid) + '\000'); in GenerateUeventBuffer() 246 .gid = 0, 267 EXPECT_EQ(outEvent.ug.gid, 0); 329 .gid = 0, 359 .gid = 0, 391 .gid = 0, 507 .gid = 0, 527 EXPECT_EQ(outEvent.ug.gid, 0); 546 .gid = 0, 566 EXPECT_EQ(outEvent.ug.gid, 0); [all …]
|
/base/print/print_fwk/test/unittest/fwk_inner_napi_test/ |
D | print_utils_test.cpp | 66 std::string gid = "com.sample.ext"; variable 68 std::string result = PrintUtils::GetExtensionId(gid); 80 std::string gid = "com.sample.ext:1234"; variable 82 std::string result = PrintUtils::GetExtensionId(gid); 109 std::string gid = "com.sample.ext"; variable 112 std::string result = PrintUtils::GetLocalId(gid, id); 124 std::string gid = "com.sample.ext:1234"; variable 127 std::string result = PrintUtils::GetLocalId(gid, id); 139 std::string gid = "com.sample.ext:1234"; variable 142 std::string result = PrintUtils::GetLocalId(gid, id); [all …]
|
/base/startup/init/services/param/adapter/ |
D | param_dac.c | 49 static void GetGroupIdByName(gid_t *gid, const char *name) in GetGroupIdByName() argument 51 *gid = -1; in GetGroupIdByName() 54 *gid = data->gr_gid; in GetGroupIdByName() 59 *gid = data->gr_gid; in GetGroupIdByName() 94 GetGroupIdByName(&dacData->gid, name); in GetParamDacData() 117 security->cred.gid = getegid(); in InitLocalSecurityLabel() 128 static int DacGetGroupMember(gid_t gid, uid_t *member, uint32_t *memberSize) in DacGetGroupMember() argument 132 struct group *data = getgrgid(gid); in DacGetGroupMember() 146 PARAM_LOGE("Not enough memory for uid member %u", gid); in DacGetGroupMember() 164 auditData->dacData.gid = -1; in LoadOneParam_() [all …]
|
/base/hiviewdfx/hilog/services/hilogd/etc/ |
D | hilogd.cfg | 21 "gid" : ["log", "system", "readproc"], 31 "gid" : "log", 42 "gid" : "log", 53 "gid" : "log",
|
/base/startup/init/ueventd/include/ |
D | ueventd_read_cfg.h | 31 gid_t gid; member 43 gid_t gid; member 56 int GetDeviceNodePermissions(const char *devNode, uid_t *uid, gid_t *gid, mode_t *mode);
|
/base/hiviewdfx/faultloggerd/services/config/ |
D | faultloggerd.cfg | 25 "gid" : ["system", "log", "faultloggerd", "readproc"], 33 "gid" : "system", 44 "gid" : "system", 55 "gid" : "system",
|
/base/startup/init/test/unittest/param/ |
D | paramservice_unittest.cpp | 58 GetParamSecurityLabel()->cred.gid = 1000; // 1000 test gid in SetUp() 83 GetParamSecurityLabel()->cred.gid = 9999; // 9999 test gid in TestAddSecurityLabel1() 96 EXPECT_EQ(node->gid, 0); in TestAddSecurityLabel1() 103 GetParamSecurityLabel()->cred.gid = 9999; // 9999 test gid in TestAddSecurityLabel2() 108 auditData.dacData.gid = 202; // 202 test dac gid in TestAddSecurityLabel2() 121 EXPECT_EQ(node->gid, auditData.dacData.gid); in TestAddSecurityLabel2() 128 GetParamSecurityLabel()->cred.gid = 9999; // 9999 test gid in TestAddSecurityLabel3() 133 auditData.dacData.gid = 203; // 203 test gid in TestAddSecurityLabel3() 140 auditData.dacData.gid = 202; // 202 test dac gid in TestAddSecurityLabel3() 154 EXPECT_EQ((int)node->gid, 203); // 203 test gid in TestAddSecurityLabel3() [all …]
|
D | param_unittest.cpp | 81 GetParamSecurityLabel()->cred.gid = 9999; // 9999 test gid in TestAddSecurityLabel1() 94 EXPECT_EQ(node->gid, DAC_DEFAULT_GROUP); in TestAddSecurityLabel1() 101 GetParamSecurityLabel()->cred.gid = 9999; // 9999 test gid in TestAddSecurityLabel2() 106 auditData.dacData.gid = 202; // 202 test dac gid in TestAddSecurityLabel2() 119 EXPECT_EQ(node->gid, auditData.dacData.gid); in TestAddSecurityLabel2() 126 GetParamSecurityLabel()->cred.gid = 9999; // 9999 test gid in TestAddSecurityLabel3() 131 auditData.dacData.gid = 203; // 203 test gid in TestAddSecurityLabel3() 138 auditData.dacData.gid = 202; // 202 test dac gid in TestAddSecurityLabel3() 152 EXPECT_EQ((int)node->gid, 203); // 203 test gid in TestAddSecurityLabel3() 162 GetParamSecurityLabel()->cred.gid = 9999; // 9999 test gid in TestAddSecurityLabel4() [all …]
|
/base/startup/appspawn/modules/common/ |
D | appspawn_common.c | 225 gid_t gid = dacInfo->gid / UID_BASE; in SetUidGid() local 226 if (gid >= 100) { // 100 in SetUidGid() 227 APPSPAWN_LOGE("SetUidGid invalid uid for nwebspawn %{public}d", dacInfo->gid); in SetUidGid() 230 ret = setresgid(dacInfo->gid, dacInfo->gid, dacInfo->gid); in SetUidGid() 232 ret = setresgid(dacInfo->gid, dacInfo->gid, dacInfo->gid); in SetUidGid() 235 "setgid(%{public}u) failed: %{public}d", dacInfo->gid, errno); in SetUidGid()
|
/base/startup/init/services/etc/ |
D | ueventd.cfg | 6 "gid" : ["ueventd"], 14 "gid" : "system",
|
D | watchdog.cfg | 9 "gid" : ["watchdog", "log", "readproc"],
|
/base/msdp/device_status/utils/common/src/ |
D | utility.cpp | 205 gid_t gid = getgid(); in ShowUserAndGroup() local 206 if (getgrgid_r(gid, &grp, buffer, sizeof(buffer), &pgrp) != 0) { in ShowUserAndGroup() 209 FI_HILOGD("%{public}20s:%{public}10u%{public}20s", "GROUP", gid, grp.gr_name); in ShowUserAndGroup() 219 gid = getegid(); in ShowUserAndGroup() 220 if (getgrgid_r(gid, &grp, buffer, sizeof(buffer), &pgrp) != 0) { in ShowUserAndGroup() 223 FI_HILOGD("%{public}20s:%{public}10u%{public}20s", "EFFECTIVE GROUP", gid, grp.gr_name); in ShowUserAndGroup()
|
/base/startup/appspawn/ |
D | appspawn.cfg | 36 "gid" : ["root"], 44 "gid" : "appspawn", 55 "gid" : "nwebspawn",
|
/base/hiviewdfx/faultloggerd/services/config/bionic/ |
D | faultloggerd.cfg | 21 "gid" : ["system", "log", "faultloggerd"], 29 "gid" : "system",
|
/base/hiviewdfx/faultloggerd/test/funchook/config/ |
D | faultloggerd.cfg | 21 "gid" : ["system", "log", "faultloggerd"], 29 "gid" : "system",
|
/base/hiviewdfx/faultloggerd/test/funchook/config/bionic/ |
D | faultloggerd.cfg | 21 "gid" : ["system", "log", "faultloggerd"], 29 "gid" : "system",
|
/base/startup/init/ueventd/ |
D | ueventd_device_handler.c | 41 static inline void AdjustDeviceNodePermissions(const char *deviceNode, uid_t uid, gid_t gid, mode_t… in AdjustDeviceNodePermissions() argument 46 if (chown(deviceNode, uid, gid) != 0) { in AdjustDeviceNodePermissions() 62 gid_t gid = 0; in CreateSymbolLinks() local 70 int res = GetDeviceNodePermissions(linkName, &uid, &gid, &mode); in CreateSymbolLinks() 71 INIT_CHECK(res != 0, AdjustDeviceNodePermissions(deviceNode, uid, gid, mode)); in CreateSymbolLinks() 154 gid_t gid = uevent->ug.gid; in CreateDeviceNode() local 180 (void)GetDeviceNodePermissions(deviceNode, &uid, &gid, &mode); in CreateDeviceNode() 191 AdjustDeviceNodePermissions(deviceNode, uid, gid, mode); in CreateDeviceNode()
|
D | ueventd_read_cfg.c | 93 config->gid = (gid_t)DecodeGid(items[3]); // gid in ParseDeviceConfig() 136 config->gid = (gid_t)DecodeGid(items[4]); // gid in ParseSysfsConfig() 349 int GetDeviceNodePermissions(const char *devNode, uid_t *uid, gid_t *gid, mode_t *mode) in GetDeviceNodePermissions() argument 361 *gid = config->gid; in GetDeviceNodePermissions() 397 if (chown(sysAttr, config->uid, config->gid) < 0) { in ChangeSysAttributePermissions()
|
/base/startup/init/services/etc/passwd_appender/ |
D | passwd_appender.py | 112 gid = int(passwdInfo[3], 10) 114 if gid >= int(limits[0]) and gid <= int(limits[1]): 118 log_str = "error: name={} gid={} is not in range {}".format(name, gid, limits) 125 log_str = "error: name={} uid={} is not in range {}".format(name, gid, limits)
|
/base/startup/init/services/param/liteos/ |
D | param_litedac.c | 26 security->cred.gid = 0; in InitLocalSecurityLabel() 30 security->cred.gid = 0; in InitLocalSecurityLabel()
|
/base/powermgr/thermal_manager/application/init/ |
D | thermal_protector.cfg | 7 "gid" : ["thermal", "shell"],
|
/base/startup/init/services/param/include/ |
D | param_security.h | 59 gid_t gid; member 79 gid_t gid; member
|
/base/startup/init/device_info/etc/ |
D | deviceinfoservice.cfg | 6 "gid" : ["deviceinfo", "shell"],
|
/base/powermgr/battery_manager/charger/resources/ |
D | init.charger.cfg | 6 "gid" : ["charger", "power_host", "input_user_host", "graphics", "dev_vibrator"],
|