Home
last modified time | relevance | path

Searched refs:uid (Results 1 – 19 of 19) sorted by relevance

/openssh-portable/openbsd-compat/
H A Dpwcache.c48 user_from_uid(uid_t uid, int nouser) in user_from_uid() argument
51 uid_t uid; in user_from_uid() member
59 cp = c_uid + (uid & MASK); in user_from_uid()
60 if (cp->uid != uid || cp->name == NULL) { in user_from_uid()
67 if ((pw = getpwuid(uid)) == NULL) { in user_from_uid()
70 (void)snprintf(nbuf, sizeof(nbuf), "%lu", (u_long)uid); in user_from_uid()
72 cp->uid = uid; in user_from_uid()
H A Dbsd-getpeereid.c35 *euid = cred.uid; in getpeereid()
H A Dport-aix.c303 sys_auth_get_lastlogin_msg(const char *user, uid_t uid) in sys_auth_get_lastlogin_msg() argument
/openssh-portable/
H A Dsshlogin.c75 get_last_login_time(uid_t uid, const char *logname, in get_last_login_time() argument
80 login_get_lastlog(&li, uid); in get_last_login_time()
90 store_lastlog_message(const char *user, uid_t uid) in store_lastlog_message() argument
104 time_string = sys_auth_get_lastlogin_msg(user, uid); in store_lastlog_message()
112 last_login_time = get_last_login_time(uid, user, hostname, in store_lastlog_message()
136 record_login(pid_t pid, const char *tty, const char *user, uid_t uid, in record_login() argument
142 store_lastlog_message(user, uid); in record_login()
H A Dplatform-misc.c26 platform_sys_dir_uid(uid_t uid) in platform_sys_dir_uid() argument
28 if (uid == 0) in platform_sys_dir_uid()
31 if (uid == PLATFORM_SYS_DIR_UID) in platform_sys_dir_uid()
H A Daudit-linux.c42 linux_audit_record_event(int uid, const char *username, const char *hostname, in linux_audit_record_event() argument
56 username == NULL ? uid : -1, hostname, ip, ttyn, success); in linux_audit_record_event()
88 if (linux_audit_record_event(li->uid, NULL, li->hostname, NULL, in audit_session_open()
H A Daudit-bsm.c235 selected(char *username, uid_t uid, au_event_t event, int sf) in selected() argument
242 if (uid < 0) { in selected()
258 uid_t uid = -1; in bsm_audit_record() local
264 uid = the_authctxt->pw->pw_uid; in bsm_audit_record()
269 sel = selected(the_authctxt->user, uid, event_no, rc); in bsm_audit_record()
277 (void) au_write(ad, AUToSubjectFunc(uid, uid, gid, uid, gid, in bsm_audit_record()
H A Dloginrec.h69 uid_t uid; /* UID of this user */ member
122 struct logininfo *login_get_lastlog(struct logininfo *li, const uid_t uid);
124 unsigned int login_get_lastlog_time(const uid_t uid);
H A Dsftp-common.c59 a->uid = 0; in attrib_clear()
75 a->uid = st->st_uid; in stat_to_attrib()
93 st->st_uid = a->uid; in attrib_to_stat()
118 if ((r = sshbuf_get_u32(b, &a->uid)) != 0 || in decode_attrib()
166 if ((r = sshbuf_put_u32(b, a->uid)) != 0 || in encode_attrib()
H A Dsftp-common.h38 u_int32_t uid; member
H A Dloginrec.c278 login_get_lastlog_time(const uid_t uid) in login_get_lastlog_time() argument
282 if (login_get_lastlog(&li, uid)) in login_get_lastlog_time()
302 login_get_lastlog(struct logininfo *li, const uid_t uid) in login_get_lastlog() argument
307 li->uid = uid; in login_get_lastlog()
314 pw = getpwuid(uid); in login_get_lastlog()
317 (long)uid); in login_get_lastlog()
392 li->uid = pw->pw_uid; in login_init_entry()
1508 offset = (off_t) ((u_long)li->uid * sizeof(struct lastlog)); in lastlog_openseek()
H A Dsftp-server.c948 (u_long)a.uid, (u_long)a.gid); in process_setstat()
949 r = chown(name, a.uid, a.gid); in process_setstat()
1009 (u_long)a.uid, (u_long)a.gid); in process_fsetstat()
1011 r = fchown(fd, a.uid, a.gid); in process_fsetstat()
1013 r = chown(name, a.uid, a.gid); in process_fsetstat()
1428 (u_long)a.uid, (u_long)a.gid); in process_extended_lsetstat()
1429 r = fchownat(AT_FDCWD, name, a.uid, a.gid, in process_extended_lsetstat()
H A Dlogintest.c76 li->pid, li->uid, li->line, in dump_logininfo()
H A Dmisc.c1105 tilde_expand_filename(const char *filename, uid_t uid) in tilde_expand_filename() argument
1125 } else if ((pw = getpwuid(uid)) == NULL) /* ~/path */ in tilde_expand_filename()
1126 fatal("tilde_expand_filename: No such uid %ld", (long)uid); in tilde_expand_filename()
2083 uid_t uid, char *err, size_t errlen) in safe_path() argument
2102 if ((!platform_sys_dir_uid(stp->st_uid) && stp->st_uid != uid) || in safe_path()
2118 (!platform_sys_dir_uid(st.st_uid) && st.st_uid != uid) || in safe_path()
H A Dserverloop.c109 bind_permitted(int port, uid_t uid) in bind_permitted() argument
113 if (port < IPPORT_RESERVED && uid != 0) in bind_permitted()
H A Dsession.c911 read_etc_default_login(char ***env, u_int *envsize, uid_t uid) in read_etc_default_login() argument
928 if (uid == 0) in read_etc_default_login()
1311 safely_chroot(const char *path, uid_t uid) in safely_chroot() argument
H A Dsftp.c1737 aa->uid = n_arg; in parse_dispatch_command()
H A Dconfigure.ac627 AC_DEFINE([PLATFORM_SYS_DIR_UID], 2, [System dirs owned by bin (uid 2)])
731 AC_DEFINE([PLATFORM_SYS_DIR_UID], 2, [System dirs owned by bin (uid 2)])
1002 [Define if pam_chauthtok wants real uid set
/openssh-portable/regress/
H A Dcheck-perm.c35 safely_chroot(const char *path, uid_t uid) in safely_chroot() argument
81 platform_sys_dir_uid(uid_t uid) in platform_sys_dir_uid() argument
83 if (uid == 0) in platform_sys_dir_uid()
86 if (uid == PLATFORM_SYS_DIR_UID) in platform_sys_dir_uid()
95 uid_t uid, char *err, size_t errlen) in auth_secure_path() argument
114 if ((!platform_sys_dir_uid(stp->st_uid) && stp->st_uid != uid) || in auth_secure_path()
130 (!platform_sys_dir_uid(st.st_uid) && st.st_uid != uid) || in auth_secure_path()

Completed in 47 milliseconds