Home
last modified time | relevance | path

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

12345

/external/openssh/
Dplatform.c84 return (getuid() == 0 || geteuid() == 0); in platform_privileged_uidswap()
102 if (getuid() == 0 || geteuid() == 0) in platform_setusercontext()
107 if (getuid() == 0 || geteuid() == 0) in platform_setusercontext()
116 if (getuid() == 0 || geteuid() == 0) { in platform_setusercontext()
124 if (getuid() == 0 || geteuid() == 0) { in platform_setusercontext()
Daudit.c128 (int)geteuid()); in audit_connection_from()
138 debug("audit event euid %d user %s event %d (%s)", geteuid(), in audit_event()
154 debug("audit session open euid %d user %s tty name %s", geteuid(), in audit_session_open()
170 debug("audit session close euid %d user %s tty name %s", geteuid(), in audit_session_close()
182 debug("audit run command euid %d user %s command '%.200s'", geteuid(), in audit_run_command()
Duidswap.c69 saved_euid = geteuid(); in temporarily_use_uid()
81 if (geteuid() != 0) { in temporarily_use_uid()
130 if (setuid(geteuid()) < 0) in temporarily_use_uid()
131 debug("setuid %u: %.100s", (u_int) geteuid(), strerror(errno)); in temporarily_use_uid()
170 if (getuid() != uid || geteuid() != uid) { in permanently_drop_suid()
172 __func__, (u_int)getuid(), (u_int)geteuid(), (u_int)uid); in permanently_drop_suid()
314 if (getuid() != pw->pw_uid || geteuid() != pw->pw_uid) { in permanently_set_uid()
316 __func__, (u_int)getuid(), (u_int)geteuid(), in permanently_set_uid()
Daudit-linux.c65 if ((rc == -EPERM) && (geteuid() != 0)) in linux_audit_record_event()
/external/chromium_org/chrome/test/pyautolib/
Dchromoting_helper.py37 assert os.geteuid() == 0, 'Need superuser privileges'
112 assert os.geteuid() == 0, 'Need superuser privileges'
121 assert os.geteuid() == 0, 'Need superuser privileges'
Dpolicy_posix_util.py14 assert os.geteuid() == 0, 'Need superuser privileges'
/external/chromium_org/third_party/openssl/openssl/crypto/
Duid.c82 if (getuid() != geteuid()) return 1; in OPENSSL_issetugid()
/external/openssl/crypto/
Duid.c82 if (getuid() != geteuid()) return 1; in OPENSSL_issetugid()
/external/e2fsprogs/include/nonunix/
Dpwd.h6 __inline int geteuid(void){return 1;} in geteuid() function
/external/chromium_org/chrome/browser/
Dprocess_info_snapshot_mac_unittest.cc64 uid_t euid = geteuid(); in TEST_F()
136 EXPECT_EQ(proc_info.uid, geteuid()); in TEST_F()
/external/chromium/chrome/browser/
Dprocess_info_snapshot_mac_unittest.cc62 uid_t euid = geteuid(); in TEST_F()
132 EXPECT_EQ(proc_info.uid, geteuid()); in TEST_F()
/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()) {
/external/chromium_org/chrome/test/functional/
Dcrash_reporter.py39 if self.IsChromeOS() and os.geteuid() == 0:
Dnetflix.py159 assert os.geteuid() == 0, 'Run test as root since we might need to logout'
227 assert os.geteuid() == 0, 'Run test as root since we might need to logout'
/external/chromium/chrome/browser/policy/
Dpolicy_path_parser_posix.cc26 struct passwd* user = getpwuid(geteuid()); in ExpandPathVariables()
/external/chromium_org/chrome/test/pyautolib/chromeos/
Denable_testing.py43 assert os.geteuid() == 0, 'Needs superuser privileges.'
/external/openssh/openbsd-compat/
Dbsd-getpeereid.c66 *euid = geteuid(); in getpeereid()
/external/mesa3d/src/gallium/targets/gbm/
Dgbm.c40 if (geteuid() == getuid()) in get_library_search_path()
/external/chromium_org/third_party/mesa/src/src/gallium/targets/gbm/
Dgbm.c40 if (geteuid() == getuid()) in get_library_search_path()
/external/chromium_org/chrome/browser/policy/
Dpolicy_path_parser_linux.cc37 struct passwd* user = getpwuid(geteuid()); in ExpandPathVariables()
/external/chromium_org/chrome/browser/ui/gtk/
Dchrome_browser_main_extra_parts_gtk.cc27 if (geteuid() == 0) { in DetectRunningAsRoot()
/external/valgrind/main/include/
Dpub_tool_libcproc.h77 extern Int VG_(geteuid) ( void );
/external/chromium_org/tools/python/google/
Dplatform_utils_mac.py95 "user": os.environ.get("USER", "#%d" % os.geteuid()),
Dplatform_utils_linux.py97 "user": os.environ.get("USER", "#%d" % os.geteuid()),

12345