Searched defs:gid (Results 1 - 25 of 226) sorted by relevance

12345678910

/illumos-gate/usr/src/lib/libbc/libc/sys/4.2/
H A Dsetgid.c30 setgid(int gid) argument
32 return (setregid(gid, gid));
/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A Dgetgid.c32 int gid; local
34 if ((gid = _getgid()) > 0xffff)
35 gid = 60001; /* nobody */
36 return (gid);
H A Dsetregid.c32 setregid(int gid, int egid) argument
34 if (gid > 0xffff || egid > 0xffff) {
38 return (_setregid(gid, egid));
/illumos-gate/usr/src/lib/libbc/libc/sys/sys5/
H A Dsetgid.c32 setgid(int gid) argument
35 return (setregid(gid, gid));
37 return (setregid(-1, gid));
/illumos-gate/usr/src/lib/libcmdutils/common/
H A Dgid.c41 static boolean_t isreservedgid(gid_t gid);
44 * Find the highest unused uid. If the highest unused gid is "stop",
50 gid_t gid = start; local
58 if (grp->gr_gid >= gid) {
63 gid = grp->gr_gid + 1;
73 while (isreservedgid(gid) && gid < stop) /* Skip reserved IDs */
74 gid++;
75 *ret = gid;
80 * Check to see whether the gid i
84 isreservedgid(gid_t gid) argument
96 gid_t gid; local
[all...]
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_selfcred.h52 gid_t gid; member in struct:nscd_fork
/illumos-gate/usr/src/cmd/getent/
H A Ddogetgr.c72 gid_t gid; local
83 * a gid, if it can be completely transformed
84 * to a long integer. So we check for gid in
90 gid = strtoul(*list, &ptr, 10);
92 ((grp = getgrgid(gid)) == NULL)) {
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dsafechown.c24 safechown(const char *src, uid_t uid, gid_t gid, int mode) argument
58 if (fchown(fd, uid, gid)) {
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dchown.c36 fchownat(int fd, const char *name, uid_t uid, gid_t gid, int flags) argument
38 return (syscall(SYS_fchownat, fd, name, uid, gid, flags));
43 chown(const char *name, uid_t uid, gid_t gid) argument
46 return (syscall(SYS_chown, name, uid, gid));
48 return (fchownat(AT_FDCWD, name, uid, gid, 0));
54 lchown(const char *name, uid_t uid, gid_t gid) argument
57 return (syscall(SYS_lchown, name, uid, gid));
59 return (fchownat(AT_FDCWD, name, uid, gid, AT_SYMLINK_NOFOLLOW));
65 fchown(int filedes, uid_t uid, gid_t gid) argument
68 return (syscall(SYS_fchown, filedes, uid, gid));
[all...]
/illumos-gate/usr/src/cmd/oamuser/group/
H A Dgroupadd.c50 * groupadd [-g gid [-o]] group
54 * gid - a gid_t less than MAXUID
65 gid_t gid; /* group id */ local
68 char *gidstr = NULL; /* gid from command line */
106 /* Given a gid string - validate it */
110 gid = (gid_t)strtol(gidstr, &ptr, 10);
117 switch (valid_gid(gid, NULL)) {
119 errmsg(M_RESERVED, gid);
134 errmsg(M_TOOBIG, gid);
141 if (findnextgid(DEFRID+1, MAXUID, &gid) !
[all...]
H A Dgroupmod.c44 * groupmod -g gid [-o] | -n name group
48 * gid - a gid_t less than UID_MAX
64 gid_t gid; /* group id */ local
67 char *gidstr = NULL; /* gid from command line */
103 gid = (gid_t)strtol(gidstr, &ptr, 10);
110 switch (valid_gid(gid, NULL)) {
112 errmsg(M_RESERVED, gid);
128 errmsg(M_TOOBIG, gid);
134 } else gid = -1;
149 if ((valret = mod_group(grpname, gid, newnam
[all...]
H A Dmod_group.c48 /* Modify group to new gid and/or new name */
50 mod_group(char *group, gid_t gid, char *newgroup) argument
93 if (gid != -1)
94 g_ptr->gr_gid = gid;
/illumos-gate/usr/src/cmd/oamuser/user/
H A Dval_lgrp.c51 valid_lgroup(char *list, gid_t gid) argument
75 errmsg( M_TOOBIG, "gid", ptr );
84 if (g_ptr->gr_gid == gid) {
/illumos-gate/usr/src/cmd/fs.d/smbclnt/lsacl/
H A Dlsacl.c101 gid_t gid; local
136 error = smbfs_acl_sd2zfs(sd, acl, &uid, &gid);
152 if (gid == (gid_t)-1)
155 printf("group: %u\n", gid);
/illumos-gate/usr/src/uts/common/rpc/sec/
H A Dauthu_prot.c116 gid_t gid; local
128 gid = crgetgid(cr);
139 xdr_gid_t(xdrs, &gid) &&
154 gid_t gid; local
166 gid = crgetgid(cr);
173 xdr_gid_t(xdrs, &gid) &&
/illumos-gate/usr/src/uts/common/syscall/
H A Dchown.c58 fchownat(int fd, char *path, uid_t uid, gid_t gid, int flag) argument
65 gid != (gid_t)-1 && !VALID_GID(gid, zone)) {
69 vattr.va_gid = gid;
83 chown(char *path, uid_t uid, gid_t gid) argument
85 return (fchownat(AT_FDCWD, path, uid, gid, 0));
89 lchown(char *path, uid_t uid, gid_t gid) argument
91 return (fchownat(AT_FDCWD, path, uid, gid, AT_SYMLINK_NOFOLLOW));
95 fchown(int fd, uid_t uid, uid_t gid) argument
97 return (fchownat(fd, NULL, uid, gid,
[all...]
H A Dgid.c44 setgid(gid_t gid) argument
54 if (!VALID_GID(gid, zone))
57 if (gid > MAXUID) {
58 if (ksid_lookupbygid(zone, gid, &ksid) != 0)
79 if ((gid == cr->cr_rgid || gid == cr->cr_sgid) &&
88 newcr->cr_gid = gid;
98 * set-gid process must be marked to produce no core dump.
100 if (cr->cr_gid != gid ||
101 cr->cr_rgid != gid ||
144 setegid(gid_t gid) argument
[all...]
/illumos-gate/usr/src/lib/libast/common/string/
H A Dfmtgid.c27 * cached gid number -> name
56 * return gid name given gid number
60 fmtgid(int gid) argument
76 else if (ip = (Id_t*)dtmatch(dict, &gid))
78 if (gr = getgrgid(gid))
86 else if (gid == 0)
90 name = fmtbuf(z = sizeof(gid) * 3 + 1);
91 sfsprintf(name, z, "%I*d", sizeof(gid), gid);
[all...]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_cred.c46 * If the user can be mapped to a non-ephemeral ID, the cred gid is set
50 * obtained, the cred gid is set to whatever Solaris group is mapped
60 gid_t gid; local
71 gid = posix_grps->pg_grps[0];
73 gid = token->tkn_primary_grp.i_id;
76 if (crsetugid(cr, token->tkn_user.i_id, gid) != 0) {
/illumos-gate/usr/src/lib/libnsl/common/
H A Ddaemon_utils.c175 _create_daemon_lock(const char *name, uid_t uid, gid_t gid) argument
183 ret = fchown(fd, uid, gid);
/illumos-gate/usr/src/lib/libbc/inc/include/sys/
H A Dipc.h34 ushort gid; /* owner's group id */ member in struct:ipc_perm
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetgrnam.c82 getgrgid(gid_t gid) argument
90 ret = getgrgid_r(gid, b->result, b->buffer, b->buflen);
95 ret = getgrgid_r(gid, b->result, b->buffer, b->buflen);
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dt-sem.c131 drop_priv(uid, gid)
133 gid_t gid;
137 r = setgid(gid);
158 semtest(owner, uid, gid)
161 gid_t gid;
168 r = drop_priv(uid, gid);
186 r = sm_semsetowner(semid, uid, gid, 0660);
192 r = drop_priv(uid, gid);
327 gid_t gid; local
330 gid
[all...]
/illumos-gate/usr/src/cmd/fs.d/smbclnt/chacl/
H A Dchacl.c76 gid_t gid = (gid_t)-1; local
100 gid = (gid_t)tl;
146 if (gid != (gid_t)-1)
152 chacl(argv[optind], selector, uid, gid, acl);
160 chacl(char *file, uint32_t selector, uid_t uid, gid_t gid, acl_t *acl) argument
178 if (uid == (uid_t)-1 || gid == (gid_t)-1) {
190 if (gid == (gid_t)-1)
191 gid = st.st_gid;
197 error = smbfs_acl_zfs2sd(acl, uid, gid, selector, &sd);
213 if (gid
[all...]
/illumos-gate/usr/src/uts/common/sys/ib/clients/of/rdma/
H A Dib_addr.h79 union ib_gid *gid)
81 (void) memcpy(gid, dev_addr->broadcast + 4, sizeof (*gid));
85 union ib_gid *gid)
87 (void) memcpy(gid, dev_addr->src_dev_addr + 4, sizeof (*gid));
91 union ib_gid *gid)
93 (void) memcpy(dev_addr->src_dev_addr + 4, gid, sizeof (*gid));
97 union ib_gid *gid)
78 ib_addr_get_mgid(struct rdma_dev_addr *dev_addr, union ib_gid *gid) argument
84 ib_addr_get_sgid(struct rdma_dev_addr *dev_addr, union ib_gid *gid) argument
90 ib_addr_set_sgid(struct rdma_dev_addr *dev_addr, union ib_gid *gid) argument
96 ib_addr_get_dgid(struct rdma_dev_addr *dev_addr, union ib_gid *gid) argument
102 ib_addr_set_dgid(struct rdma_dev_addr *dev_addr, union ib_gid *gid) argument
[all...]

Completed in 63 milliseconds

12345678910