/external/openssh/ |
D | platform.c | 89 return (getuid() == 0 || geteuid() == 0); in platform_privileged_uidswap() 111 if (!options.use_pam && (getuid() == 0 || geteuid() == 0)) in platform_setusercontext() 116 if (getuid() == 0 || geteuid() == 0) in platform_setusercontext() 125 if (getuid() == 0 || geteuid() == 0) { in platform_setusercontext() 133 if (getuid() == 0 || geteuid() == 0) { in platform_setusercontext()
|
D | uidswap.c | 74 saved_euid = geteuid(); in temporarily_use_uid() 86 if (geteuid() != 0) { in temporarily_use_uid() 133 if (setuid(geteuid()) < 0) in temporarily_use_uid() 134 debug("setuid %u: %.100s", (u_int) geteuid(), strerror(errno)); in temporarily_use_uid() 169 if (getuid() != uid || geteuid() != uid) { in permanently_drop_suid() 171 __func__, (u_int)getuid(), (u_int)geteuid(), (u_int)uid); in permanently_drop_suid() 292 if (getuid() != pw->pw_uid || geteuid() != pw->pw_uid) { in permanently_set_uid() 294 __func__, (u_int)getuid(), (u_int)geteuid(), in permanently_set_uid()
|
D | audit.c | 126 (int)geteuid()); in audit_connection_from() 136 debug("audit event euid %d user %s event %d (%s)", geteuid(), in audit_event() 152 debug("audit session open euid %d user %s tty name %s", geteuid(), in audit_session_open() 168 debug("audit session close euid %d user %s tty name %s", geteuid(), in audit_session_close() 180 debug("audit run command euid %d user %s command '%.200s'", geteuid(), in audit_run_command()
|
/external/libbrillo/brillo/ |
D | file_utils_unittest.cc | 106 EXPECT_TRUE(TouchFile(file_path_, kPermissions777, geteuid() + 1, getegid())); in TEST_F() 112 EXPECT_TRUE(TouchFile(file_path_, kPermissions777, geteuid(), getegid() + 1)); in TEST_F() 117 EXPECT_TRUE(TouchFile(file_path_, kPermissions777, geteuid(), getegid())); in TEST_F() 123 EXPECT_TRUE(TouchFile(file_path_, kPermissions700, geteuid(), getegid())); in TEST_F() 129 EXPECT_TRUE(TouchFile(file_path_, kPermissions777, geteuid(), getegid())); in TEST_F() 130 EXPECT_TRUE(TouchFile(file_path_, kPermissions700, geteuid(), getegid())); in TEST_F()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getparam/ |
D | 6-1.c | 67 pw->pw_name, geteuid(), getuid()); in set_nonroot() 82 if (geteuid() == 0) { in main()
|
/external/ltp/testcases/kernel/syscalls/fchown/ |
D | fchown01.c | 66 UID16_CHECK(geteuid(), "fchown", cleanup) in main() 69 TEST(FCHOWN(cleanup, fd, geteuid(), getegid())); in main()
|
D | fchown04.c | 137 UID16_CHECK(geteuid(), "fchown", cleanup) in fchown_verify() 140 TEST(FCHOWN(cleanup, *test_cases[i].fd, geteuid(), getegid())); in fchown_verify()
|
/external/ltp/testcases/kernel/syscalls/geteuid/ |
D | geteuid02.c | 50 uid = geteuid(); in main() 56 UID16_CHECK(pwent->pw_uid, geteuid, cleanup); in main()
|
/external/ltp/testcases/kernel/syscalls/getresuid/ |
D | getresuid01.c | 141 pe_uid = geteuid(); in setup() 144 ps_uid = geteuid(); in setup()
|
/external/ltp/testcases/kernel/containers/userns/ |
D | userns02.c | 48 uid = geteuid(); in child_fn1() 90 parentuid = geteuid(); in main()
|
D | userns07.c | 67 parentuid = geteuid(); in child_fn1() 101 parentuid = geteuid(); in test_max_nest()
|
D | userns06.c | 76 uid = geteuid(); in child_fn2() 122 parentuid = geteuid(); in main()
|
D | userns03.c | 86 uid = geteuid(); in child_fn2() 175 parentuid = geteuid(); in main()
|
/external/libcap/progs/old/ |
D | sucap.c | 61 if (getuid() && !geteuid()) { in main() 149 printf("[debug] uid:%d, real uid:%d\n", geteuid(), getuid()); in main()
|
/external/ltp/testcases/kernel/syscalls/lchown/ |
D | lchown03.c | 121 UID16_CHECK(geteuid(), "lchown", cleanup) in lchown_verify() 124 TEST(LCHOWN(cleanup, test->pathname, geteuid(), getegid())); in lchown_verify()
|
/external/ltp/testcases/kernel/syscalls/setreuid/ |
D | setreuid04.c | 135 if ((getuid() != ru->pw_uid) || (geteuid() != eu->pw_uid)) { in uid_verify() 137 when, getuid(), geteuid()); in uid_verify()
|
D | setreuid02.c | 136 if ((getuid() != ru->pw_uid) || (geteuid() != eu->pw_uid)) { in uid_verify() 138 when, getuid(), geteuid()); in uid_verify()
|
/external/curl/lib/ |
D | netrc.c | 80 if(!getpwuid_r(geteuid(), &pw, pwbuf, sizeof(pwbuf), &pw_res) in Curl_parsenetrc() 91 pw= getpwuid(geteuid()); in Curl_parsenetrc()
|
/external/toybox/toys/posix/ |
D | cpio.c | 152 if (!err && !geteuid() && !(toys.optflags & FLAG_no_preserve_owner)) in cpio_main() 178 if (!geteuid() && !(toys.optflags & FLAG_no_preserve_owner)) { in cpio_main() 193 if (!S_ISREG(mode) && !S_ISLNK(mode) && !geteuid() in cpio_main()
|
/external/strace/tests/ |
D | setfsuid32.c | 9 # define GETUGID geteuid()
|
D | setuid32.c | 9 # define GETUGID geteuid()
|
/external/strace/tests-mx32/ |
D | setfsuid32.c | 9 # define GETUGID geteuid()
|
D | setuid32.c | 9 # define GETUGID geteuid()
|
D | setresuid32.c | 9 # define GETUGID geteuid()
|
/external/strace/tests-m32/ |
D | setfsuid32.c | 9 # define GETUGID geteuid()
|