Searched refs:ugid (Results 1 – 6 of 6) sorted by relevance
/busybox-1.35.0/coreutils/ |
D | chown.c | 100 struct bb_uidgid_t ugid; member 109 uid_t u = (param.ugid.uid == (uid_t)-1L) ? statbuf->st_uid : param.ugid.uid; in fileAction() 110 gid_t g = (param.ugid.gid == (gid_t)-1L) ? statbuf->st_gid : param.ugid.gid; in fileAction() 158 parse_chown_usergroup_or_die(¶m.ugid, argv[0]); in chown_main()
|
/busybox-1.35.0/debianutils/ |
D | start_stop_daemon.c | 550 struct bb_uidgid_t ugid; in start_stop_daemon_main() local 551 parse_chown_usergroup_or_die(&ugid, chuid); in start_stop_daemon_main() 552 if (ugid.uid != (uid_t) -1L) { in start_stop_daemon_main() 553 struct passwd *pw = xgetpwuid(ugid.uid); in start_stop_daemon_main() 554 if (ugid.gid != (gid_t) -1L) in start_stop_daemon_main() 555 pw->pw_gid = ugid.gid; in start_stop_daemon_main() 558 } else if (ugid.gid != (gid_t) -1L) { in start_stop_daemon_main() 559 xsetgid(ugid.gid); in start_stop_daemon_main() 560 setgroups(1, &ugid.gid); in start_stop_daemon_main()
|
/busybox-1.35.0/runit/ |
D | chpst.c | 279 struct bb_uidgid_t ugid; in chpst_main() local 452 xget_uidgid(&ugid, set_user); in chpst_main() 458 xsetenv("GID", utoa(ugid.gid)); in chpst_main() 459 xsetenv("UID", utoa(ugid.uid)); in chpst_main() 474 if (setgroups(1, &ugid.gid) == -1) in chpst_main() 476 xsetgid(ugid.gid); in chpst_main() 477 xsetuid(ugid.uid); in chpst_main()
|
/busybox-1.35.0/networking/ |
D | tcpudp.c | 261 struct bb_uidgid_t ugid; in tcpudpsvd_main() local 313 xget_uidgid(&ugid, user); in tcpudpsvd_main() 385 xsetgid(ugid.gid); in tcpudpsvd_main() 386 xsetuid(ugid.uid); in tcpudpsvd_main() 394 (unsigned)ugid.uid, (unsigned)ugid.gid); in tcpudpsvd_main()
|
D | httpd.c | 2780 IF_FEATURE_HTTPD_SETUID(struct bb_uidgid_t ugid;) in httpd_main() 2835 xget_uidgid(&ugid, s_ugid); in httpd_main() 2857 if (ugid.gid != (gid_t)-1) { in httpd_main() 2858 if (setgroups(1, &ugid.gid) == -1) in httpd_main() 2860 xsetgid(ugid.gid); in httpd_main() 2862 xsetuid(ugid.uid); in httpd_main()
|
/busybox-1.35.0/util-linux/ |
D | mdev.c | 289 struct bb_uidgid_t ugid; member 427 if (get_uidgid(&G.cur_rule.ugid, tokens[1]) == 0) { in parse_next_rule() 776 rule->ugid.uid, rule->ugid.gid in make_device() 787 chown(node_name, rule->ugid.uid, rule->ugid.gid); in make_device()
|