Home
last modified time | relevance | path

Searched refs:geteuid (Results 1 – 25 of 132) sorted by relevance

123456

/external/libbrillo/brillo/
Dfile_utils_unittest.cc106 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()
Dfile_utils.cc162 return TouchFile(path, kPermissions600, geteuid(), getegid()); in TouchFile()
Dprocess_unittest.cc235 gid_t uid = geteuid(); in TEST_F()
249 ASSERT_NE(0, geteuid()); in TEST_F()
/external/ltrace/
Dexecute_program.c48 if (getuid() != 0 || geteuid() != 0) { in change_uid()
68 if (options.user || !geteuid()) { in change_uid()
/external/chromium-trace/catapult/telemetry/build/
Dlinux_setup_msr.py79 if os.geteuid() == 0:
91 if os.geteuid() != 0:
/external/libcap/progs/old/
Dsucap.c61 if (getuid() && !geteuid()) { in main()
149 printf("[debug] uid:%d, real uid:%d\n", geteuid(), getuid()); in main()
Dexeccap.c37 if (getuid() && !geteuid()) { in main()
/external/curl/lib/
Dnetrc.c82 if(!getpwuid_r(geteuid(), &pw, pwbuf, sizeof(pwbuf), &pw_res) in Curl_parsenetrc()
93 pw= getpwuid(geteuid()); in Curl_parsenetrc()
/external/toybox/toys/posix/
Dcpio.c150 if (!err && !geteuid() && !(toys.optflags & FLAG_no_preserve_owner)) in cpio_main()
176 if (!geteuid() && !(toys.optflags & FLAG_no_preserve_owner)) { in cpio_main()
191 if (!S_ISREG(mode) && !S_ISLNK(mode) && !geteuid() in cpio_main()
Did.c90 uid_t uid = getuid(), euid = geteuid(); in do_id()
/external/ipsec-tools/src/racoon/
Dprivsep.c710 if (geteuid() == 0)
791 if (geteuid() == 0)
900 if (geteuid() == 0)
954 if (geteuid() == 0)
1002 if (geteuid() == 0)
1177 if (geteuid() == 0)
1236 if (geteuid() == 0)
1303 if (geteuid() == 0)
Dsafefile.c56 if (getuid() != geteuid()) {
Dmain.c148 if (geteuid() != 0) {
/external/e2fsprogs/include/nonunix/
Dpwd.h6 __inline int geteuid(void){return 1;} in geteuid() function
/external/mesa3d/src/gallium/targets/gbm/
Dgbm.c40 if (geteuid() == getuid()) in get_library_search_path()
/external/curl/src/
Dtool_homedir.c77 struct passwd *pw = getpwuid(geteuid()); in homedir()
/external/toybox/toys/pending/
Dlogger.c49 struct passwd *pw = getpwuid(geteuid()); in logger_main()
/external/minijail/
Dlibminijailpreload.c52 if (geteuid() != getuid() || getegid() != getgid()) in fake_main()
/external/e2fsprogs/lib/ss/
Dpager.c48 if ((getuid() != geteuid()) || (getgid() != getegid())) in ss_safe_getenv()
/external/valgrind/include/
Dpub_tool_libcproc.h94 extern Int VG_(geteuid) ( void );
/external/dbus/bus/
Dactivation-helper.c194 euid = geteuid(); in check_permissions()
399 if (getuid() != geteuid()) in get_correct_parser()
/external/autotest/client/site_tests/platform_RootPartitionsNotMounted/
Dplatform_RootPartitionsNotMounted.py91 if os.geteuid() != 0:
/external/toybox/toys/other/
Dnsenter.c125 int euid = geteuid(), egid = getegid(); in unshare_main()
/external/libchrome/base/process/
Dprocess_iterator_mac.cc28 static_cast<int>(geteuid()) }; in ProcessIterator()
/external/mesa3d/src/egl/main/
Degldriver.c410 use_env = (geteuid() == getuid() && getegid() == getgid()); in _eglGetSearchPath()
476 if ((geteuid() != getuid() || getegid() != getgid())) { in _eglAddUserDriver()

123456