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

12345

/osnet-11/usr/src/lib/libc/port/sys/
H A Dchown.c35 fchownat(int fd, const char *name, uid_t uid, gid_t gid, int flags) argument
37 return (syscall(SYS_fchownat, fd, name, uid, gid, flags));
42 chown(const char *name, uid_t uid, gid_t gid) argument
44 return (fchownat(AT_FDCWD, name, uid, gid, 0));
49 lchown(const char *name, uid_t uid, gid_t gid) argument
51 return (fchownat(AT_FDCWD, name, uid, gid, AT_SYMLINK_NOFOLLOW));
56 fchown(int filedes, uid_t uid, gid_t gid) argument
58 return (fchownat(filedes, NULL, uid, gid, 0));
/osnet-11/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...]
/osnet-11/usr/src/lib/libidmap/common/
H A Didmap_cache.h56 gid_t *gid);
68 gid_t gid);
74 idmap_cache_lookup_winnamebygid(char **winname, char **windomain, gid_t gid);
82 gid_t *gid);
89 idmap_cache_add_sid2gid(const char *sid_prefix, idmap_rid_t rid, gid_t gid,
102 gid_t gid, int direction);
H A Didmap_api_nfsv4.c75 * Get gid given SID.
78 idmap_nfsv4_getgidbysid(const char *sid, int flag, gid_t *gid) argument
91 rc = idmap_cache_lookup_gidbywinname(sid, NULL, gid);
100 &is_user, &is_wuser, gid, NULL, &direction, NULL);
103 idmap_cache_add_winname2gid(sid, NULL, *gid, direction);
202 * Get winname given gid
205 idmap_nfsv4_getwinnamebygid(gid_t gid, int flag, char **name) argument
207 return (idmap_nfsv4_getwinnamebypid(gid, 0, flag, name));
/osnet-11/usr/src/lib/nsswitch/ad/common/
H A Dgetgrent.c31 const char *name, const char *domain, gid_t gid)
39 buflen = snprintf(NULL, 0, "%s@%s::%u:", name, domain, gid) + 1;
53 (void) snprintf(buffer, buflen, "%s@%s::%u:", name, domain, gid);
72 gid_t gid; local
88 * Map the name to gid using idmap service.
91 is_user = 0; /* Map name to gid */
93 0, &is_user, &is_wuser, &gid, NULL, NULL, NULL);
100 if (update_buffer(be, argp, name, dname, gid) < 0)
127 if (argp->key.gid <= MAXUID)
131 if (idmap_get_u2w_mapping(&argp->key.gid, NUL
30 update_buffer(ad_backend_ptr be, nss_XbyY_args_t *argp, const char *name, const char *domain, gid_t gid) argument
[all...]
H A Dgetpwnam.c57 uid_t uid, gid_t gid, const char *gecos,
70 argp->key.name, "x", uid, gid, gecos, homedir, shell) + 1;
75 name, domain, "x", uid, gid, gecos, homedir, shell) + 1;
93 argp->key.name, "x", uid, gid, gecos, homedir, shell);
96 name, domain, "x", uid, gid, gecos, homedir, shell);
180 gid_t gid; local
248 if (idmap_get_gidbysid(ig, sid_v[0], grid, 0, &gid, &gstat) != 0)
270 if (update_buffer(be, argp, name_v[0], domain, uid, gid,
306 gid_t gid; local
361 is_user = 0; /* Map name to primary gid */
55 update_buffer(ad_backend_ptr be, nss_XbyY_args_t *argp, const char *name, const char *domain, uid_t uid, gid_t gid, const char *gecos, const char *homedir, const char *shell) argument
398 gid_t gid; local
[all...]
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dkrbfileio.c73 gid_t gid; local
76 gid = getgid();
78 fchown(fd, uid, gid);
H A Dsafechown.c23 safechown(const char *src, uid_t uid, gid_t gid, int mode) argument
57 if (fchown(fd, uid, gid)) {
/osnet-11/usr/src/lib/udapl/udapl_tavor/include/
H A Ddapl_name_service.h58 OUT ib_gid_t *gid);
/osnet-11/usr/src/lib/libcmd/common/
H A Dchgrp.c120 typedef struct Key_s /* uid/gid key */
123 int gid; /* gid */ member in struct:Key_s
126 typedef struct Map_s /* uid/gid map */
137 #define OPT_GID 0x0004 /* have gid */
155 lchown(const char* path, uid_t uid, gid_t gid) argument
163 * parse uid and gid from s
175 key->uid = key->gid = NOID;
218 key->gid = n;
237 int gid; local
[all...]
H A Dcksum.c124 gid_t gid; /* caller gid */ member in struct:State_s
244 (st->st_gid != state->gid && ((st->st_mode & S_ISGID) || (st->st_mode & S_IRGRP) && !(st->st_mode & S_IROTH) || (st->st_mode & S_IXGRP) && !(st->st_mode & S_IXOTH))) ? fmtgid(st->st_gid) : "-");
266 int gid; local
294 gid = -1;
298 gid = struid(t);
338 if (gid < 0 || gid == st.st_gid)
339 gid = -1;
345 error(2, "%s: gid shoul
[all...]
/osnet-11/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...]
H A Dshm.c116 ** gid -- gid to use
125 sm_shmsetowner(shmid, uid, gid, mode)
128 gid_t gid;
138 shmid_ds.shm_perm.gid = gid;
/osnet-11/usr/src/lib/pam_modules/dhkeys/
H A Dkey_call_uid.c47 * Create SYS (UNIX) style authenticator for the given uid/gid
52 authsys_create_uid(uid_t uid, gid_t gid) argument
64 res = authsys_create(host, uid, gid, 0, (gid_t *)NULL);
70 * my_key_call(proc, xdr_arg, arg, xdr_rslt, rslt, uit, gid)
78 xdrproc_t xdr_rslt, char *rslt, uid_t uid, gid_t gid)
131 clnt->cl_auth = authsys_create_uid(uid, gid);
143 key_setnet_uid(struct key_netstarg *arg, uid_t uid, gid_t gid) argument
148 (char *)arg, xdr_keystatus, (char *)&status, uid, gid)) {
161 uid_t uid, gid_t gid)
215 return (key_setnet_uid(&tmp, uid, gid));
77 my_key_call(rpcproc_t proc, xdrproc_t xdr_arg, char *arg, xdrproc_t xdr_rslt, char *rslt, uid_t uid, gid_t gid) argument
159 key_setnet_g_uid(const char *netname, const char *skey, keylen_t skeylen, const char *pkey, keylen_t pkeylen, algtype_t algtype, uid_t uid, gid_t gid) argument
236 key_secretkey_is_set_uid(uid_t uid, gid_t gid) argument
256 key_removesecret_g_uid(uid_t uid, gid_t gid) argument
[all...]
/osnet-11/usr/src/lib/nsswitch/nis/common/
H A Dgetpwnam.c57 * Validates passwd entry replacing uid/gid > MAXUID by ID_NOBODY.
64 gid_t gid; local
90 gidl = strtoul(gidp, (char **)&linep, 10); /* grab gid */
98 gid = (gidl > MAXUID) ? GID_NOBODY : (gid_t)gidl;
101 idlen = snprintf(NULL, 0, "%u:%u", uid, gid);
110 *linepp, uid, gid, linep);
119 (void) snprintf(uidp, idlen + 1, "%u:%u", uid, gid);
H A Dgetgrent.c59 if (argp->key.gid > MAXUID)
61 (void) snprintf(gidstr, 12, "%d", argp->key.gid);
66 * Validates group entry replacing gid > MAXUID by GID_NOBODY.
72 ulong_t gid; local
91 gid = strtoul(gidp, (char **)&linep, 10); /* grab gid */
96 if (gid <= MAXUID)
115 /* Replace ephemeral gid by GID_NOBODY in the same buffer */
186 * Add gid to gid_array if it's not already there. gid_array must have room
190 add_gid(gid_t gid_array[], int numgids, gid_t gid) argument
214 gid_t gid; local
[all...]
/osnet-11/usr/src/lib/libbsm/common/
H A Daudit_rexecd.c139 gid_t gid; local
169 gid = (gid_t)-1;
172 gid = pwd->pw_gid;
196 au_to_subject_ex(uid, uid, gid, uid, gid, pid, pid, &tid));
250 gid_t gid; local
280 gid = (gid_t)-1;
283 gid = pwd->pw_gid;
307 au_to_subject_ex(uid, uid, gid, uid, gid, pi
[all...]
H A Daudit_rexd.c149 audit_rexd_fail(msg, hostname, user, uid, gid, shell, cmd)
154 gid_t gid; /* group of user requesting service */
204 au_to_subject_ex(uid, uid, gid, uid, gid, pid, pid,
268 audit_rexd_success(hostname, user, uid, gid, shell, cmd)
272 gid_t gid; /* group of user requesting service */
330 au_to_subject_ex(uid, uid, gid, uid, gid, pid, pid,
/osnet-11/usr/src/lib/udapl/udapl_tavor/common/
H A Ddapl_name_service.c122 ib_gid_t gid; local
137 &gid.gid_prefix, &gid.gid_guid);
152 * Load into the ip/gid mapping table
166 gmt.gid.gid_prefix = gid.gid_prefix;
167 gmt.gid.gid_guid = gid.gid_guid;
171 &gid.gid_prefix, &gid
233 dapls_ns_lookup_address( IN DAPL_IA *ia_ptr, IN DAT_IA_ADDRESS_PTR remote_ia_address, IN DAT_TIMEOUT timeout, OUT ib_gid_t *gid) argument
326 dapls_ns_lookup_address( IN DAPL_IA *ia_ptr, IN DAT_IA_ADDRESS_PTR remote_ia_address, IN DAT_TIMEOUT timeout, OUT ib_gid_t *gid) argument
350 dapls_ns_lookup_v4( IN DAPL_IA *ia_ptr, IN struct sockaddr_in *addr, IN DAT_TIMEOUT timeout, OUT ib_gid_t *gid) argument
443 dapls_ns_lookup_v6( IN DAPL_IA *ia_ptr, IN struct sockaddr_in6 *addr, IN DAT_TIMEOUT timeout, OUT ib_gid_t *gid) argument
[all...]
/osnet-11/usr/src/lib/libc/port/gen/
H A Dgetgrnam_r.c65 _uncached_getgrgid_r(gid_t gid, struct group *result, char *buffer, int buflen);
92 getgrgid_r(gid_t gid, struct group *result, char *buffer, int buflen) argument
97 arg.key.gid = gid;
104 _uncached_getgrgid_r(gid_t gid, struct group *result, char *buffer, argument
110 arg.key.gid = gid;
121 __posix_getgrgid_r(gid_t gid, struct group *grp, char *buffer, argument
128 if ((*result = getgrgid_r(gid, grp, buffer, (uintptr_t)bufsize))
373 p = next; /* gid */
448 gid_t gid = grp->gr_gid; local
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/User/
H A Dgrent.t22 unless (@grent) { plan skip_all => "no gid 0"; }
38 is( $grent->gid, $grent[2], ' gid' );
/osnet-11/usr/src/lib/nsswitch/compat/common/
H A Dgetgrent.c38 * bogus uid/gid values.
64 * Validates group entry replacing gid > MAXUID by GID_NOBODY.
70 ulong_t gid; local
88 gid = strtoul(gidp, (char **)&linep, 10); /* grab gid */
93 if (gid <= MAXUID)
143 return (g->gr_gid == argp->key.gid);
153 if (argp->key.gid > MAXUID)
200 int gid = g->gr_gid; local
203 if (gid
[all...]
/osnet-11/usr/src/lib/libshell/common/bltins/
H A Dregress.c69 "[101:egid?The intercept effective gid is set to \aoriginal-egid\a. The "
70 "effective gid of the underlying system process is not affected. The "
74 "[+getegid()?The intercept effecive gid is returned. The "
75 "\bsetgid\b() intercept may change this between the real gid and "
77 "[+setgid(gid)?Sets the intercept effective gid to \agid\a. "
78 "Fails if \agid\a is neither the real gid nor "
168 int setgid(gid_t gid) argument
174 if (gid != intercept_rgid && gid !
[all...]
/osnet-11/usr/src/lib/nsswitch/files/common/
H A Dgetgrent.c90 /* gid */
94 /* check if gid is empty or overflows */
98 return ((gid_t)gr_gid == argp->key.gid);
108 if (argp->key.gid > MAXUID)
114 * Validates group entry replacing gid > MAXUID by GID_NOBODY.
121 ulong_t gid; local
126 * getbygid() rejects searching by ephemeral gid therefore
128 * an ephemeral gid.
148 gid = strtoul(gidp, (char **)&linep, 10); /* grab gid */
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/t/io/
H A Dfs.t86 my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,
95 ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,
123 ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,
138 ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,
147 ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,
158 ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,
163 ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,
171 ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,
182 ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,
234 ($dev,$ino,$mode,$nlink,$uid,$gid,
[all...]

Completed in 60 milliseconds

12345