/busybox-1.35.0/libbb/ |
D | bb_pwd.c | 33 struct passwd* FAST_FUNC xgetpwuid(uid_t uid) in xgetpwuid() argument 36 struct passwd *pw = getpwuid(uid); in xgetpwuid() 38 bb_error_msg_and_die("unknown uid %u", (unsigned)uid); in xgetpwuid() 50 char* FAST_FUNC xuid2uname(uid_t uid) in xuid2uname() argument 53 struct passwd *pw = xgetpwuid(uid); in xuid2uname() 63 char* FAST_FUNC uid2uname(uid_t uid) in uid2uname() argument 65 struct passwd *pw = getpwuid(uid); in uid2uname() 75 char* FAST_FUNC uid2uname_utoa(uid_t uid) in uid2uname_utoa() argument 77 char *name = uid2uname(uid); in uid2uname_utoa() 78 return (name) ? name : utoa(uid); in uid2uname_utoa()
|
D | appletlib.c | 562 uid_t uid; in check_suid() local 574 if (sct->m_ugid.uid == ruid) in check_suid() 598 uid = ruid; in check_suid() 600 uid = sct->m_ugid.uid; in check_suid() 602 if (setresuid(-1, uid, uid)) in check_suid()
|
/busybox-1.35.0/libpwdgrp/ |
D | uidgid_get.c | 48 u->uid = n; in get_uidgid() 59 u->uid = pwd->pw_uid; in get_uidgid() 93 u->uid = u->gid = (gid_t)-1L; in parse_chown_usergroup_or_die() 104 u->uid = get_ug_id(user_group, xuname2uid); in parse_chown_usergroup_or_die() 121 printf("%u = %u:%u\n", u, ug.uid, ug.gid); 122 ug.uid = ug.gid = 1111; 124 printf("%u = %u:%u\n", u, ug.uid, ug.gid); 125 ug.uid = ug.gid = 1111; 127 printf("%u = %u:%u\n", u, ug.uid, ug.gid); 128 ug.uid = ug.gid = 1111; [all …]
|
/busybox-1.35.0/procps/ |
D | pstree.c | 47 uid_t uid; member 142 static PROC *new_proc(const char *comm, pid_t pid, uid_t uid) in new_proc() argument 148 new->uid = uid; in new_proc() 167 if (cmp == 0 && (*walk)->child->uid > child->uid) in add_child() 175 uid_t uid /*, char isthread*/) in add_proc() argument 181 this = new_proc(comm, pid, uid); in add_proc() 184 this->uid = uid; in add_proc() 329 static void dump_by_user(PROC *current, uid_t uid) in dump_by_user() argument 336 if (current->uid == uid) { in dump_by_user() 344 dump_by_user(walk->child, uid); in dump_by_user() [all …]
|
D | ps.c | 214 safe_strncpy(buf, get_cached_username(ps->uid), size+1); in func_user() 222 const char *user = get_cached_username(ps->uid); in func_user() 226 sprintf(buf, "%*u", size, (unsigned)ps->uid); in func_user() 782 p->state[0], p->uid, p->pid, p->ppid, buf6, bufr, tty, in ps_main() 787 const char *user = get_cached_username(p->uid); in ps_main()
|
D | smemcap.c | 37 sprintf(header.uid, "%o", sb->st_uid & 07777777); in writeheader()
|
/busybox-1.35.0/archival/libarchive/ |
D | get_header_cpio.c | 15 int uid ; /* of hardlinks with zero size body */ member 26 unsigned size, uid, gid, mtime; in get_header_cpio() local 51 &inode, &mode, &uid, &gid, in get_header_cpio() 57 if (archive_handle->cpio__owner.uid != (uid_t)-1L) in get_header_cpio() 58 uid = archive_handle->cpio__owner.uid; in get_header_cpio() 61 file_header->uid = uid; in get_header_cpio() 107 new->uid = uid ; in get_header_cpio() 156 file_header->uid = make_me->uid; in get_header_cpio()
|
D | header_verbose_list.c | 15 char uid[sizeof(int)*3 + 2]; in header_verbose_list() local 24 sprintf(uid, "%u", (unsigned)file_header->uid); in header_verbose_list() 25 user = uid; in header_verbose_list() 51 (unsigned)file_header->uid, in header_verbose_list()
|
D | data_extract_all.c | 219 uid_t uid = file_header->uid; in data_extract_all() local 226 if (pwd) uid = pwd->pw_uid; in data_extract_all() 235 chown(dst_name, uid, gid); in data_extract_all()
|
D | get_header_ar.c | 102 typed->uid = read_num(ar.formatted.uid, 10, sizeof(ar.formatted.uid)); in get_header_ar()
|
D | init_handle.c | 20 archive_handle->cpio__owner.uid = (uid_t)-1L; in init_handle()
|
/busybox-1.35.0/util-linux/ |
D | ipcs.c | 117 pw = getpwuid(ipcp->uid); in print_perms() 119 else printf(" %-10d", ipcp->uid); in print_perms() 205 pw = getpwuid(ipcp->uid); in do_shm() 211 printf("%-10d %-10d", shmid, ipcp->uid); in do_shm() 224 printf("%-10d %-10d", shmid, ipcp->uid); in do_shm() 233 printf("%-10d %-10d", shmid, ipcp->uid); in do_shm() 321 pw = getpwuid(ipcp->uid); in do_sem() 327 printf("%-8d %-10d", semid, ipcp->uid); in do_sem() 342 printf("%-10d %-9d", semid, ipcp->uid); in do_sem() 422 pw = getpwuid(ipcp->uid); in do_msg() [all …]
|
D | nsenter.c | 165 int uid = 0; in nsenter_main() local 177 &target_pid, &uid, &gid, in nsenter_main() 264 xsetuid(uid); in nsenter_main()
|
/busybox-1.35.0/miscutils/ |
D | makedevs.c | 214 uid_t uid; in makedevs_main() local 230 uid = (*user) ? get_ug_id(user, xuname2uid) : getuid(); in makedevs_main() 240 if (chown(full_name, uid, gid) == -1) { in makedevs_main() 259 if (chown(full_name, uid, gid) < 0) in makedevs_main() 291 } else if (chown(nameN, uid, gid) < 0) { in makedevs_main()
|
/busybox-1.35.0/include/ |
D | ar_.h | 13 char uid[6]; member
|
D | bb_archive.h | 39 uid_t uid; member 147 char uid[8]; /* 108-115 */ member
|
/busybox-1.35.0/testsuite/cp/ |
D | cp-does-not-copy-unreadable-file | 5 # run as user with nonzero uid
|
/busybox-1.35.0/archival/ |
D | ar.c | 95 fh->uid > 99999 ? 0 : (int)fh->uid, in output_ar_header() 134 handle->file_header->uid = st.st_uid; in write_ar_header() 208 (int)file_header->uid, (int)file_header->gid, in header_verbose_list_ar()
|
D | cpio.c | 206 G.owner_ugid.uid = -1L; \ 270 if (G.owner_ugid.uid != (uid_t)-1L) in cpio_o() 271 st.st_uid = G.owner_ugid.uid; in cpio_o()
|
/busybox-1.35.0/coreutils/ |
D | install.c | 110 uid_t uid; in install_main() local 184 uid = (opts & OPT_OWNER) ? get_ug_id(uid_str, xuname2uid) : getuid(); in install_main() 259 && lchown(dest, uid, gid) == -1 in install_main()
|
D | chown.c | 109 uid_t u = (param.ugid.uid == (uid_t)-1L) ? statbuf->st_uid : param.ugid.uid; in fileAction()
|
/busybox-1.35.0/loginutils/ |
D | adduser.c | 191 char *uid; in adduser_main() local 211 &usegroup, &uid, &skel in adduser_main() 214 pw.pw_uid = xatou_range(uid, 0, CONFIG_LAST_ID); in adduser_main()
|
/busybox-1.35.0/docs/ |
D | mdev.txt | 54 [-][envmatch]<device regex> <uid>:<gid> <permissions> 56 [envmatch]@<maj[,min1[-min2]]> <uid>:<gid> <permissions> 58 $envvar=<regex> <uid>:<gid> <permissions> 71 <device regex> <uid>:<gid> <permissions> [=path] 89 <device regex> <uid>:<gid> <permissions> [=path] [@|$|*<command>] 91 <device regex> <uid>:<gid> <permissions> [>path] [@|$|*<command>] 93 <device regex> <uid>:<gid> <permissions> [!] [@|$|*<command>]
|
/busybox-1.35.0/testsuite/ |
D | makedevs.device_table.txt | 19 # <name> <type> <mode> <uid> <gid> <major> <minor> <start> <inc> <count> 26 # uid is the user id for the target file, gid is the group id for the 34 #<name> <type> <mode> <uid> <gid> <major> <minor> <start> <inc> <count> 41 #<name> <type> <mode> <uid> <gid> <major> <minor> <start> <inc> <count> 54 # <name> <type> <mode> <uid> <gid> <major> <minor> <start> <inc> <count>
|
/busybox-1.35.0/runit/ |
D | chpst.c | 459 xsetenv("UID", utoa(ugid.uid)); in chpst_main() 477 xsetuid(ugid.uid); in chpst_main()
|