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

1234567891011>>

/freebsd-current/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/safety/
H A Dtst.gid.d31 * collect gid at every fbt probe and at every firing of a
37 @a[gid] = count();
42 @a[gid] = count();
/freebsd-current/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/vars/
H A Dtst.gid.d32 /curpsinfo->pr_gid == gid/
39 printf("%d != %d\n", curpsinfo->pr_gid, gid);
/freebsd-current/contrib/libarchive/cpio/test/
H A Dtest_owner_parse.c63 skipping("No uid/gid configuration for this OS");
65 int uid, gid;
67 assert(NULL == owner_parse(ROOT, &uid, &gid));
70 assertEqualInt(-1, gid);
73 assert(NULL == owner_parse(ROOT ":", &uid, &gid));
76 assert(int_in_list(gid, root_gids,
79 assert(NULL == owner_parse(ROOT ".", &uid, &gid));
82 assert(int_in_list(gid, root_gids,
85 assert(NULL == owner_parse("111", &uid, &gid));
87 assertEqualInt(-1, gid);
[all...]
/freebsd-current/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/scripting/
H A Dtst.gid.d41 printf("The gid is %d\n", $gid);
H A Dtst.gid.ksh32 # To verify gid of the child process.
54 /\$gid != \$1/
60 /\$gid == \$1/
72 groupid=`ps -x -o pid,gid | grep "$$ " | awk '{print $2}' 2>/dev/null`
/freebsd-current/crypto/openssh/openbsd-compat/
H A Dbsd-getpeereid.c28 getpeereid(int s, uid_t *euid, gid_t *gid) argument
36 *gid = cred.gid;
47 getpeereid(int s, uid_t *euid, gid_t *gid) argument
55 if ((*gid = ucred_getrgid(ucred)) == -1)
64 getpeereid(int s, uid_t *euid, gid_t *gid) argument
67 *gid = getgid();
H A Dpwcache.c83 group_from_gid(gid_t gid, int nogroup) argument
86 gid_t gid; member in struct:ncache
94 cp = c_gid + (gid & MASK);
95 if (cp->gid != gid || cp->name == NULL) {
102 if ((gr = getgrgid(gid)) == NULL) {
105 (void)snprintf(nbuf, sizeof(nbuf), "%lu", (u_long)gid);
107 cp->gid = gid;
/freebsd-current/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" "unallo
[all...]
/freebsd-current/libexec/rc/
H A Drc.bsdextended63 #${CMD} add subject gid 80 object not gid 80 mode rxws;
68 #${CMD} add subject gid 26 object gid 54 mode rxws;
73 ${CMD} add subject gid 0 object not gid 0 mode arxws;
78 #${CMD} add subject gid 54 object not gid 54 mode rxws;
83 ${CMD} add subject gid 7 object not gid
[all...]
/freebsd-current/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 \
H A Dinputmenu-stdout9 gid=`id|sed -e 's/^.*gid=//' -e 's/(.*//'`
21 "GID:" "$gid" \
41 -g $gid \n\
52 GID) gid="$item" ;;
H A Dinputmenu9 gid=`id|sed -e 's/^.*gid=//' -e 's/(.*//'`
22 "GID:" "$gid" \
43 -g $gid \n\
54 GID) gid="$item" ;;
/freebsd-current/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
60 # gid he is setting is in his groups list.
66 expect 65534,65533 lstat ${n0} uid,gid
68 expect 65534,65532 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-current/contrib/ofed/libibverbs/examples/
H A Dpingpong.h41 void wire_gid_to_gid(const char *wgid, union ibv_gid *gid);
42 void gid_to_wire_gid(const union ibv_gid *gid, char wgid[]);
H A Dpingpong.c57 void wire_gid_to_gid(const char *wgid, union ibv_gid *gid) argument
69 memcpy(gid, tmp_gid, sizeof(*gid));
72 void gid_to_wire_gid(const union ibv_gid *gid, char wgid[]) argument
77 memcpy(tmp_gid, gid, sizeof(tmp_gid));
/freebsd-current/crypto/openssh/
H A Dsftp-usergroup.h25 const char *rgroup_name(uid_t gid);
/freebsd-current/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 nobod
[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 roo
[all...]
/freebsd-current/tools/build/cross-build/include/common/
H A Dgrp.h46 int gid_from_group(const char *name, gid_t *gid);
48 const char *group_from_gid(gid_t gid, int noname);
/freebsd-current/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dcred.h42 #define GROUP_AT(gi, i) ((gi)->gid[i])
105 struct user_namespace *fs_userns, gid_t gid)
110 return (gid);
120 return (gid);
122 gid = from_kgid(fs_userns, KGIDT_INIT(gid));
123 if (gid == (gid_t)-1)
124 return (gid);
125 return (__kgid_val(make_kgid(owner, gid)));
154 struct user_namespace *fs_userns, gid_t gid)
104 zfs_gid_to_vfsgid(zidmap_t *mnt_userns, struct user_namespace *fs_userns, gid_t gid) argument
153 zfs_vfsgid_to_gid(zidmap_t *mnt_userns, struct user_namespace *fs_userns, gid_t gid) argument
[all...]
/freebsd-current/contrib/netbsd-tests/lib/libc/c063/
H A Dt_fchownat.c56 static int getuser(uid_t *uid, gid_t *gid) argument
64 *gid = pw->pw_gid;
80 gid_t gid; local
83 ATF_REQUIRE(getuser(&uid, &gid) == 0);
89 ATF_REQUIRE(fchownat(dfd, BASEFILE, uid, gid, 0) == 0);
94 ATF_REQUIRE(st.st_gid == gid);
108 gid_t gid; local
111 ATF_REQUIRE(getuser(&uid, &gid) == 0);
117 ATF_REQUIRE(fchownat(AT_FDCWD, BASEFILE, uid, gid, 0) == 0);
121 ATF_REQUIRE(st.st_gid == gid);
134 gid_t gid; local
151 gid_t gid; local
172 gid_t gid; local
194 gid_t gid; local
214 gid_t gid; local
[all...]
/freebsd-current/contrib/pjdfstest/tests/granular/
H A D04.t21 # ACL_WRITE_OWNER permits to set gid to our own only.
23 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-current/contrib/kyua/utils/process/
H A Disolation.cpp94 /// \param gid The GID to set on the path.
96 do_chown(const fs::path& file, const uid_t uid, const gid_t gid) argument
98 if (::chown(file.c_str(), uid, gid) == -1)
100 % file % uid % gid % ::getuid() % ::getgid(), errno);
154 if (user.gid != ::getgid()) {
155 if (::setgid(user.gid) == -1)
157 % user.gid % ::getuid() % ::getgid(), errno);
160 groups[0] = user.gid;
163 % user.gid % ::getuid() % ::getgid(), errno);
194 const bool change_group = user.gid !
[all...]
/freebsd-current/sys/ofed/include/rdma/
H A Dib_addr.h167 union ib_gid *gid)
169 memcpy(gid, dev_addr->broadcast + 4, sizeof *gid);
188 static inline int rdma_ip2gid(const struct sockaddr *addr, union ib_gid *gid) argument
194 (struct in6_addr *)gid);
197 memcpy(gid->raw, &((const struct sockaddr_in6 *)addr)->sin6_addr, 16);
199 if (IN6_IS_SCOPE_LINKLOCAL((struct in6_addr *)gid->raw) ||
200 IN6_IS_ADDR_MC_INTFACELOCAL((struct in6_addr *)gid->raw)) {
201 gid->raw[2] = 0;
202 gid
166 ib_addr_get_mgid(struct rdma_dev_addr *dev_addr, union ib_gid *gid) argument
212 rdma_gid2ip(struct sockaddr *out, const union ib_gid *gid) argument
238 iboe_addr_get_sgid(struct rdma_dev_addr *dev_addr, union ib_gid *gid) argument
255 rdma_addr_get_sgid(struct rdma_dev_addr *dev_addr, union ib_gid *gid) argument
265 rdma_addr_set_sgid(struct rdma_dev_addr *dev_addr, union ib_gid *gid) argument
270 rdma_addr_get_dgid(struct rdma_dev_addr *dev_addr, union ib_gid *gid) argument
275 rdma_addr_set_dgid(struct rdma_dev_addr *dev_addr, union ib_gid *gid) argument
[all...]

Completed in 325 milliseconds

1234567891011>>