Home
last modified time | relevance | path

Searched refs:gid (Results 1 – 25 of 115) sorted by relevance

12345

/base/startup/init/test/unittest/ueventd/
Dueventd_config_unittest.cpp47 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);
Dueventd_event_unittest.cpp201 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/
Dprint_utils_test.cpp66 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/
Dparam_dac.c48 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/
Dhilogd.cfg21 "gid" : ["log", "system", "readproc"],
31 "gid" : "log",
42 "gid" : "log",
53 "gid" : "log",
/base/startup/init/ueventd/include/
Dueventd_read_cfg.h31 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/
Dfaultloggerd.cfg18 "gid" : ["system", "log", "faultloggerd"],
26 "gid" : "system",
37 "gid" : "system",
/base/startup/init/test/unittest/param/
Dparamservice_unittest.cpp59 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 …]
Dparam_unittest.cpp83 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/
Dueventd.cfg6 "gid" : ["ueventd"],
14 "gid" : "system",
Dwatchdog.cfg9 "gid" : ["watchdog", "log", "readproc"],
/base/msdp/device_status/utils/common/src/
Dutility.cpp197 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/
Dnwebspawn.cfg9 "gid" : ["nwebspawn"],
18 "gid" : "nwebspawn",
/base/hiviewdfx/faultloggerd/services/config/bionic/
Dfaultloggerd.cfg21 "gid" : ["system", "log", "faultloggerd"],
29 "gid" : "system",
/base/hiviewdfx/faultloggerd/test/funchook/config/
Dfaultloggerd.cfg21 "gid" : ["system", "log", "faultloggerd"],
29 "gid" : "system",
/base/hiviewdfx/faultloggerd/test/funchook/config/bionic/
Dfaultloggerd.cfg21 "gid" : ["system", "log", "faultloggerd"],
29 "gid" : "system",
/base/startup/init/ueventd/
Dueventd_device_handler.c41 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()
Dueventd_read_cfg.c92 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/
Dparam_litedac.c26 security->cred.gid = 0; in InitLocalSecurityLabel()
30 security->cred.gid = 0; in InitLocalSecurityLabel()
/base/powermgr/thermal_manager/application/init/
Dthermal_protector.cfg7 "gid" : ["thermal", "shell"],
/base/powermgr/battery_manager/charger/resources/
Dinit.charger.cfg6 "gid" : ["charger", "power_host", "input_user_host", "graphics", "dev_vibrator"],
/base/startup/init/device_info/etc/
Ddeviceinfoservice.cfg6 "gid" : ["deviceinfo", "shell"],
/base/hiviewdfx/hicollie/frameworks/native/
Dwatchdog_task.cpp137 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/
Dsensors.cfg6 "gid" : ["sensor", "shell"],
/base/startup/init/test/exec_test/
Dfd_holder_test.cfg14 "gid" : "system"

12345