Lines Matching refs:group

1120  *		Optional simplified checking of group membership
1123 * /etc/group at initialization time.
1125 * setgroups() nor the changes in /etc/group since initialization
1130 * Should not be called for user root, however the group may be root
1159 * Check whether current thread owner is member of file group
1161 * Should not be called for user root, however the group may be root
1163 * The group list is available in "/proc/$PID/cred"
1173 gid_t pr_egid; /* effective group id */
1174 gid_t pr_rgid; /* real group id */
1175 gid_t pr_sgid; /* saved group id (from exec) */
1234 * Check whether current thread owner is member of file group
1236 * Should not be called for user root, however the group may be root
1240 * The group list is available in
1249 * The following implementation gets the group list from
1331 ntfs_log_error("No group record found in %s\n",filename);
1348 * it replaces the permission mask by the group permissions.
1358 const struct MAPPING* group;
1369 group = scx->mapping[MAPGROUPS];
1370 while (group && (group->xid != pace->id))
1371 group = group->next;
1372 if (group && group->grcnt
1373 && (*(group->groups) == (gid_t)pace->id))
1727 * Fetch owner, group and permission of a file, if cached
1954 /* root access if some group execution */
1985 * the group memberships. The groups are
2027 /* owning group */
2061 * Takes into account the relation of user to file (owner, group, ...)
2075 const SID *gsid; /* group of file/directory */
2100 securattr[le32_to_cpu(phead->group)];
2138 * fetch owner and group for cacheing
2177 const SID *gsid; /* group of file/directory */
2200 securattr[le32_to_cpu(phead->group)];
2211 * fetch owner and group for cacheing
2295 * Takes into account the relation of user to file (owner, group, ...)
2308 const SID *gsid; /* group of file/directory */
2332 securattr[le32_to_cpu(phead->group)];
2362 * fetch owner and group for cacheing
2389 * avoid checking group membership
2390 * when the requested perms for group
2434 * Get owner, group and permissions in an stat structure
2444 const SID *gsid; /* group of file/directory */
2478 securattr[le32_to_cpu(phead->group)];
2503 * fetch owner and group for cacheing
2588 securattr[le32_to_cpu(phead->group)];
2616 * fetch owner and group for cacheing
2692 ntfs_log_error("File created by an unmapped user/group %d/%d\n",
2749 ntfs_log_error("File created by an unmapped user/group %d/%d\n",
2831 ntfs_log_error("File created by an unmapped user/group %d/%d\n",
2936 ntfs_log_error("File made owned by an unmapped user/group %d/%d\n",
3124 gsid = (const SID*)&oldattr[le32_to_cpu(phead->group)];
3154 * clear setgid if file group does
3155 * not match process group
3301 gsid = (const SID*)&oldattr[le32_to_cpu(phead->group)];
3321 * clear setgid if file group does
3322 * not match process group
3374 * owner and group SIDs, but structure SID contain only one, so add
3400 sd->group = cpu_to_le32((u8*)sid - (u8*)sd);
3552 /* return directory group if S_ISGID is set */
3623 * Define a new owner/group to a file
3671 &oldattr[le32_to_cpu(phead->group)];
3703 /* or chgrp requested by owner to an owned group */
3747 * Define new owner/group and mode to a file
3803 &oldattr[le32_to_cpu(phead->group)];
3825 /* or chgrp requested by owner to an owned group */
3912 * user, we have to get owner and group from somewhere,
3932 offgroup = le32_to_cpu(pphead->group);
3939 * owner, group and possible grants and denials in
3940 * generic creator-owner and creator-group ACEs.
4000 * inherit or redefine group
4003 pnhead->group = cpu_to_le32(pos);
4022 * Note : the owner and group of parent directory are also
4081 * Link a group to a member of group
4089 struct group *group;
4096 group = getgrgid(gid);
4097 if (group && group->gr_mem) {
4100 grmem = group->gr_mem;
4124 * Statically link group to users
4125 * This is based on groups defined in /etc/group and does not take
4127 * /etc/group into account
4129 * Only mapped groups and root group are linked to mapped users
4362 ntfs_log_error("There were no valid user or no valid group\n");
4608 /* locate group if requested and available */
4609 offgroup = le32_to_cpu(phead->group);
4688 /* copy group if requested and available */
4690 pnhead->group = cpu_to_le32(pos);
4694 pnhead->group = const_cpu_to_le32(0);
4835 newhead->group : oldhead->group) {
4837 offgroup = le32_to_cpu(newhead->group);
4842 offgroup = le32_to_cpu(oldhead->group);
4849 targhead->group = cpu_to_le32(pos);
4852 targhead->group = const_cpu_to_le32(0);
4954 /* if selected, owner and group must be present or defaulted */
4959 && !phead->group
5246 * Get the mapped group SID
5298 * Get the group mapped to a SID