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

12

/system/core/init/
H A Dinit_parser_test.cpp50 args.push_back("root"); // gid.
52 args.push_back("root"); // Supplementary gid.
60 bool gid, bool supplementary_gids) {
68 if (gid) {
69 args.push_back("shell"); // gid
71 args.push_back("system"); // supplementary gid 0
72 args.push_back("adb"); // supplementary gid 1
95 if (gid) {
96 ASSERT_EQ(decode_uid("shell"), svc->gid());
98 ASSERT_EQ(0U, svc->gid());
59 Test_make_exec_oneshot_service(bool dash_dash, bool seclabel, bool uid, bool gid, bool supplementary_gids) argument
[all...]
H A Ddescriptors.h28 gid_t gid, int perm, const std::string& context);
41 gid_t gid() const { return gid_; } function in class:DescriptorInfo
62 gid_t gid, int perm, const std::string& context);
72 gid_t gid, int perm, const std::string& context);
H A Ddescriptors.cpp35 gid_t gid, int perm, const std::string& context)
36 : name_(name), type_(type), uid_(uid), gid_(gid), perm_(perm), context_(context) {
72 gid_t gid, int perm, const std::string& context)
73 : DescriptorInfo(name, type, uid, gid, perm, context) {
84 return create_socket(name().c_str(), flags, perm(), uid(), gid(), context.c_str());
92 gid_t gid, int perm, const std::string& context)
94 : DescriptorInfo(name, type, uid, gid, perm, context) {
34 DescriptorInfo(const std::string& name, const std::string& type, uid_t uid, gid_t gid, int perm, const std::string& context) argument
71 SocketInfo(const std::string& name, const std::string& type, uid_t uid, gid_t gid, int perm, const std::string& context) argument
91 FileInfo(const std::string& name, const std::string& type, uid_t uid, gid_t gid, int perm, const std::string& context) argument
H A Dueventd.cpp103 gid_t gid; local
152 LOG(ERROR) << "invalid gid '" << args[3] << "'";
155 gid = grp->gr_gid;
157 if (add_dev_perms(name, attr, perm, uid, gid, prefix, wildcard) != 0) {
161 ", uid=" << uid << ", gid=" << gid <<
H A Dservice.h71 Service(const std::string& name, unsigned flags, uid_t uid, gid_t gid,
98 gid_t gid() const { return gid_; } function in class:Service
H A Dutil.cpp78 * numeric or name representation, into the integer uid or gid. Returns
96 gid_t gid, const char *socketcon)
143 if (lchown(addr.sun_path, uid, gid)) {
155 << ", group " << gid;
95 create_socket(const char *name, int type, mode_t perm, uid_t uid, gid_t gid, const char *socketcon) argument
/system/core/libcutils/include/private/
H A Dfs_config.h32 uint16_t gid; member in struct:fs_path_config_from_file
/system/core/libcutils/include_vndk/private/
H A Dfs_config.h32 uint16_t gid; member in struct:fs_path_config_from_file
/system/core/libprocinfo/include/procinfo/
H A Dprocess.h45 uid_t gid; member in struct:android::procinfo::ProcessInfo
/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/libcutils/
H A Dcanned_fs_config.c30 unsigned gid; member in struct:__anon1517
64 p->gid = atoi(strtok(NULL, " "));
90 unsigned* uid, unsigned* gid, unsigned* mode, uint64_t* capabilities) {
101 *gid = p->gid;
114 if (c_gid != *gid) printf("%s gid %d %d\n", path, *gid, c_gid);
89 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.c296 void fs_config(const char* path, int dir, const char* target_out_path, unsigned* uid, unsigned* gid, argument
341 *gid = get2LE((const uint8_t*)&(header.gid));
357 *gid = pc->gid;
374 p->gid = get2LE((const uint8_t*)&(pc->gid));
/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/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::__anon1402
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/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/libprocessgroup/
H A Dprocessgroup.cpp321 static bool mkdirAndChown(const char *path, mode_t mode, uid_t uid, gid_t gid) argument
327 if (chown(path, uid, gid) == -1) {
/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 311 milliseconds

12