Lines Matching refs:group

1127  *		Optional simplified checking of group membership
1130 * /etc/group at initialization time.
1132 * setgroups() nor the changes in /etc/group since initialization
1137 * Should not be called for user root, however the group may be root
1166 * Check whether current thread owner is member of file group
1168 * Should not be called for user root, however the group may be root
1170 * The group list is available in "/proc/$PID/cred"
1180 gid_t pr_egid; /* effective group id */
1181 gid_t pr_rgid; /* real group id */
1182 gid_t pr_sgid; /* saved group id (from exec) */
1248 * Check whether current thread owner is member of file group
1250 * Should not be called for user root, however the group may be root
1254 * The group list is available in
1263 * The following implementation gets the group list from
1345 ntfs_log_error("No group record found in %s\n",filename);
1362 * it replaces the permission mask by the group permissions.
1372 const struct MAPPING* group;
1383 group = scx->mapping[MAPGROUPS];
1384 while (group && (group->xid != pace->id))
1385 group = group->next;
1386 if (group && group->grcnt
1387 && (*(group->groups) == (gid_t)pace->id))
1741 * Fetch owner, group and permission of a file, if cached
1968 /* root access if some group execution */
1999 * the group memberships. The groups are
2041 /* owning group */
2075 * Takes into account the relation of user to file (owner, group, ...)
2089 const SID *gsid; /* group of file/directory */
2114 securattr[le32_to_cpu(phead->group)];
2152 * fetch owner and group for cacheing
2191 const SID *gsid; /* group of file/directory */
2214 securattr[le32_to_cpu(phead->group)];
2225 * fetch owner and group for cacheing
2309 * Takes into account the relation of user to file (owner, group, ...)
2322 const SID *gsid; /* group of file/directory */
2346 securattr[le32_to_cpu(phead->group)];
2376 * fetch owner and group for cacheing
2403 * avoid checking group membership
2404 * when the requested perms for group
2448 * Get owner, group and permissions in an stat structure
2458 const SID *gsid; /* group of file/directory */
2492 securattr[le32_to_cpu(phead->group)];
2517 * fetch owner and group for cacheing
2602 securattr[le32_to_cpu(phead->group)];
2630 * fetch owner and group for cacheing
2706 ntfs_log_error("File created by an unmapped user/group %d/%d\n",
2763 ntfs_log_error("File created by an unmapped user/group %d/%d\n",
2845 ntfs_log_error("File created by an unmapped user/group %d/%d\n",
2950 ntfs_log_error("File made owned by an unmapped user/group %d/%d\n",
3138 gsid = (const SID*)&oldattr[le32_to_cpu(phead->group)];
3168 * clear setgid if file group does
3169 * not match process group
3315 gsid = (const SID*)&oldattr[le32_to_cpu(phead->group)];
3335 * clear setgid if file group does
3336 * not match process group
3388 * owner and group SIDs, but structure SID contain only one, so add
3414 sd->group = cpu_to_le32((u8*)sid - (u8*)sd);
3566 /* return directory group if S_ISGID is set */
3637 * Define a new owner/group to a file
3685 &oldattr[le32_to_cpu(phead->group)];
3717 /* or chgrp requested by owner to an owned group */
3761 * Define new owner/group and mode to a file
3817 &oldattr[le32_to_cpu(phead->group)];
3839 /* or chgrp requested by owner to an owned group */
3926 * user, we have to get owner and group from somewhere,
3946 offgroup = le32_to_cpu(pphead->group);
3953 * owner, group and possible grants and denials in
3954 * generic creator-owner and creator-group ACEs.
4014 * inherit or redefine group
4017 pnhead->group = cpu_to_le32(pos);
4036 * Note : the owner and group of parent directory are also
4095 * Link a group to a member of group
4103 struct group *group;
4110 group = getgrgid(gid);
4111 if (group && group->gr_mem) {
4114 grmem = group->gr_mem;
4138 * Statically link group to users
4139 * This is based on groups defined in /etc/group and does not take
4141 * /etc/group into account
4143 * Only mapped groups and root group are linked to mapped users
4376 ntfs_log_error("There were no valid user or no valid group\n");
4622 /* locate group if requested and available */
4623 offgroup = le32_to_cpu(phead->group);
4702 /* copy group if requested and available */
4704 pnhead->group = cpu_to_le32(pos);
4708 pnhead->group = const_cpu_to_le32(0);
4849 newhead->group : oldhead->group) {
4851 offgroup = le32_to_cpu(newhead->group);
4856 offgroup = le32_to_cpu(oldhead->group);
4863 targhead->group = cpu_to_le32(pos);
4866 targhead->group = const_cpu_to_le32(0);
4968 /* if selected, owner and group must be present or defaulted */
4973 && !phead->group
5260 * Get the mapped group SID
5312 * Get the group mapped to a SID