Searched refs:uid (Results 1 - 25 of 541) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libcmdutils/common/
H A Duid.c42 static boolean_t isreserveduid(uid_t uid);
45 * Find the highest unused uid. If the highest unused uid is "stop",
51 uid_t uid = start; local
59 if (pwd->pw_uid >= uid) {
64 uid = pwd->pw_uid + 1;
74 while (isreserveduid(uid) && uid < stop) /* Skip reserved IDs */
75 uid++;
76 *ret = uid;
85 isreserveduid(uid_t uid) argument
97 uid_t uid; local
[all...]
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/safety/
H A Dtst.uid.d31 * collect uid at every fbt probe and at every firing of a
37 @a[uid] = count();
42 @a[uid] = count();
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/vars/
H A Dtst.uid.d32 /curpsinfo->pr_uid == uid/
39 printf("%d != %d\n", curpsinfo->pr_uid, uid);
/illumos-gate/usr/src/cmd/oamuser/lib/
H A Dvuid.c44 valid_uid( uid, pptr )
45 uid_t uid;
50 if( uid <= 0 ) return( INVALID );
51 if( uid <= DEFRID ) {
52 if( pptr ) *pptr = getpwuid( uid );
57 if( uid > MAXUID ) return( TOOBIG );
59 if( t_pptr = getpwuid( uid ) ) {
H A Dfile.c32 check_perm( statbuf, uid, gid, perm )
34 uid_t uid;
47 if( (statbuf.st_uid == uid) &&
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Dgetname.c64 uid_t uid; local
72 uid = getuid();
78 || p->pw_uid != uid
80 if ((p = getpwuid(uid)))
89 if (uid > 0) {
92 sprintf (logname, "%d", uid);
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/scripting/
H A Dtst.uid.d33 * print uid in a script
41 printf("The uid is %d\n", $uid);
H A Dtst.uid.ksh32 # To verify uid of current process.
54 /\$uid != \$1/
60 /\$uid == \$1/
72 userid=`ps -o pid,uid | grep "$$ " | awk '{print $2}' 2>/dev/null`
74 print -u2 "unable to get uid of the current process with pid = $$"
/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, gi
[all...]
/illumos-gate/usr/src/cmd/bnu/
H A Dgetpwinfo.c36 * get passwd file info for logname or uid
37 * uid -> uid #
43 * FAIL -> failure (logname and uid not found)
46 guinfo(uid, name)
47 uid_t uid;
56 if (pwd != NULL && pwd->pw_uid == uid)
61 if ((pwd = getpwuid(uid)) == NULL) {
63 /* can not find uid in passwd file */
75 * uid
[all...]
/illumos-gate/usr/src/cmd/gss/gssd/
H A Dgssd_getuid.c27 * Routines to set gssd value of uid and replace getuid libsys call.
53 set_gssd_uid(uid_t uid) argument
79 printf(gettext("set_gssd_uid called with uid = %d\n"), uid);
82 * nfsd runs as UID 1, so upcalls triggered by nfsd will cause uid to
85 if (uid == 1)
86 uid = 0;
93 krb5_cc_uid = uid;
99 * Switch uid and set the saved set-uid t
[all...]
/illumos-gate/usr/src/lib/libsmbfs/netsmb/
H A Dsmb_keychain.h50 int smbfs_keychain_add(uid_t uid, const char *domain, const char *user,
54 int smbfs_keychain_addhash(uid_t uid, const char *domain, const char *user,
58 int smbfs_keychain_del(uid_t uid, const char *domain, const char *user);
/illumos-gate/usr/src/cmd/mailx/
H A Dgetname.c51 * Search the passwd file for a uid. Return name through ref parameter
57 getname(uid_t uid, char namebuf[]) argument
61 if (uid == (uid_t)-1) {
66 pw = getpwuid(uid);
/illumos-gate/usr/src/lib/libast/common/string/
H A Dfmtuid.c27 * uid number -> name
56 * return uid name given uid number
60 fmtuid(int uid) argument
76 else if (ip = (Id_t*)dtmatch(dict, &uid))
78 if (pw = getpwuid(uid))
86 else if (uid == 0)
90 name = fmtbuf(z = sizeof(uid) * 3 + 1);
91 sfsprintf(name, z, "%I*d", sizeof(uid), uid);
[all...]
/illumos-gate/usr/src/cmd/acct/lib/
H A Duidtonam.c31 * convert uid to login name; interface to getpwuid that keeps up to USIZE1
52 uidtonam(uid)
53 uid_t uid;
60 if (uid == up->uuid)
63 if ((pp = getpwuid(uid)) == NULL)
67 up->uuid = uid;
/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
64 if (uid != (uid_t)-1 && !VALID_UID(uid, zone) ||
68 vattr.va_uid = uid;
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, gi
[all...]
H A Duid.c44 setuid(uid_t uid) argument
51 uid_t oldruid = uid;
56 if (!VALID_UID(uid, zone))
59 if (uid > MAXUID) {
60 if (ksid_lookupbyuid(zone, uid, &ksid) != 0)
83 if ((uid == cr->cr_ruid || uid == cr->cr_suid) &&
84 secpolicy_allow_setid(cr, uid, B_TRUE) != 0) {
92 newcr->cr_uid = uid;
95 } else if ((error = secpolicy_allow_setid(cr, uid, B_FALS
189 seteuid(uid_t uid) argument
[all...]
/illumos-gate/usr/src/cmd/getent/
H A Ddogetpw.c42 uid_t uid; local
54 * a uid, if it can be completely transformed
55 * to a long integer. So we check for uid in
61 uid = strtoul(*list, &ptr, 10);
63 ((pwp = getpwuid(uid)) == NULL)) {
/illumos-gate/usr/src/uts/common/rpc/
H A Drpcsys.h48 uid_t uid; member in struct:krpc_revauth_1
55 uid32_t uid; member in struct:krpc_revauth_132
67 #define uid_1 krpc_revauth_u.r.uid
/illumos-gate/usr/src/cmd/gss/gsscred/
H A Dgsscred.h31 * name and unix uid.
75 int file_addGssCredEntry(const gss_buffer_t hexName, const char *uid,
77 int file_getGssCredEntry(const gss_buffer_t name, const char *uid,
79 int file_deleteGssCredEntry(const gss_buffer_t name, const char *uid,
85 * GSS entry point for retrieving user uid information based on
88 int gss_getGssCredEntry(const gss_buffer_t expName, uid_t *uid);
H A Dgsscred_file.c37 * Manages mapping between a security principal name and unix uid.
60 const char *uid, uid_t *uidOut);
68 int file_addGssCredEntry(const gss_buffer_t hexName, const char *uid, argument
85 "%s\t%s\t%s\n", (char *)hexName->value, uid, comment);
98 * To search by uid only, supply a non-null value of uid.
100 int file_getGssCredEntry(const gss_buffer_t name, const char *uid, argument
121 if (name == NULL && uid == NULL) {
126 if (matchEntry(entry, name, uid, NULL))
138 * GSS entry point for retrieving user uid informatio
173 file_deleteGssCredEntry(const gss_buffer_t name, const char *uid, char **errDetails) argument
258 matchEntry(const char *entry, const gss_buffer_t name, const char *uid, uid_t *uidOut) argument
[all...]
/illumos-gate/usr/src/cmd/logname/
H A Dlogname.c53 uid_t uid; local
56 uid = getuid();
57 pass = getpwuid(uid);
61 (void) snprintf(uidbuf, sizeof (uidbuf), "%u", uid);
/illumos-gate/usr/src/lib/libidmap/common/
H A Didmap_cache.h52 uid_t *uid);
64 uid_t uid);
71 idmap_cache_lookup_winnamebyuid(char **winname, char **windomain, uid_t uid);
78 uid_t *uid);
85 idmap_cache_add_sid2uid(const char *sid_prefix, idmap_rid_t rid, uid_t uid,
98 uid_t uid, int direction);
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsmb_pass.c106 * uid/zoneid/username/domainname.
118 * The nodes are added sorted on the uid/zoneid/domainname/username
120 * Compare uid's. The owner who stored the node gets access.
125 if (pa->uid < pb->uid)
127 if (pa->uid > pb->uid)
149 * Initialization of the code that deals with uid and passwords.
209 uid_t uid; local
212 uid
282 uid_t uid; local
336 uid_t uid; local
370 uid_t uid; local
[all...]
/illumos-gate/usr/src/cmd/isns/isnsd/
H A Dhtable.c53 * uid - the object UID.
61 const uint32_t uid
67 if (x->uid > uid) {
69 } else if (x->uid < uid) {
86 * uid - the previous object UID.
94 const uint32_t uid
101 if (x->uid > uid) {
467 uint32_t uid = *uid_p; local
544 uint32_t uid; local
708 uint32_t uid = 0; local
835 htab_remove( htab_t *tab, void *p, uint32_t uid, int clone_flag ) argument
960 htab_lookup( htab_t *tab, void *p, uint32_t uid, uint32_t *uid_p, int (*callback)(void *, void *), int rekey ) argument
[all...]

Completed in 84 milliseconds

1234567891011>>