Searched defs:gid (Results 1 - 25 of 41) sorted by relevance

12

/system/core/libcutils/include/private/
H A Dfs_config.h46 uint16_t gid; member in struct:fs_path_config_from_file
54 unsigned gid; member in struct:fs_path_config
73 void fs_config(const char* path, int dir, const char* target_out_path, unsigned* uid, unsigned* gid,
/system/core/init/
H A Dinit_parser_test.cpp52 args.push_back("root"); // gid.
54 args.push_back("root"); // Supplementary gid.
62 bool gid, bool supplementary_gids) {
70 if (gid) {
71 args.push_back("shell"); // gid
73 args.push_back("system"); // supplementary gid 0
74 args.push_back("adb"); // supplementary gid 1
100 if (gid) {
104 ASSERT_EQ(decoded_uid, svc->gid());
106 ASSERT_EQ(0U, svc->gid());
61 Test_make_exec_oneshot_service(bool dash_dash, bool seclabel, bool uid, bool gid, bool supplementary_gids) argument
[all...]
H A Ddescriptors.h31 gid_t gid, int perm, const std::string& context);
44 gid_t gid() const { return gid_; } function in class:android::init::DescriptorInfo
65 gid_t gid, int perm, const std::string& context);
75 gid_t gid, int perm, const std::string& context);
H A Dueventd_test.cpp73 gid_t gid = 0; local
75 std::generate_n(std::back_inserter(files_and_gids), 100, [&gid, &dir]() {
76 gid++;
77 return std::pair(dir.path + "/gid_"s + std::to_string(gid), gid);
80 WriteFromMultipleThreads(files_and_gids, [](gid_t gid) { EXPECT_EQ(0, setegid(gid)); });
H A Ddescriptors.cpp38 gid_t gid, int perm, const std::string& context)
39 : name_(name), type_(type), uid_(uid), gid_(gid), perm_(perm), context_(context) {
75 gid_t gid, int perm, const std::string& context)
76 : DescriptorInfo(name, type, uid, gid, perm, context) {
89 return CreateSocket(name().c_str(), flags, passcred, perm(), uid(), gid(), context.c_str(),
98 gid_t gid, int perm, const std::string& context)
100 : DescriptorInfo(name, type, uid, gid, perm, context) {
37 DescriptorInfo(const std::string& name, const std::string& type, uid_t uid, gid_t gid, int perm, const std::string& context) argument
74 SocketInfo(const std::string& name, const std::string& type, uid_t uid, gid_t gid, int perm, const std::string& context) argument
97 FileInfo(const std::string& name, const std::string& type, uid_t uid, gid_t gid, int perm, const std::string& context) argument
H A Ddevices.h37 Permissions(const std::string& name, mode_t perm, uid_t uid, gid_t gid);
43 gid_t gid() const { return gid_; } function in class:android::init::Permissions
60 gid_t gid)
61 : Permissions(name, perm, uid, gid), attribute_(attribute) {}
59 SysfsPermissions(const std::string& name, const std::string& attribute, mode_t perm, uid_t uid, gid_t gid) argument
H A Dueventd_parser.cpp47 // args is now common to both sys and dev entries and contains: <perm> <uid> <gid>
67 *err = "invalid gid '" + gid_string + "'";
70 gid_t gid = grp->gr_gid; local
73 out_sysfs_permissions->emplace_back(name, sysfs_attribute, perm, uid, gid);
75 out_dev_permissions->emplace_back(name, perm, uid, gid);
H A Ddevices.cpp104 Permissions::Permissions(const std::string& name, mode_t perm, uid_t uid, gid_t gid) argument
105 : name_(name), perm_(perm), uid_(uid), gid_(gid), prefix_(false), wildcard_(false) {
146 LOG(VERBOSE) << "fixup " << attribute_file << " " << uid() << " " << gid() << " " << std::oct
150 if (chown(attribute_file.c_str(), uid(), gid()) != 0) {
151 PLOG(ERROR) << "chown(" << attribute_file << ", " << uid() << ", " << gid()
215 return {it->perm(), it->uid(), it->gid()};
224 auto[mode, uid, gid] = GetDevicePermissions(path, links);
242 /* Temporarily change egid to avoid race condition setting the gid of the
245 * racy. Fixing the gid race at least fixed the issue with system_server
246 * opening dynamic input devices under the AID_INPUT gid
[all...]
/system/extras/ext4_utils/
H A Dcontents.h31 u16 gid; member in struct:dentry
42 int inode_set_permissions(u32 inode_num, u16 mode, u16 uid, u16 gid, u32 mtime);
/system/extras/su/
H A Dsu.cpp30 void pwtoid(const char* tok, uid_t* uid, gid_t* gid) { argument
34 if (gid) *gid = pw->pw_gid;
39 if (errno != 0 || end == tok) error(1, errno, "invalid uid/gid '%s'", tok);
41 if (gid) *gid = tmpid;
45 void extract_uidgids(const char* uidgids, uid_t* uid, gid_t* gid, gid_t* gids, int* gids_count) { argument
52 *gid = *uid = 0;
61 pwtoid(tok, uid, gid);
64 /* gid i
103 gid_t gid = 0; local
[all...]
/system/core/libpackagelistparser/
H A Dpackagelistparser.c60 gid_t gid; local
71 gid = strtoul(token, &endptr, 10);
80 if (gid > GID_MAX) {
81 CLOGE("A gid in field \"gid list\" greater than GID_MAX");
85 gid_list[cmp++] = gid;
201 errmsg = "Could not get next token for field \"gid(s)\"";
206 * Parse the gid list, could be in the form of none, single gid or list:
208 * gid
[all...]
/system/core/libprocinfo/include/procinfo/
H A Dprocess.h55 uid_t gid; member in struct:android::procinfo::ProcessInfo
/system/core/logd/
H A DLogCommand.cpp60 bool clientHasLogCredentials(uid_t uid, gid_t gid, pid_t pid) { argument
65 if ((gid == AID_ROOT) || (gid == AID_SYSTEM) || (gid == AID_LOG)) {
130 if ((gid == g[0]) && (gid == g[1]) && (gid == g[2]) &&
131 (gid == g[3])) {
/system/core/run-as/
H A Drun-as.cpp78 // Must be owned by specific uid/gid.
193 uid_t gid = userAppId; local
196 minijail_change_gid(j.get(), gid);
/system/extras/runconuid/
H A Drunconuid.cpp43 static gid_t gid = -1; variable
64 if (gid != (gid_t) -1 && setresgid(gid, gid, gid) < 0) {
142 gid = lookup_gid(optarg);
/system/core/adb/
H A Dfile_sync_service.h59 uint32_t gid; member in struct:syncmsg::__anon1434
H A Dfile_sync_service.cpp75 gid_t gid = -1; local
88 fs_config(partial_path.c_str(), 1, nullptr, &uid, &gid, &mode, &capabilities);
95 if (chown(partial_path.c_str(), uid, gid) == -1) return false;
139 msg.stat_v2.gid = st.st_gid;
201 static bool handle_send_file(int s, const char* path, uid_t uid, gid_t gid, uint64_t capabilities, argument
223 if (fchown(fd, uid, gid) == -1) {
397 gid_t gid = -1; local
401 fs_config(path.c_str(), 0, nullptr, &uid, &gid, &broken_api_hack, &capabilities);
404 return handle_send_file(s, path.c_str(), uid, gid, capabilities, mode, buffer, do_unlink);
/system/core/libcutils/
H A Dcanned_fs_config.c32 unsigned gid; member in struct:__anon1538
70 p->gid = atoi(strtok(NULL, " "));
96 unsigned* uid, unsigned* gid, unsigned* mode, uint64_t* capabilities) {
107 *gid = p->gid;
120 if (c_gid != *gid) printf("%s gid %d %d\n", path, *gid, c_gid);
95 canned_fs_config(const char* path, int dir, const char* target_out_path, unsigned* uid, unsigned* gid, unsigned* mode, uint64_t* capabilities) argument
H A Dfs.c41 static int fs_prepare_path_impl(const char* path, mode_t mode, uid_t uid, gid_t gid, argument
62 int owner_match = ((sb.st_uid == uid) && (sb.st_gid == gid));
71 path, uid, gid, sb.st_uid, sb.st_gid);
101 if (TEMP_FAILURE_RETRY(chown(path, uid, gid)) == -1) {
102 ALOGE("Failed to chown(%s, %d, %d): %s", path, uid, gid, strerror(errno));
109 int fs_prepare_dir(const char* path, mode_t mode, uid_t uid, gid_t gid) { argument
110 return fs_prepare_path_impl(path, mode, uid, gid, /*allow_fixup*/ 1, /*prepare_as_dir*/ 1);
113 int fs_prepare_dir_strict(const char* path, mode_t mode, uid_t uid, gid_t gid) { argument
114 return fs_prepare_path_impl(path, mode, uid, gid, /*allow_fixup*/ 0, /*prepare_as_dir*/ 1);
117 int fs_prepare_file_strict(const char* path, mode_t mode, uid_t uid, gid_t gid) { argument
[all...]
H A Dfs_config.cpp305 void fs_config(const char* path, int dir, const char* target_out_path, unsigned* uid, unsigned* gid, argument
350 *gid = get2LE((const uint8_t*)&(header.gid));
366 *gid = pc->gid;
383 p->gid = get2LE((const uint8_t*)&(pc->gid));
/system/netd/server/
H A DWakeupControllerTest.cpp40 void(const std::string& prefix, uid_t uid, gid_t gid, uint64_t timestampNs));
70 [this](const std::string& prefix, uid_t uid, gid_t gid, uint64_t timestampNs) { variable
71 mEventListener.onWakeupEvent(prefix, uid, gid, timestampNs);
90 gid_t gid; member in struct:android::net::Msg
102 msg.gidAttr.nla_len = sizeof(msg.gidAttr) + sizeof(msg.gid);
103 msg.gid = htobe32(kGid);
134 gid_t gid; member in struct:android::net::Msg
151 msg.gidAttr.nla_len = sizeof(msg.gidAttr) + sizeof(msg.gid);
152 msg.gid = htobe32(kGid);
/system/core/cpio/
H A Dmkbootfs.c40 int uid, gid, mode; member in struct:fs_config_entry
47 * gid, mode). */
63 // Use the list of file uid/gid/modes loaded from the file
74 s->st_gid = p->gid;
80 s->st_gid = empty_path_config->gid;
316 cc->gid = atoi(strtok(NULL, " \n"));
/system/core/liblog/
H A Dlogger_write.c62 gid_t gid = getgid(); local
63 if ((gid != AID_SYSTEM) && (gid != AID_ROOT) && (gid != AID_LOG)) {
64 gid = getegid();
65 if ((gid != AID_SYSTEM) && (gid != AID_ROOT) && (gid != AID_LOG)) {
/system/core/sdcard/
H A Dfuse.h146 gid_t gid; member in struct:fuse_global
189 gid_t gid; member in struct:fuse
/system/nfc/halimpl/bcm2079x/hal/hal/
H A Dnfc_hal_nci.c498 uint8_t mt, pbf, gid, op_code; local
523 NCI_MSG_PRS_HDR0(p, mt, pbf, gid);
537 if (gid == NCI_GID_PROP) /* this is for hci netwk ntf */
547 if (gid == NCI_GID_RF_MANAGE) {
564 else if (gid == NCI_GID_CORE) {
630 uint8_t mt, pbf, gid, op_code; local
637 NCI_MSG_PRS_HDR0(p, mt, pbf, gid);
640 if (gid == NCI_GID_CORE) {

Completed in 1821 milliseconds

12