Searched refs:gid (Results 1 - 25 of 469) sorted by relevance

1234567891011>>

/linux-master/include/linux/
H A Dhighuid.h26 * This is the "overflow" UID and GID. They are used to signify uid/gid
27 * overflow to old programs when they request uid/gid information but are
30 * processes are owned by this uid/gid.
48 #define high2lowgid(gid) ((gid) & ~0xFFFF ? (old_gid_t)overflowgid : (old_gid_t)(gid))
54 #define low2highgid(gid) ((gid) == (old_gid_t)-1 ? (gid_t)-1 : (gid_t)(gid))
58 #define __convert_gid(size, gid) \
[all...]
H A Duidgid.h9 * the kernel are values used by userspace and which uid and gid values are
31 static inline gid_t __kgid_val(kgid_t gid) argument
33 return gid.val;
41 static inline gid_t __kgid_val(kgid_t gid) argument
108 static inline bool gid_valid(kgid_t gid) argument
110 return __kgid_val(gid) != (gid_t) -1;
116 extern kgid_t make_kgid(struct user_namespace *from, gid_t gid);
119 extern gid_t from_kgid(struct user_namespace *to, kgid_t gid);
121 extern gid_t from_kgid_munged(struct user_namespace *to, kgid_t gid);
128 static inline bool kgid_has_mapping(struct user_namespace *ns, kgid_t gid) argument
143 make_kgid(struct user_namespace *from, gid_t gid) argument
168 gid_t gid = from_kgid(to, kgid); local
179 kgid_has_mapping(struct user_namespace *ns, kgid_t gid) argument
[all...]
/linux-master/drivers/infiniband/sw/rdmavt/
H A Dmcast.h12 int rvt_attach_mcast(struct ib_qp *ibqp, union ib_gid *gid, u16 lid);
13 int rvt_detach_mcast(struct ib_qp *ibqp, union ib_gid *gid, u16 lid);
/linux-master/security/safesetid/
H A Dlsm.c48 hash_for_each_possible(policy->rules, rule, next, __kgid_val(src.gid)) {
49 if (!gid_eq(rule->src_id.gid, src.gid))
51 if (gid_eq(rule->dst_id.gid, dst.gid)){
128 if (setid_policy_lookup((kid_t){.gid = cred->gid}, INVALID_ID, GID) == SIDPOL_DEFAULT)
132 * set*gid() (e.g. setting up userns gid mappings).
134 pr_warn("Operation requires CAP_SETGID, which is not available to GID %u for operations besides approved set*gid transition
[all...]
/linux-master/kernel/
H A Duid16.h6 long __sys_setgid(gid_t gid);
12 long __sys_setfsgid(gid_t gid);
H A Dgroups.c18 gi = kvmalloc(struct_size(gi, gid, gidsetsize), GFP_KERNEL_ACCOUNT);
45 gid_t gid; local
46 gid = from_kgid_munged(user_ns, group_info->gid[i]);
47 if (put_user(gid, grouplist+i))
62 gid_t gid; local
64 if (get_user(gid, grouplist+i))
67 kgid = make_kgid(user_ns, gid);
71 group_info->gid[i] = kgid;
86 sort(group_info->gid, group_inf
[all...]
/linux-master/ipc/
H A Dcompat.c45 to->gid = v.gid;
57 to->gid = v.gid;
66 to->gid = from->gid;
77 SET_GID(to->gid, from->gid);
/linux-master/include/rdma/
H A Dib_cache.h14 union ib_gid *gid);
17 const union ib_gid *gid,
21 const union ib_gid *gid,
26 struct ib_device *device, const union ib_gid *gid, u32 port_num,
27 bool (*filter)(const union ib_gid *gid, const struct ib_gid_attr *,
108 bool rdma_is_zero_gid(const union ib_gid *gid);
H A Dib_addr.h99 union ib_gid *gid)
101 memcpy(gid, dev_addr->broadcast + 4, sizeof *gid);
114 static inline int rdma_ip2gid(struct sockaddr *addr, union ib_gid *gid) argument
120 (struct in6_addr *)gid);
123 *(struct in6_addr *)&gid->raw =
133 static inline void rdma_gid2ip(struct sockaddr *out, const union ib_gid *gid) argument
135 if (ipv6_addr_v4mapped((struct in6_addr *)gid)) {
139 memcpy(&out_in->sin_addr.s_addr, gid->raw + 12, 4);
144 memcpy(&out_in->sin6_addr.s6_addr, gid
98 ib_addr_get_mgid(struct rdma_dev_addr *dev_addr, union ib_gid *gid) argument
153 rdma_addr_get_sgid(struct rdma_dev_addr *dev_addr, union ib_gid *gid) argument
159 rdma_addr_set_sgid(struct rdma_dev_addr *dev_addr, union ib_gid *gid) argument
164 rdma_addr_get_dgid(struct rdma_dev_addr *dev_addr, union ib_gid *gid) argument
169 rdma_addr_set_dgid(struct rdma_dev_addr *dev_addr, union ib_gid *gid) argument
[all...]
H A Dopa_addr.h26 * ib_is_opa_gid: Returns true if the top 24 bits of the gid
28 * the provided gid is a special purpose GID meant to carry
31 * @gid: The Global identifier
33 static inline bool ib_is_opa_gid(const union ib_gid *gid) argument
35 return ((be64_to_cpu(gid->global.interface_id) >> 40) ==
40 * opa_get_lid_from_gid: Returns the last 32 bits of the gid.
41 * OPA devices use one of the gids in the gid table to also
44 * @gid: The Global identifier
46 static inline u32 opa_get_lid_from_gid(const union ib_gid *gid) argument
48 return be64_to_cpu(gid
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/
H A Dmcg.c41 void *gid; local
45 gid = MLX5_ADDR_OF(attach_to_mcg_in, in, multicast_gid);
46 memcpy(gid, mgid, sizeof(*mgid));
54 void *gid; local
58 gid = MLX5_ADDR_OF(detach_from_mcg_in, in, multicast_gid);
59 memcpy(gid, mgid, sizeof(*mgid));
/linux-master/fs/quota/
H A Dkqid.c21 return gid_eq(left.gid, right.gid);
47 return gid_lt(left.gid, right.gid);
74 return from_kgid(targ, kqid.gid);
107 return from_kgid_munged(targ, kqid.gid);
126 return gid_valid(qid.gid);
/linux-master/drivers/infiniband/hw/qedr/
H A Dqedr_roce_cm.h42 static inline u32 qedr_get_ipv4_from_gid(const u8 *gid) argument
44 return *(u32 *)(void *)&gid[12];
/linux-master/fs/sysfs/
H A Dsysfs.h32 kgid_t gid, const void *ns);
35 kuid_t uid, kgid_t gid, const void *ns);
/linux-master/arch/powerpc/include/uapi/asm/
H A Dipcbuf.h25 __kernel_gid_t gid; member in struct:ipc64_perm
/linux-master/arch/parisc/include/uapi/asm/
H A Dipcbuf.h19 __kernel_gid_t gid; member in struct:ipc64_perm
/linux-master/arch/s390/include/uapi/asm/
H A Dipcbuf.h21 __kernel_gid32_t gid; member in struct:ipc64_perm
/linux-master/include/uapi/asm-generic/
H A Dipcbuf.h25 __kernel_gid32_t gid; member in struct:ipc64_perm
/linux-master/arch/xtensa/include/uapi/asm/
H A Dipcbuf.h31 __kernel_gid32_t gid; member in struct:ipc64_perm
/linux-master/arch/sparc/include/uapi/asm/
H A Dipcbuf.h22 __kernel_gid32_t gid; member in struct:ipc64_perm
/linux-master/fs/nfsd/
H A Dflexfilelayoutxdr.c31 struct ff_idmap gid; local
36 gid.len = sprintf(gid.buf, "%u", from_kgid(&init_user_ns, fl->gid));
40 8 + uid.len + 8 + gid.len;
70 p = xdr_encode_opaque(p, gid.buf, gid.len);
/linux-master/fs/
H A Dmnt_idmapping.c111 gid_t gid; local
116 gid = __kgid_val(kgid);
118 gid = from_kgid(fs_userns, kgid);
119 if (gid == (gid_t)-1)
121 return VFSGIDT_INIT_RAW(map_id_down(&idmap->gid_map, gid));
166 gid_t gid; local
170 gid = map_id_up(&idmap->gid_map, __vfsgid_val(vfsgid));
171 if (gid == (gid_t)-1)
174 return KGIDT_INIT(gid);
175 return make_kgid(fs_userns, gid);
[all...]
/linux-master/drivers/infiniband/hw/mthca/
H A Dmthca_mcg.c42 u8 gid[16]; member in struct:mthca_mgm
49 * Caller must hold MCG table semaphore. gid and mgm parameters must
60 * If no AMGM exists for given gid, *index = -1, *prev = index of last
64 u8 *gid, struct mthca_mailbox *mgm_mailbox,
77 memcpy(mgid, gid, 16);
86 mthca_dbg(dev, "Hash for %pI6 is %04x\n", gid, *hash);
98 if (!memcmp(mgm->gid, zero_gid, 16)) {
106 if (!memcmp(mgm->gid, gid, 16))
120 int mthca_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u1 argument
63 find_mgm(struct mthca_dev *dev, u8 *gid, struct mthca_mailbox *mgm_mailbox, u16 *hash, int *prev, int *index) argument
214 mthca_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument
[all...]
/linux-master/samples/bpf/
H A Dsock_flags.bpf.c10 char fmt2[] = "socket: uid %u gid %u\n";
13 __u32 gid = gid_uid >> 32; local
16 bpf_trace_printk(fmt2, sizeof(fmt2), uid, gid);
/linux-master/fs/smb/server/mgmt/
H A Duser_config.h15 unsigned int gid; member in struct:ksmbd_user
59 return user->gid;

Completed in 232 milliseconds

1234567891011>>