/external/libcups/cups/ |
globals.c | 281 if ((geteuid() != getuid() && getuid()) || getegid() != getgid()) 283 if (!getuid())
|
usersys.c | 905 if ((geteuid() == getuid() || !getuid()) && getegid() == getgid() && (home = getenv("HOME")) != NULL) 907 if (getuid() && (home = getenv("HOME")) != NULL) 1128 if ((pw = getpwnam(envuser)) != NULL && pw->pw_uid != getuid()) 1133 pw = getpwuid(getuid()); [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_posix.py | 38 "getpid", "getpgrp", "getppid", "getuid",
103 if os.getuid() != 0:
104 name = pwd.getpwuid(posix.getuid()).pw_name
216 if os.getuid() == 0:
233 chown_func(first_param, os.getuid(), os.getgid())
392 if posix.getuid() != 0:
404 name = pwd.getpwuid(posix.getuid()).pw_name
413 name = pwd.getpwuid(posix.getuid()).pw_name
|
/external/toybox/toys/pending/ |
crontab.c | 239 fchown(fdout, getuid(), geteuid()); 343 if (getuid()) error_exit("must be privileged to use -u"); 345 } else pwd = xgetpwuid(getuid());
|
/cts/hostsidetests/appsecurity/test-apps/AppWithData/src/com/android/cts/appwithdata/ |
MyProvider.java | 83 final int uid = Os.getuid();
|
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/ |
WriteExternalStorageTest.java | 332 assertEquals(Os.getuid(), Os.stat(before.getAbsolutePath()).st_uid); 333 assertEquals(Os.getuid(), Os.stat(beforeFile.getAbsolutePath()).st_uid); 347 assertNotEqual(Os.getuid(), Os.stat(after.getAbsolutePath()).st_uid); 348 assertNotEqual(Os.getuid(), Os.stat(afterFile.getAbsolutePath()).st_uid);
|
/development/gsi/gsi_util/gsi_util/utils/ |
cmd_utils.py | 74 if sudo and os.getuid() != 0:
|
/external/bcc/tests/cc/ |
test_perf_event.cc | 65 std::string getuid_fnname = bpf.get_syscall_fnname("getuid"); 68 REQUIRE(getuid() >= 0);
|
/external/compiler-rt/test/msan/Linux/ |
cmsghdr.cc | 75 struct ucred cred = {getpid(), getuid(), getgid()};
|
/external/iproute2/misc/ |
rtacct.c | 416 if (cred.uid == getuid() || cred.uid == 0) 504 sprintf(sun.sun_path+1, "rtacct%d", getuid()); 536 sprintf(hist_name, "/tmp/.rtacct.u%d", getuid()); 557 if (stb.st_nlink != 1 || stb.st_uid != getuid()) {
|
/external/ltp/testcases/kernel/syscalls/mknod/ |
mknod02.c | 215 save_myuid = getuid();
|
mknod03.c | 212 save_myuid = getuid();
|
mknod04.c | 216 save_myuid = getuid();
|
mknod05.c | 208 save_myuid = getuid();
|
mknod08.c | 212 save_myuid = getuid();
|
/external/ltp/testcases/kernel/syscalls/utils/ |
compat_tst_16.h | 89 UID_T GETUID(void) 91 TST_CREATE_SYSCALL(getuid);
|
/external/minijail/test/ |
libminijail_test.cpp | 54 uid_t ruid = getuid();
|
/external/selinux/restorecond/ |
restorecond.c | 196 uid_t uid = getuid();
|
/external/toybox/toys/lsb/ |
umount.c | 54 if (CFG_TOYBOX_SUID && getuid()) {
|
/frameworks/av/media/libaudioclient/tests/ |
test_create_audiorecord.cpp | 107 getuid(),
|
test_create_audiotrack.cpp | 129 getuid(),
|
/frameworks/base/cmds/idmap2/idmap2/ |
Create.cpp | 75 const uid_t uid = getuid();
|
/external/toybox/toys/posix/ |
df.c | 124 avail = getuid() ? mt->statvfs.f_favail : mt->statvfs.f_ffree; 129 avail= (block*(getuid()?mt->statvfs.f_bavail:mt->statvfs.f_bfree))/TT.units;
|
/frameworks/av/media/mtp/ |
MtpUtils.cpp | 109 chown((const char *)path, getuid(), FILE_GROUP); 191 chown(toPath, getuid(), FILE_GROUP);
|
/cts/tests/tests/net/src/android/net/cts/ |
IpSecManagerTest.java | 328 uidTxDelta = TrafficStats.getUidTxPackets(Os.getuid()) - uidTxPackets; 329 uidRxDelta = TrafficStats.getUidRxPackets(Os.getuid()) - uidRxPackets; 354 long newUidTxBytes = TrafficStats.getUidTxBytes(Os.getuid()); 355 long newUidRxBytes = TrafficStats.getUidRxBytes(Os.getuid()); 356 long newUidTxPackets = TrafficStats.getUidTxPackets(Os.getuid()); 357 long newUidRxPackets = TrafficStats.getUidRxPackets(Os.getuid()); 397 uidTxBytes = TrafficStats.getUidTxBytes(Os.getuid()); 398 uidRxBytes = TrafficStats.getUidRxBytes(Os.getuid()); 399 uidTxPackets = TrafficStats.getUidTxPackets(Os.getuid()); 400 uidRxPackets = TrafficStats.getUidRxPackets(Os.getuid()); [all...] |