Home
last modified time | relevance | path

Searched refs:gid (Results 1 – 25 of 610) sorted by relevance

12345678910>>...25

/freebsd/contrib/pjdfstest/tests/chown/
H A D00.t30 expect 123,456 lstat ${n0} uid,gid
32 expect 0,0 lstat ${n0} uid,gid
35 uidgid=`${fstest} lstat ${n1} uid,gid`
37 expect 123,456 stat ${n1} uid,gid
38 expect 123,456 stat ${n0} uid,gid
39 expect ${uidgid} lstat ${n1} uid,gid
51 expect 123,456 lstat ${n0} uid,gid
66 expect 65534,65533 lstat ${n0} uid,gid
68 expect 65534,65532 lstat ${n0} uid,gid
70 expect 65534,65531 lstat ${n0} uid,gid
[all …]
H A D08.t28 expect 0,0 stat ${n0} uid,gid
31 expect 65534,65534 stat ${n0} uid,gid
37 expect 65534,65534 stat ${n0} uid,gid
46 expect 65534,65534 stat ${n0} uid,gid
54 expect 0,0 stat ${n0} uid,gid
57 expect 65534,65534 stat ${n0} uid,gid
63 expect 0,0 stat ${n0} uid,gid
66 expect 65534,65534 stat ${n0} uid,gid
72 expect 65534,65534 stat ${n0} uid,gid
79 expect 0,0 stat ${n0} uid,gid
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/c063/
H A Dt_fchownat.c56 static int getuser(uid_t *uid, gid_t *gid) in getuser() argument
64 *gid = pw->pw_gid; in getuser()
80 gid_t gid; in ATF_TC_BODY() local
83 ATF_REQUIRE(getuser(&uid, &gid) == 0); in ATF_TC_BODY()
89 ATF_REQUIRE(fchownat(dfd, BASEFILE, uid, gid, 0) == 0); in ATF_TC_BODY()
94 ATF_REQUIRE(st.st_gid == gid); in ATF_TC_BODY()
108 gid_t gid; in ATF_TC_BODY() local
111 ATF_REQUIRE(getuser(&uid, &gid) == 0); in ATF_TC_BODY()
117 ATF_REQUIRE(fchownat(AT_FDCWD, BASEFILE, uid, gid, 0) == 0); in ATF_TC_BODY()
121 ATF_REQUIRE(st.st_gid == gid); in ATF_TC_BODY()
[all …]
/freebsd/sys/ofed/include/rdma/
H A Dib_addr.h167 union ib_gid *gid) in ib_addr_get_mgid() argument
169 memcpy(gid, dev_addr->broadcast + 4, sizeof *gid); in ib_addr_get_mgid()
188 static inline int rdma_ip2gid(const struct sockaddr *addr, union ib_gid *gid) in rdma_ip2gid() argument
194 (struct in6_addr *)gid); in rdma_ip2gid()
197 memcpy(gid->raw, &((const struct sockaddr_in6 *)addr)->sin6_addr, 16); in rdma_ip2gid()
199 if (IN6_IS_SCOPE_LINKLOCAL((struct in6_addr *)gid->raw) || in rdma_ip2gid()
200 IN6_IS_ADDR_MC_INTFACELOCAL((struct in6_addr *)gid->raw)) { in rdma_ip2gid()
201 gid->raw[2] = 0; in rdma_ip2gid()
202 gid->raw[3] = 0; in rdma_ip2gid()
212 static inline void rdma_gid2ip(struct sockaddr *out, const union ib_gid *gid) in rdma_gid2ip() argument
[all …]
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dcred.h42 #define GROUP_AT(gi, i) ((gi)->gid[i])
101 struct user_namespace *fs_userns, gid_t gid) in zfs_gid_to_vfsgid() argument
106 return (gid); in zfs_gid_to_vfsgid()
116 return (gid); in zfs_gid_to_vfsgid()
118 gid = from_kgid(fs_userns, KGIDT_INIT(gid)); in zfs_gid_to_vfsgid()
119 if (gid == (gid_t)-1) in zfs_gid_to_vfsgid()
120 return (gid); in zfs_gid_to_vfsgid()
121 return (__kgid_val(make_kgid(owner, gid))); in zfs_gid_to_vfsgid()
150 struct user_namespace *fs_userns, gid_t gid) in zfs_vfsgid_to_gid() argument
155 return (gid); in zfs_vfsgid_to_gid()
[all …]
/freebsd/tests/sys/cddl/zfs/tests/history/
H A Dhistory_009_pos.ksh110 gid=$($ID $HIST_USER | $AWK -F= '{print $3}'| $AWK -F"(" '{print $1}' )
137 "gl\$$gid" "allow" "-l -g $HIST_GROUP snapshot" \
138 "gl\$$gid" "allow" "-g $HIST_GROUP snapshot" \
139 "gl\$$gid" "unallow" "-g $HIST_GROUP snapshot" \
140 "Gl\$$gid" "allow" "-l -g $HIST_GROUP @set" \
141 "Gl\$$gid" "allow" "-g $HIST_GROUP @set" \
142 "Gl\$$gid" "unallow" "-g $HIST_GROUP @set" \
143 "gd\$$gid" "allow" "-d -g $HIST_GROUP snapshot" \
144 "gd\$$gid" "allow" "-g $HIST_GROUP snapshot" \
145 "gd\$$gid" "unallow" "-g $HIST_GROUP snapshot" \
[all …]
/freebsd/tests/sys/mac/portacl/
H A Dnobody_test.sh22 bind_test fl fl gid nobody tcp 77
23 bind_test ok ok gid nobody tcp 7777
24 bind_test fl fl gid nobody udp 77
25 bind_test ok ok gid nobody udp 7777
34 bind_test fl fl gid nobody tcp 77
35 bind_test ok ok gid nobody tcp 7777
36 bind_test fl fl gid nobody udp 77
37 bind_test ok ok gid nobody udp 7777
48 bind_test fl fl gid nobody tcp 77
49 bind_test fl ok gid nobody tcp 7777
[all …]
H A Droot_test.sh19 bind_test ok ok gid root tcp 77
20 bind_test ok ok gid root tcp 7777
21 bind_test ok ok gid root udp 77
22 bind_test ok ok gid root udp 7777
33 bind_test fl ok gid root tcp 77
34 bind_test ok ok gid root tcp 7777
35 bind_test fl ok gid root udp 77
36 bind_test ok ok gid root udp 7777
47 bind_test fl ok gid root tcp 77
48 bind_test fl ok gid root tcp 7777
[all …]
/freebsd/libexec/rc/
H A Drc.bsdextended73 ${CMD} add subject gid 0 object not gid 0 mode arxws;
83 ${CMD} add subject gid 7 object not gid 7 mode rxws;
93 ${CMD} add subject gid 25 object not gid 25 mode rxws;
98 ${CMD} add subject gid 26 object not gid 26 mode rxws;
113 ${CMD} add subject gid 65534 object not gid 65534 mode rxws;
120 do ${CMD} add subject uid $x object gid 6 mode arwxs;
136 do ${CMD} add subject not gid $x object uid $x mode n;
/freebsd/contrib/ofed/libibmad/
H A Dresolve.c80 int ib_resolve_gid_via(ib_portid_t * portid, ibmad_gid_t gid, in ib_resolve_gid_via() argument
96 ib_path_query_via(srcport, gid, gid, sm_id, buf)) < 0) in ib_resolve_gid_via()
127 memcpy(&prefix, portid->gid, sizeof(prefix)); in ib_resolve_guid_via()
129 mad_set_field64(portid->gid, 0, IB_GID_PREFIX_F, in ib_resolve_guid_via()
132 mad_set_field64(portid->gid, 0, IB_GID_GUID_F, *guid); in ib_resolve_guid_via()
135 ib_path_query_via(srcport, selfgid, portid->gid, sm_id, buf)) < 0) in ib_resolve_guid_via()
146 ibmad_gid_t gid; in ib_resolve_portid_str_via() local
200 if (inet_pton(AF_INET6, addr_str, &gid) <= 0) in ib_resolve_portid_str_via()
202 return ib_resolve_gid_via(portid, gid, sm_id, 0, srcport); in ib_resolve_portid_str_via()
218 int ib_resolve_self_via(ib_portid_t * portid, int *portnum, ibmad_gid_t * gid, in ib_resolve_self_via() argument
[all …]
/freebsd/bin/pax/
H A Dcache.c233 name_gid(gid_t gid, int frc) in name_gid() argument
244 ptr = gidtb[gid % GID_SZ]; in name_gid()
245 if ((ptr != NULL) && (ptr->valid > 0) && (ptr->gid == gid)) { in name_gid()
262 ptr = gidtb[gid % GID_SZ] = (GIDC *)malloc(sizeof(GIDC)); in name_gid()
264 if ((gr = getgrgid(gid)) == NULL) { in name_gid()
271 ptr->gid = gid; in name_gid()
274 (unsigned long)gid); in name_gid()
283 ptr->gid = gid; in name_gid()
363 gid_name(char *name, gid_t *gid) in gid_name() argument
385 *gid = ptr->gid; in gid_name()
[all …]
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_cache.c90 union ib_gid gid; member
177 const union ib_gid *gid, in write_gid() argument
198 ret = ib_dev->add_gid(ib_dev, port, ix, gid, attr, in write_gid()
212 gid = &zgid; in write_gid()
217 memcpy(&table->data_vec[ix].gid, gid, sizeof(*gid)); in write_gid()
235 const union ib_gid *gid, in add_gid() argument
238 return write_gid(ib_dev, port, table, ix, gid, attr, in add_gid()
244 const union ib_gid *gid, in modify_gid() argument
247 return write_gid(ib_dev, port, table, ix, gid, attr, in modify_gid()
259 static int find_gid(struct ib_gid_table *table, const union ib_gid *gid, in find_gid() argument
[all …]
/freebsd/contrib/sendmail/libsm/
H A Dt-sem.c132 drop_priv(uid, gid) in drop_priv() argument
134 gid_t gid;
138 r = setgid(gid);
159 semtest(owner, uid, gid) in semtest() argument
162 gid_t gid;
169 r = drop_priv(uid, gid);
187 r = sm_semsetowner(semid, uid, gid, 0660);
193 r = drop_priv(uid, gid);
328 gid_t gid; local
331 gid = 0;
[all …]
/freebsd/contrib/kyua/utils/process/
H A Disolation.cpp96 do_chown(const fs::path& file, const uid_t uid, const gid_t gid) in do_chown() argument
98 if (::chown(file.c_str(), uid, gid) == -1) in do_chown()
100 % file % uid % gid % ::getuid() % ::getgid(), errno); in do_chown()
154 if (user.gid != ::getgid()) { in isolate_child()
155 if (::setgid(user.gid) == -1) in isolate_child()
157 % user.gid % ::getuid() % ::getgid(), errno); in isolate_child()
160 groups[0] = user.gid; in isolate_child()
163 % user.gid % ::getuid() % ::getgid(), errno); in isolate_child()
194 const bool change_group = user.gid != ::getgid(); in isolate_path()
200 do_chown(file, user.uid, user.gid); in isolate_path()
[all …]
/freebsd/crypto/openssh/openbsd-compat/
H A Dpwcache.c83 group_from_gid(gid_t gid, int nogroup) in group_from_gid() argument
86 gid_t gid; in group_from_gid() member
94 cp = c_gid + (gid & MASK); in group_from_gid()
95 if (cp->gid != gid || cp->name == NULL) { in group_from_gid()
102 if ((gr = getgrgid(gid)) == NULL) { in group_from_gid()
105 (void)snprintf(nbuf, sizeof(nbuf), "%lu", (u_long)gid); in group_from_gid()
107 cp->gid = gid; in group_from_gid()
H A Dbsd-getpeereid.c28 getpeereid(int s, uid_t *euid, gid_t *gid) in getpeereid() argument
36 *gid = cred.gid; in getpeereid()
47 getpeereid(int s, uid_t *euid, gid_t *gid) in getpeereid() argument
55 if ((*gid = ucred_getrgid(ucred)) == -1) in getpeereid()
64 getpeereid(int s, uid_t *euid, gid_t *gid) in getpeereid() argument
67 *gid = getgid(); in getpeereid()
/freebsd/contrib/dialog/samples/
H A Dform210 gid=`echo "$ids" | sed -e 's/^.* gid=//' -e 's/ .*//'`
25 "1 GID:" 3 1 "$gid" 3 12 10 10 \
29 "2 GID:" 7 1 "$gid" 7 12 10 10 \
33 "3 GID:" 11 1 "$gid" 11 12 10 10 \
37 "4 GID:" 15 1 "$gid" 15 12 10 10 \
41 "5 GID:" 19 1 "$gid" 19 12 10 10 \
45 "6 GID:" 23 1 "$gid" 23 12 10 10 \
49 "7 GID:" 27 1 "$gid" 27 12 10 10 \
/freebsd/contrib/ofed/libibverbs/examples/
H A Ddevinfo.c49 static int null_gid(union ibv_gid *gid) in null_gid() argument
51 return !(gid->raw[8] | gid->raw[9] | gid->raw[10] | gid->raw[11] | in null_gid()
52 gid->raw[12] | gid->raw[13] | gid->raw[14] | gid->raw[15]); in null_gid()
166 union ibv_gid gid; in print_all_port_gids() local
171 rc = ibv_query_gid(ctx, port_num, i, &gid); in print_all_port_gids()
177 if (!null_gid(&gid)) in print_all_port_gids()
180 gid.raw[ 0], gid.raw[ 1], in print_all_port_gids()
181 gid.raw[ 2], gid.raw[ 3], in print_all_port_gids()
182 gid.raw[ 4], gid.raw[ 5], in print_all_port_gids()
183 gid.raw[ 6], gid.raw[ 7], in print_all_port_gids()
[all …]
H A Duc_pingpong.c76 union ibv_gid gid; member
97 if (dest->gid.global.interface_id) { in pp_connect_ctx()
100 attr.ah_attr.grh.dgid = dest->gid; in pp_connect_ctx()
138 char gid[33]; in pp_client_exch_dest() local
169 gid_to_wire_gid(&my_dest->gid, gid); in pp_client_exch_dest()
171 my_dest->psn, gid); in pp_client_exch_dest()
190 &rem_dest->psn, gid); in pp_client_exch_dest()
191 wire_gid_to_gid(gid, &rem_dest->gid); in pp_client_exch_dest()
215 char gid[33]; in pp_server_exch_dest() local
274 &rem_dest->psn, gid); in pp_server_exch_dest()
[all …]
H A Dud_pingpong.c77 union ibv_gid gid; member
109 if (dest->gid.global.interface_id) { in pp_connect_ctx()
112 ah_attr.grh.dgid = dest->gid; in pp_connect_ctx()
138 char gid[33]; in pp_client_exch_dest() local
169 gid_to_wire_gid(&my_dest->gid, gid); in pp_client_exch_dest()
171 my_dest->psn, gid); in pp_client_exch_dest()
189 &rem_dest->psn, gid); in pp_client_exch_dest()
190 wire_gid_to_gid(gid, &rem_dest->gid); in pp_client_exch_dest()
213 char gid[33]; in pp_server_exch_dest() local
272 &rem_dest->psn, gid); in pp_server_exch_dest()
[all …]
/freebsd/sys/dev/mthca/
H A Dmthca_mcg.c42 u8 gid[16]; member
64 u8 *gid, struct mthca_mailbox *mgm_mailbox, in find_mgm() argument
77 memcpy(mgid, gid, 16); in find_mgm()
86 mthca_dbg(dev, "Hash for %pI6 is %04x\n", gid, *hash); in find_mgm()
98 if (!memcmp(mgm->gid, zero_gid, 16)) { in find_mgm()
106 if (!memcmp(mgm->gid, gid, 16)) in find_mgm()
120 int mthca_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in mthca_multicast_attach() argument
138 err = find_mgm(dev, gid->raw, mailbox, &hash, &prev, &index); in mthca_multicast_attach()
143 if (!memcmp(mgm->gid, zero_gid, 16)) in mthca_multicast_attach()
144 memcpy(mgm->gid, gid->raw, 16); in mthca_multicast_attach()
[all …]
/freebsd/contrib/pjdfstest/tests/link/
H A D00.t37 expect ${type},0201,3,65534,65533 lstat ${n0} type,mode,nlink,uid,gid
38 expect ${type},0201,3,65534,65533 lstat ${n1} type,mode,nlink,uid,gid
39 expect ${type},0201,3,65534,65533 lstat ${n2} type,mode,nlink,uid,gid
42 expect ENOENT lstat ${n0} type,mode,nlink,uid,gid
43 expect ${type},0201,2,65534,65533 lstat ${n1} type,mode,nlink,uid,gid
44 expect ${type},0201,2,65534,65533 lstat ${n2} type,mode,nlink,uid,gid
47 expect ENOENT lstat ${n0} type,mode,nlink,uid,gid
48 expect ${type},0201,1,65534,65533 lstat ${n1} type,mode,nlink,uid,gid
49 expect ENOENT lstat ${n2} type,mode,nlink,uid,gid
52 expect ENOENT lstat ${n0} type,mode,nlink,uid,gid
[all …]
/freebsd/tests/sys/acl/
H A Drun160 my ($login, $pass, $uid, $gid) = getpwnam($user)
167 my ($group, $passwd, $gid, $users) = split /:/;
169 push @groups, $gid
175 my $groups = join(" ", ($gid, $gid, @groups));
179 $( = $gid;
199 my $gid = getgrnam($group)
201 my %groups = map { $_ eq $gid ? () : ($_ => 1) } (split /\s/, $));
204 my $groups = join(" ", ($gid, $gid, keys %groups));
210 $( = $gid;
214 $( = $gid;
/freebsd/contrib/pjdfstest/tests/granular/
H A D04.t23 expect 0,0 lstat ${n0} uid,gid
25 expect 0,0 lstat ${n0} uid,gid
28 expect 0,0 lstat ${n0} uid,gid
30 expect 0,65532 lstat ${n0} uid,gid
35 expect 0,0 lstat ${n0} uid,gid
37 expect 0,0 lstat ${n0} uid,gid
40 expect 0,0 lstat ${n0} uid,gid
42 expect 65534,65531 lstat ${n0} uid,gid
/freebsd/usr.sbin/chown/
H A Dchown.c58 static gid_t gid; variable
145 gid = (gid_t)-1; in main()
197 (gid == (gid_t)-1 || gid == p->fts_statp->st_gid)) in main()
199 if (fchownat(AT_FDCWD, p->fts_accpath, uid, gid, atflag) in main()
219 gid = ((gr = getgrnam(s)) != NULL) ? gr->gr_gid : id(s, "group"); in a_gid()
262 if (gid != (gid_t)-1 && ngroups == -1 && in chownerr()
268 while (--ngroups >= 0 && gid != groups[ngroups]); in chownerr()
305 (gid == (gid_t)-1) ? in print_info()
306 (uintmax_t)p->fts_statp->st_gid : (uintmax_t)gid); in print_info()
309 (gid == (gid_t)-1) ? in print_info()
[all …]

12345678910>>...25