/third_party/ltp/testcases/kernel/syscalls/utils/ |
D | compat_16.h | 35 int setresuid(uid_t ruid, uid_t euid, uid_t suid); 36 int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); 125 int SETREUID(void (cleanup)(void), UID_T ruid, UID_T euid) in SETREUID() argument 127 LTP_CREATE_SYSCALL(setreuid, cleanup, ruid, euid); in SETREUID() 134 int SETRESUID(void (cleanup)(void), UID_T ruid, UID_T euid, UID_T suid) in SETRESUID() argument 136 LTP_CREATE_SYSCALL(setresuid, cleanup, ruid, euid, suid); in SETRESUID() 139 int GETRESUID(void (cleanup)(void), UID_T *ruid, UID_T *euid, UID_T *suid) in GETRESUID() argument 141 LTP_CREATE_SYSCALL(getresuid, cleanup, ruid, euid, suid); in GETRESUID()
|
D | compat_tst_16.h | 32 int setresuid(uid_t ruid, uid_t euid, uid_t suid); 122 int SETREUID(UID_T ruid, UID_T euid) in SETREUID() argument 124 TST_CREATE_SYSCALL(setreuid, ruid, euid); in SETREUID() 131 int SETRESUID(UID_T ruid, UID_T euid, UID_T suid) in SETRESUID() argument 133 TST_CREATE_SYSCALL(setresuid, ruid, euid, suid); in SETRESUID()
|
/third_party/ltp/testcases/kernel/syscalls/getegid/ |
D | getegid02.c | 42 uid_t euid; in main() local 58 euid = geteuid(); in main() 59 pwent = getpwuid(euid); in main() 63 "unexpected value %d", euid); in main()
|
/third_party/musl/porting/liteos_a/user/src/unistd/ |
D | seteuid.c | 6 int seteuid(uid_t euid) in seteuid() argument 8 if (euid == -1) { in seteuid() 12 return __setxid(SYS_setresuid, -1, euid, -1); in seteuid()
|
/third_party/ltp/testcases/kernel/syscalls/setreuid/ |
D | setreuid01.c | 54 static uid_t ruid, euid; /* real and effective user ids */ variable 75 euid = geteuid(); /* get effective uid */ in main() 76 UID16_CHECK(euid, setreuid, cleanup); in main() 95 TEST(SETREUID(cleanup, -1, euid)); in main()
|
/third_party/ltp/testcases/kernel/syscalls/mq_unlink/ |
D | mq_unlink01.c | 19 static uid_t euid; variable 67 euid = geteuid(); in setup() 104 if (tc->as_nobody && seteuid(euid) == -1) in do_test() 105 tst_res(TWARN | TERRNO, "seteuid back to %d failed", euid); in do_test()
|
/third_party/toybox/toys/posix/ |
D | id.c | 90 uid_t uid = getuid(), euid = geteuid(); in do_id() local 98 uid = euid = pw->pw_uid; in do_id() 104 pw = xgetpwuid(i ? uid : euid); in do_id() 115 if (uid != euid) { in do_id() 116 pw = xgetpwuid(euid); in do_id()
|
/third_party/toybox/toys/other/ |
D | nsenter.c | 91 static void handle_r(int euid, int egid) in handle_r() argument 100 write_ugid_map("/proc/self/uid_map", euid); in handle_r() 128 int euid = geteuid(), egid = getegid(); in unshare_main() local 137 if (test_r()) handle_r(euid, egid); in unshare_main()
|
/third_party/musl/src/unistd/ |
D | seteuid.c | 5 int seteuid(uid_t euid) in seteuid() argument 7 return __setxid(SYS_setresuid, -1, euid, -1); in seteuid()
|
D | setreuid.c | 5 int setreuid(uid_t ruid, uid_t euid) in setreuid() argument 7 return __setxid(SYS_setreuid, ruid, euid, 0); in setreuid()
|
D | setresuid.c | 6 int setresuid(uid_t ruid, uid_t euid, uid_t suid) in setresuid() argument 8 return __setxid(SYS_setresuid, ruid, euid, suid); in setresuid()
|
/third_party/musl/src/misc/ |
D | getresuid.c | 5 int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid) in getresuid() argument 7 return syscall(SYS_getresuid, ruid, euid, suid); in getresuid()
|
/third_party/toybox/ |
D | main.c | 125 uid_t uid = getuid(), euid = geteuid(); in toy_init() local 128 if (uid != euid) { in toy_init() 129 if (setuid(uid)) perror_exit("setuid %d->%d", euid, uid); // drop root in toy_init() 130 euid = uid; in toy_init() 136 if ((which->flags & TOYFLAG_NEEDROOT) && euid) help_exit("Not root"); in toy_init()
|
/third_party/toybox/porting/liteos_a/ |
D | main.c | 125 uid_t uid = getuid(), euid = geteuid(); in toy_init() local 128 if (uid != euid) { in toy_init() 129 if (setuid(uid)) perror_exit("setuid %d->%d", euid, uid); // drop root in toy_init() 130 euid = uid; in toy_init() 136 if ((which->flags & TOYFLAG_NEEDROOT) && euid != KERNEL_PROCESS_GROUP) help_exit("Not root"); in toy_init()
|
/third_party/ltp/testcases/kernel/syscalls/sched_setscheduler/ |
D | sched_setscheduler03.c | 110 uid_t ruid, euid, suid; in setup() local 142 SAFE_GETRESUID(&ruid, &euid, &suid); in setup() 143 if (euid != nobody_uid) in setup()
|
/third_party/ltp/testcases/kernel/syscalls/mq_open/ |
D | mq_open01.c | 21 static uid_t euid; variable 153 SAFE_SETEUID(euid); in unlink_queue() 172 SAFE_SETEUID(euid); in restore_max_queues() 194 euid = geteuid(); in setup()
|
/third_party/ltp/lib/ |
D | tst_safe_macros.c | 101 uid_t ruid, uid_t euid) in safe_setreuid() argument 105 rval = setreuid(ruid, euid); in safe_setreuid() 109 (long)ruid, (long)euid); in safe_setreuid()
|
D | safe_macros.c | 282 uid_t euid) in safe_seteuid() argument 286 rval = seteuid(euid); in safe_seteuid() 290 file, lineno, (unsigned) euid); in safe_seteuid() 327 uid_t *ruid, uid_t *euid, uid_t *suid) in safe_getresuid() argument 331 rval = getresuid(ruid, euid, suid); in safe_getresuid() 335 file, lineno, ruid, euid, suid); in safe_getresuid()
|
/third_party/ltp/include/ |
D | tst_safe_macros.h | 102 #define SAFE_SETEUID(euid) \ argument 103 safe_seteuid(__FILE__, __LINE__, NULL, (euid)) 118 uid_t ruid, uid_t euid); 120 #define SAFE_SETREUID(ruid, euid) \ argument 121 safe_setreuid(__FILE__, __LINE__, (ruid), (euid)) 123 #define SAFE_GETRESUID(ruid, euid, suid) \ argument 124 safe_getresuid(__FILE__, __LINE__, NULL, (ruid), (euid), (suid))
|
D | safe_macros_fn.h | 78 void (*cleanup_fn)(void), uid_t euid); 88 uid_t *ruid, uid_t *euid, uid_t *suid);
|
/third_party/ltp/include/old/ |
D | safe_macros.h | 76 #define SAFE_SETEUID(cleanup_fn, euid) \ argument 77 safe_seteuid(__FILE__, __LINE__, cleanup_fn, (euid)) 85 #define SAFE_GETRESUID(cleanup_fn, ruid, euid, suid) \ argument 86 safe_getresuid(__FILE__, __LINE__, cleanup_fn, (ruid), (euid), (suid))
|
/third_party/e2fsprogs/misc/ |
D | uuidd.c | 66 uid_t euid; in create_daemon() local 85 euid = geteuid(); in create_daemon() 86 if (setreuid(euid, euid) < 0) in create_daemon()
|
/third_party/jsframework/runtime/main/extend/systemplugin/napi/ |
D | ohos_process.js | 112 euid: '[PC preview] unknow euid', property
|
/third_party/ntfs-3g/libfuse-lite/ |
D | fusermount.c | 125 uid_t ruid, euid, suid; in restore_privs() local 127 if (getresuid(&ruid, &euid, &suid) < 0) { in restore_privs()
|
/third_party/glib/glib/ |
D | gutils.c | 3062 uid_t ruid, euid, suid; /* Real, effective and saved user ID's */ in g_check_setuid() 3073 int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); in g_check_setuid() 3076 if (getresuid (&ruid, &euid, &suid) != 0 || in g_check_setuid() 3082 euid = geteuid (); in g_check_setuid() 3086 is_setuid = (ruid != euid || ruid != suid || in g_check_setuid()
|