/linux-master/tools/testing/selftests/move_mount_set_group/ |
H A D | move_mount_set_group_test.c | 79 gid_t gid; local 83 gid = getgid(); 97 snprintf(map, sizeof(map), "0 %d 1", gid);
|
/linux-master/drivers/infiniband/hw/mlx4/ |
H A D | main.c | 177 memcpy(&gid_tbl[i], &gids[i].gid, sizeof(union ib_gid)); 202 union ib_gid gid; member in struct:__anon231 216 memcpy(&gid_tbl[i].gid, &gids[i].gid, sizeof(union ib_gid)); 219 if (!ipv6_addr_v4mapped((struct in6_addr *)&gids[i].gid)) 250 memset(&entry->gid, 0, sizeof(entry->gid)); 283 if (!memcmp(&port_gid_table->gids[i].gid, 284 &attr->gid, sizeof(attr->gid)) 833 __mlx4_ib_query_gid(struct ib_device *ibdev, u32 port, int index, union ib_gid *gid, int netw_view) argument 889 mlx4_ib_query_gid(struct ib_device *ibdev, u32 port, int index, union ib_gid *gid) argument 1265 add_gid_entry(struct ib_qp *ibqp, union ib_gid *gid) argument 1304 mlx4_ib_add_mc(struct mlx4_ib_dev *mdev, struct mlx4_ib_qp *mqp, union ib_gid *gid) argument 1329 union ib_gid gid; member in struct:mlx4_ib_steering 1836 mlx4_ib_mcg_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument 1914 mlx4_ib_mcg_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument [all...] |
/linux-master/fs/autofs/ |
H A D | waitq.c | 149 packet->gid = from_kgid_munged(user_ns, wq->gid); 397 wq->gid = current_gid(); 445 * uid and gid in the dentry info struct. This is so it can be 448 * to existing, active, autofs mounts. The uid and gid (and 469 ino->gid = wq->gid;
|
/linux-master/fs/smb/server/ |
H A D | smbacl.c | 57 /* S-1-5-88-2 Unix gid */ 285 kgid_t gid; local 289 gid = KGIDT_INIT(id); 290 gid = from_vfsgid(idmap, &init_user_ns, VFSGIDT_INIT(gid)); 291 if (gid_valid(gid)) { 292 fattr->cf_gid = gid; 321 pace->e_gid = state->groups->aces[i].gid; 531 acl_state.groups->aces[acl_state.groups->n].gid = 536 default_acl_state.groups->aces[default_acl_state.groups->n].gid 611 gid_t gid; local 675 gid_t gid; local 906 gid_t gid; local 998 smb_inherit_dacl(struct ksmbd_conn *conn, const struct path *path, unsigned int uid, unsigned int gid) argument [all...] |
/linux-master/fs/befs/ |
H A D | linuxvfs.c | 342 * set uid and gid. But since current BeOS is single user OS, so 343 * you can change by "uid" or "gid" options. 350 befs_sb->mount_opts.gid : 351 make_kgid(&init_user_ns, fs32_to_cpu(sb, raw_inode->gid)); 682 {Opt_gid, "gid=%d"}, 695 kgid_t gid; local 699 opts->gid = GLOBAL_ROOT_GID; 733 gid = INVALID_GID; 735 gid = make_kgid(current_user_ns(), option); 736 if (!gid_valid(gid)) { [all...] |
H A D | befs.h | 24 kgid_t gid; member in struct:befs_mount_options
|
/linux-master/security/keys/ |
H A D | process_keys.c | 228 keyring = keyring_alloc("_tid", new->uid, new->gid, new, 275 keyring = keyring_alloc("_pid", new->uid, new->gid, new, 330 keyring = keyring_alloc("_ses", cred->uid, cred->gid, cred, 395 new_cred->thread_keyring->gid = new_cred->fsgid; 870 name, old->uid, old->gid, old, 932 new-> gid = old-> gid;
|
/linux-master/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_router_hw.c | 398 int nh_cnt, err, gid; local 435 gid = nh_grp->grp_id; 436 sw->router->nhgrp_hw_state_cache[gid / 8] &= ~BIT(gid % 8); 543 u32 gid = nh_grp->grp_id; local 562 if (cache[gid / 8] & BIT(gid % 8))
|
/linux-master/net/802/ |
H A D | garp.c | 151 struct rb_node *parent = app->gid.rb_node; 171 struct rb_node *parent = NULL, **p = &app->gid.rb_node; 197 rb_insert_color(&attr->node, &app->gid); 203 rb_erase(&attr->node, &app->gid); 212 for (node = rb_first(&app->gid); 399 for (node = rb_first(&app->gid); 594 app->gid = RB_ROOT;
|
/linux-master/kernel/ |
H A D | cred.c | 47 .gid = GLOBAL_ROOT_GID, 450 if (!gid_eq(new->gid, old->gid) || 536 * provide the same access to files based on mode/uid/gid. 574 if (gid_lt(ga->gid[g], gb->gid[g])) 576 if (gid_gt(ga->gid[g], gb->gid[g]))
|
H A D | sys.c | 354 * Unprivileged users may change the real gid to the effective gid 357 * If you set the real gid at all, or set the effective gid to a value not 358 * equal to the real gid, then the saved gid is set to the new effective gid. 395 if (gid_eq(old->gid, krgid) || 398 new->gid = krgid; 403 if (gid_eq(old->gid, kegi 438 __sys_setgid(gid_t gid) argument 907 __sys_setfsgid(gid_t gid) argument [all...] |
H A D | user_namespace.c | 467 * make_kgid - Map a user-namespace gid pair into a kgid. 468 * @ns: User namespace that the gid is in 469 * @gid: group identifier 471 * Maps a user-namespace gid pair into a kernel internal kgid, 474 * When there is no mapping defined for the user-namespace gid 479 kgid_t make_kgid(struct user_namespace *ns, gid_t gid) argument 481 /* Map the gid to a global kernel gid */ 482 return KGIDT_INIT(map_id_down(&ns->gid_map, gid)); 487 * from_kgid - Create a gid fro 524 gid_t gid; local 1183 kgid_t gid = make_kgid(ns->parent, id); local [all...] |
/linux-master/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_main.c | 94 const union ib_gid *gid, const struct sockaddr *addr, 401 const union ib_gid *gid, 412 (!gid || !memcmp(gid, &priv->local_gid, sizeof(*gid)))) { 432 matches += ipoib_match_gid_pkey_addr(child_priv, gid, 449 const union ib_gid *gid, 462 matches += ipoib_match_gid_pkey_addr(priv, gid, pkey_index, 473 const union ib_gid *gid, const struct sockaddr *addr, 491 gid, NUL 400 ipoib_match_gid_pkey_addr(struct ipoib_dev_priv *priv, const union ib_gid *gid, u16 pkey_index, const struct sockaddr *addr, int nesting, struct net_device **found_net_dev) argument 447 __ipoib_get_net_dev_by_params(struct list_head *dev_list, u32 port, u16 pkey_index, const union ib_gid *gid, const struct sockaddr *addr, struct net_device **net_dev) argument 471 ipoib_get_net_dev_by_params( struct ib_device *dev, u32 port, u16 pkey, const union ib_gid *gid, const struct sockaddr *addr, void *client_data) argument 557 __path_find(struct net_device *dev, void *gid) argument 861 init_path_rec(struct ipoib_dev_priv *priv, struct ipoib_path *path, void *gid) argument 878 path_rec_create(struct net_device *dev, void *gid) argument 1589 ipoib_del_neighs_by_gid(struct net_device *dev, u8 *gid) argument 2359 set_base_guid(struct ipoib_dev_priv *priv, union ib_gid *gid) argument 2385 union ib_gid *gid = (union ib_gid *)(ss->__data + 4); local [all...] |
/linux-master/init/ |
H A D | initramfs.c | 183 static __initdata gid_t gid; variable 201 gid = parsed[3]; 379 vfs_fchown(wfile, uid, gid); 387 init_chown(collected, uid, gid, 0); 394 init_chown(collected, uid, gid, 0); 429 init_chown(collected, uid, gid, AT_SYMLINK_NOFOLLOW);
|
/linux-master/include/linux/ |
H A D | key.h | 214 kgid_t gid; member in struct:key 285 kuid_t uid, kgid_t gid, 420 extern struct key *keyring_alloc(const char *description, kuid_t uid, kgid_t gid,
|
/linux-master/security/tomoyo/ |
H A D | tomoyo.c | 372 * @gid: Group ID. 376 static int tomoyo_path_chown(const struct path *path, kuid_t uid, kgid_t gid) argument 383 if (!error && gid_valid(gid)) 385 from_kgid(&init_user_ns, gid));
|
/linux-master/fs/proc/ |
H A D | root.c | 33 int gid; member in struct:proc_fs_context 44 fsparam_u32("gid", Opt_gid), 124 ctx->gid = result.uint_32; 152 fs_info->pid_gid = make_kgid(user_ns, ctx->gid);
|
/linux-master/net/smc/ |
H A D | smc_clc.c | 891 memcpy(pclc_base->lcl.gid, ini->ib_gid, SMC_GID_SIZE); 902 pclc_smcd->ism.gid = htonll(smcd_gid.gid); 954 gidchids[entry].gid = htonll(smcd_gid.gid); 962 gidchids[entry + 1].gid = 1046 clc->d0.gid = htonll(smcd_gid.gid); 1090 memcpy(&clc->r0.lcl.gid, link->gid, SMC_GID_SIZ [all...] |
/linux-master/fs/nfs/ |
H A D | nfs4idmap.c | 126 kgid_t gid; local 130 if (nfs_map_group_to_gid(server, group->data, group->len, &gid) == 0) { 131 fattr->gid = gid; 150 * nfs_fattr_map_and_free_names - map owner/group strings into uid/gid and free 155 * their numeric uid/gid equivalents, and then frees the cached strings. 392 { Opt_find_gid, "gid:%s" }, 762 int nfs_map_group_to_gid(const struct nfs_server *server, const char *name, size_t namelen, kgid_t *gid) argument 769 ret = nfs_idmap_lookup_id(name, namelen, "gid", &id, idmap); 771 *gid 793 nfs_map_gid_to_group(const struct nfs_server *server, kgid_t gid, char *buf, size_t buflen) argument [all...] |
/linux-master/drivers/firmware/arm_scmi/ |
H A D | notify.c | 207 * @gid: GroupID used for devres 222 void *gid; member in struct:scmi_notify_instance 1663 void *gid; local 1666 gid = devres_open_group(handle->dev, NULL, GFP_KERNEL); 1667 if (!gid) 1674 ni->gid = gid; 1700 devres_close_group(handle->dev, ni->gid); 1706 devres_release_group(handle->dev, gid); 1726 devres_release_group(ni->handle->dev, ni->gid); [all...] |
/linux-master/include/uapi/linux/ |
H A D | auto_fs.h | 197 __u32 gid; member in struct:autofs_v5_packet
|
/linux-master/fs/affs/ |
H A D | amigaffs.h | 89 __be16 gid; member in struct:affs_tail
|
/linux-master/arch/sparc/include/asm/ |
H A D | compat.h | 91 __compat_gid32_t gid; member in struct:compat_ipc64_perm
|
/linux-master/arch/mips/include/asm/ |
H A D | compat.h | 79 __compat_gid32_t gid; member in struct:compat_ipc64_perm
|
/linux-master/arch/parisc/include/asm/ |
H A D | compat.h | 68 __compat_gid_t gid; member in struct:compat_ipc64_perm
|