/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 | 48 static void GetGroupIdByName(gid_t *gid, const char *name) in GetGroupIdByName() argument 50 *gid = -1; in GetGroupIdByName() 53 *gid = data->gr_gid; in GetGroupIdByName() 58 *gid = data->gr_gid; in GetGroupIdByName() 93 GetGroupIdByName(&dacData->gid, name); in GetParamDacData() 116 security->cred.gid = getegid(); in InitLocalSecurityLabel() 130 auditData.dacData.gid = -1; in LoadOneParam_() 135 if (INVALID_UID(auditData.dacData.gid) || INVALID_UID(auditData.dacData.uid)) { in LoadOneParam_() 136 …PARAM_LOGW("Invalid dac for '%s' gid %d uid %d", name, auditData.dacData.gid, auditData.dacData.ui… in LoadOneParam_() 241 static void AddGroupUser(const char *userName, gid_t gid) in AddGroupUser() argument [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 | 18 "gid" : ["system", "log", "faultloggerd"], 26 "gid" : "system", 37 "gid" : "system",
|
/base/startup/init/test/unittest/param/ |
D | paramservice_unittest.cpp | 59 GetParamSecurityLabel()->cred.gid = 1000; // 1000 test gid in SetUp() 84 GetParamSecurityLabel()->cred.gid = 9999; // 9999 test gid in TestAddSecurityLabel1() 97 EXPECT_EQ(node->gid, 0); in TestAddSecurityLabel1() 104 GetParamSecurityLabel()->cred.gid = 9999; // 9999 test gid in TestAddSecurityLabel2() 109 auditData.dacData.gid = 202; // 202 test dac gid in TestAddSecurityLabel2() 122 EXPECT_EQ(node->gid, auditData.dacData.gid); in TestAddSecurityLabel2() 129 GetParamSecurityLabel()->cred.gid = 9999; // 9999 test gid in TestAddSecurityLabel3() 134 auditData.dacData.gid = 203; // 203 test gid in TestAddSecurityLabel3() 141 auditData.dacData.gid = 202; // 202 test dac gid in TestAddSecurityLabel3() 155 EXPECT_EQ((int)node->gid, 203); // 203 test gid in TestAddSecurityLabel3() [all …]
|
D | param_unittest.cpp | 83 GetParamSecurityLabel()->cred.gid = 9999; // 9999 test gid in TestAddSecurityLabel1() 96 EXPECT_EQ(node->gid, DAC_DEFAULT_GROUP); 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() 164 GetParamSecurityLabel()->cred.gid = 9999; // 9999 test gid in TestAddSecurityLabel4() [all …]
|
/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 | 197 gid_t gid = getgid(); in ShowUserAndGroup() local 198 if (getgrgid_r(gid, &grp, buffer, sizeof(buffer), &pgrp) != 0) { in ShowUserAndGroup() 201 FI_HILOGD("%{public}20s:%{public}10u%{public}20s", "GROUP", gid, grp.gr_name); in ShowUserAndGroup() 211 gid = getegid(); in ShowUserAndGroup() 212 if (getgrgid_r(gid, &grp, buffer, sizeof(buffer), &pgrp) != 0) { in ShowUserAndGroup() 215 FI_HILOGD("%{public}20s:%{public}10u%{public}20s", "EFFECTIVE GROUP", gid, grp.gr_name); in ShowUserAndGroup()
|
/base/startup/appspawn/ |
D | nwebspawn.cfg | 9 "gid" : ["nwebspawn"], 18 "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 | 92 config->gid = (gid_t)DecodeGid(items[3]); // gid in ParseDeviceConfig() 132 config->gid = (gid_t)DecodeGid(items[4]); // gid in ParseSysfsConfig() 344 int GetDeviceNodePermissions(const char *devNode, uid_t *uid, gid_t *gid, mode_t *mode) in GetDeviceNodePermissions() argument 356 *gid = config->gid; in GetDeviceNodePermissions() 392 if (chown(sysAttr, config->uid, config->gid) < 0) { in ChangeSysAttributePermissions()
|
/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/powermgr/battery_manager/charger/resources/ |
D | init.charger.cfg | 6 "gid" : ["charger", "power_host", "input_user_host", "graphics", "dev_vibrator"],
|
/base/startup/init/device_info/etc/ |
D | deviceinfoservice.cfg | 6 "gid" : ["deviceinfo", "shell"],
|
/base/hiviewdfx/hicollie/frameworks/native/ |
D | watchdog_task.cpp | 137 uint32_t gid = getgid(); in SendEvent() local 145 "TGID", gid, in SendEvent() 157 uint32_t gid = getgid(); in SendXCollieEvent() local 164 "TGID", gid, in SendXCollieEvent()
|
/base/sensors/start/etc/init/ |
D | sensors.cfg | 6 "gid" : ["sensor", "shell"],
|
/base/startup/init/test/exec_test/ |
D | fd_holder_test.cfg | 14 "gid" : "system"
|