/dports/devel/libvirt/libvirt-7.10.0/tests/ |
H A D | virlockspacetest.c | 124 if (virLockSpaceReleaseResource(lockspace, "foo", geteuid()) < 0) in testLockSpaceResourceLockExcl() 158 if (virLockSpaceAcquireResource(lockspace, "foo", geteuid(), in testLockSpaceResourceLockExclAuto() 165 if (virLockSpaceReleaseResource(lockspace, "foo", geteuid()) < 0) in testLockSpaceResourceLockExclAuto() 196 if (virLockSpaceAcquireResource(lockspace, "foo", geteuid(), in testLockSpaceResourceLockShr() 203 if (virLockSpaceAcquireResource(lockspace, "foo", geteuid(), in testLockSpaceResourceLockShr() 210 if (virLockSpaceReleaseResource(lockspace, "foo", geteuid()) < 0) in testLockSpaceResourceLockShr() 216 if (virLockSpaceReleaseResource(lockspace, "foo", geteuid()) < 0) in testLockSpaceResourceLockShr() 250 if (virLockSpaceAcquireResource(lockspace, "foo", geteuid(), in testLockSpaceResourceLockShrAuto() 258 if (virLockSpaceAcquireResource(lockspace, "foo", geteuid(), in testLockSpaceResourceLockShrAuto() 265 if (virLockSpaceAcquireResource(lockspace, "foo", geteuid(), in testLockSpaceResourceLockShrAuto() [all …]
|
/dports/sysutils/fcron/fcron-3.2.1/tests/ |
H A D | test-uidgid.c | 13 uid_t euid = geteuid(); in main() 17 printf("=== uid=%d gid=%d euid=%d egid=%d\n", getuid(), getgid(), geteuid(), getegid()); in main() 21 printf("=== uid=%d gid=%d euid=%d egid=%d\n", getuid(), getgid(), geteuid(), getegid()); in main() 25 printf("=== uid=%d gid=%d euid=%d egid=%d\n", getuid(), getgid(), geteuid(), getegid()); in main() 29 printf("=== uid=%d gid=%d euid=%d egid=%d\n", getuid(), getgid(), geteuid(), getegid()); in main() 33 printf("=== uid=%d gid=%d euid=%d egid=%d\n", getuid(), getgid(), geteuid(), getegid()); in main() 37 printf("=== uid=%d gid=%d euid=%d egid=%d\n", getuid(), getgid(), geteuid(), getegid()); in main() 41 printf("=== uid=%d gid=%d euid=%d egid=%d\n", getuid(), getgid(), geteuid(), getegid()); in main() 45 printf("=== uid=%d gid=%d euid=%d egid=%d\n", getuid(), getgid(), geteuid(), getegid()); in main() 49 printf("=== uid=%d gid=%d euid=%d egid=%d\n", getuid(), getgid(), geteuid(), getegid()); in main()
|
/dports/sysutils/cdrkit/cdrkit-1.1.11/icedax/ |
H A D | setuid.c | 61 leffective_uid = geteuid(); in initsecurity() 87 effective_uid, real_uid, geteuid(), getuid(), getpid()); in needroot() 101 if (geteuid() == 0) return; /* nothing to do */ in needroot() 116 if (geteuid() != 0 && necessary) { in needroot() 122 effective_uid, real_uid, geteuid(), getuid(), getpid()); in needroot() 132 effective_uid, real_uid, geteuid(), getuid(), getpid()); in dontneedroot() 140 if (geteuid() != 0) return; /* nothing to do */ in dontneedroot() 155 if (geteuid() != real_uid) { in dontneedroot() 159 effective_uid, real_uid, geteuid(), getuid(), getpid()); in dontneedroot() 177 if (geteuid() == effective_uid) { in neverneedroot() [all …]
|
/dports/sysutils/genisoimage/cdrkit-1.1.11/icedax/ |
H A D | setuid.c | 61 leffective_uid = geteuid(); 87 effective_uid, real_uid, geteuid(), getuid(), getpid()); 101 if (geteuid() == 0) return; /* nothing to do */ 116 if (geteuid() != 0 && necessary) { 122 effective_uid, real_uid, geteuid(), getuid(), getpid()); 132 effective_uid, real_uid, geteuid(), getuid(), getpid()); 140 if (geteuid() != 0) return; /* nothing to do */ 155 if (geteuid() != real_uid) { 159 effective_uid, real_uid, geteuid(), getuid(), getpid()); 177 if (geteuid() == effective_uid) { [all …]
|
/dports/devel/sunpromake/schily-2021-09-18/cdda2wav/ |
H A D | setuid.c | 75 leffective_uid = geteuid(); in initsecurity() 107 geteuid(), getuid(), getpid()); 122 if (geteuid() == 0) 146 geteuid(), getuid(), getpid()); 160 geteuid(), getuid(), getpid()); in dontneedroot() 168 if (geteuid() != 0) in dontneedroot() 184 if (geteuid() != real_uid) { in dontneedroot() 191 geteuid(), getuid(), getpid()); in dontneedroot() 207 geteuid(), getuid(), getpid()); in neverneedroot() 213 if (geteuid() != effective_uid) { in neverneedroot() [all …]
|
/dports/devel/smake/schily-2021-09-18/cdda2wav/ |
H A D | setuid.c | 75 leffective_uid = geteuid(); in initsecurity() 107 geteuid(), getuid(), getpid()); 122 if (geteuid() == 0) 146 geteuid(), getuid(), getpid()); 160 geteuid(), getuid(), getpid()); in dontneedroot() 168 if (geteuid() != 0) in dontneedroot() 184 if (geteuid() != real_uid) { in dontneedroot() 191 geteuid(), getuid(), getpid()); in dontneedroot() 207 geteuid(), getuid(), getpid()); in neverneedroot() 213 if (geteuid() != effective_uid) { in neverneedroot() [all …]
|
/dports/devel/schilybase/schily-2021-09-18/cdda2wav/ |
H A D | setuid.c | 75 leffective_uid = geteuid(); in initsecurity() 107 geteuid(), getuid(), getpid()); 122 if (geteuid() == 0) 146 geteuid(), getuid(), getpid()); 160 geteuid(), getuid(), getpid()); in dontneedroot() 168 if (geteuid() != 0) in dontneedroot() 184 if (geteuid() != real_uid) { in dontneedroot() 191 geteuid(), getuid(), getpid()); in dontneedroot() 207 geteuid(), getuid(), getpid()); in neverneedroot() 213 if (geteuid() != effective_uid) { in neverneedroot() [all …]
|
/dports/devel/sccs/schily-2021-09-18/cdda2wav/ |
H A D | setuid.c | 75 leffective_uid = geteuid(); in initsecurity() 107 geteuid(), getuid(), getpid()); 122 if (geteuid() == 0) 146 geteuid(), getuid(), getpid()); 160 geteuid(), getuid(), getpid()); in dontneedroot() 168 if (geteuid() != 0) in dontneedroot() 184 if (geteuid() != real_uid) { in dontneedroot() 191 geteuid(), getuid(), getpid()); in dontneedroot() 207 geteuid(), getuid(), getpid()); in neverneedroot() 213 if (geteuid() != effective_uid) { in neverneedroot() [all …]
|
/dports/net/rscsi/schily-2021-09-18/cdda2wav/ |
H A D | setuid.c | 75 leffective_uid = geteuid(); in initsecurity() 107 geteuid(), getuid(), getpid()); 122 if (geteuid() == 0) 146 geteuid(), getuid(), getpid()); 160 geteuid(), getuid(), getpid()); in dontneedroot() 168 if (geteuid() != 0) in dontneedroot() 184 if (geteuid() != real_uid) { in dontneedroot() 191 geteuid(), getuid(), getpid()); in dontneedroot() 207 geteuid(), getuid(), getpid()); in neverneedroot() 213 if (geteuid() != effective_uid) { in neverneedroot() [all …]
|
/dports/archivers/star/schily-2021-09-18/cdda2wav/ |
H A D | setuid.c | 75 leffective_uid = geteuid(); in initsecurity() 107 geteuid(), getuid(), getpid()); 122 if (geteuid() == 0) 146 geteuid(), getuid(), getpid()); 160 geteuid(), getuid(), getpid()); in dontneedroot() 168 if (geteuid() != 0) in dontneedroot() 184 if (geteuid() != real_uid) { in dontneedroot() 191 geteuid(), getuid(), getpid()); in dontneedroot() 207 geteuid(), getuid(), getpid()); in neverneedroot() 213 if (geteuid() != effective_uid) { in neverneedroot() [all …]
|
/dports/sysutils/cdrtools/schily-2021-09-18/cdda2wav/ |
H A D | setuid.c | 75 leffective_uid = geteuid(); in initsecurity() 107 geteuid(), getuid(), getpid()); 122 if (geteuid() == 0) 146 geteuid(), getuid(), getpid()); 160 geteuid(), getuid(), getpid()); in dontneedroot() 168 if (geteuid() != 0) in dontneedroot() 184 if (geteuid() != real_uid) { in dontneedroot() 191 geteuid(), getuid(), getpid()); in dontneedroot() 207 geteuid(), getuid(), getpid()); in neverneedroot() 213 if (geteuid() != effective_uid) { in neverneedroot() [all …]
|
/dports/editors/ved/schily-2021-09-18/cdda2wav/ |
H A D | setuid.c | 75 leffective_uid = geteuid(); in initsecurity() 107 geteuid(), getuid(), getpid()); 122 if (geteuid() == 0) 146 geteuid(), getuid(), getpid()); 160 geteuid(), getuid(), getpid()); in dontneedroot() 168 if (geteuid() != 0) in dontneedroot() 184 if (geteuid() != real_uid) { in dontneedroot() 191 geteuid(), getuid(), getpid()); in dontneedroot() 207 geteuid(), getuid(), getpid()); in neverneedroot() 213 if (geteuid() != effective_uid) { in neverneedroot() [all …]
|
/dports/sysutils/schilyutils/schily-2021-09-18/cdda2wav/ |
H A D | setuid.c | 75 leffective_uid = geteuid(); in initsecurity() 107 geteuid(), getuid(), getpid()); 122 if (geteuid() == 0) 146 geteuid(), getuid(), getpid()); 160 geteuid(), getuid(), getpid()); in dontneedroot() 168 if (geteuid() != 0) in dontneedroot() 184 if (geteuid() != real_uid) { in dontneedroot() 191 geteuid(), getuid(), getpid()); in dontneedroot() 207 geteuid(), getuid(), getpid()); in neverneedroot() 213 if (geteuid() != effective_uid) { in neverneedroot() [all …]
|
/dports/mail/libmilter/sendmail-8.16.1/test/ |
H A D | t_seteuid.c | 42 (int) getuid(), (int) geteuid()); 55 if (geteuid() != 0) 71 if (geteuid() != 1) 86 if (geteuid() != 0) 105 if (geteuid() != 2) 120 if (geteuid() != 0)
|
H A D | t_setreuid.c | 39 (int) getuid(), (int) geteuid()); 52 if (geteuid() != 0) 77 if (geteuid() != 1) 98 if (geteuid() != 0) 117 if (geteuid() != 2) 144 if (geteuid() != 0)
|
/dports/devel/glib20/glib-2.70.4/gio/tests/ |
H A D | credentials.c | 49 if (geteuid () == 0) in test_basic() 55 geteuid ()); in test_basic() 81 g_assert_cmpuint (g_credentials_get_unix_user (other, &error), ==, geteuid ()); in test_basic() 99 g_assert_cmpuint (native->uid, ==, geteuid ()); in test_basic() 108 g_assert_cmpuint (native->cr_uid, ==, geteuid ()); in test_basic() 115 g_assert_cmpuint (native->cmcred_euid, ==, geteuid ()); in test_basic() 123 g_assert_cmpuint (native->unp_euid, ==, geteuid ()); in test_basic() 131 g_assert_cmpuint (native->uid, ==, geteuid ()); in test_basic() 139 g_assert_cmpuint (ucred_geteuid (native), ==, geteuid ()); in test_basic()
|
/dports/net/samba412/samba-4.12.15/testsuite/smbd/ |
H A D | sec_ctx_stack.c | 44 getuid(), getgid(), geteuid(), getegid()); in main() 46 if ((geteuid() != i + 1) || (getegid() != i + 2)) { in main() 64 getuid(), getgid(), geteuid(), getegid()); in main() 69 if ((geteuid() != i - 1) || (getegid() != i)) { in main() 74 if ((geteuid() != 0) || (getegid() != 0)) { in main()
|
/dports/devel/uid_wrapper/uid_wrapper-1.2.4/tests/ |
H A D | test_seteuid.c | 32 u = geteuid(); in test_uwrap_seteuid() 43 u = geteuid(); in test_uwrap_seteuid() 58 u = geteuid(); in test_uwrap_seteuid() 78 u = geteuid(); in test_uwrap_seteuid() 93 u = geteuid(); in test_uwrap_seteuid() 108 u = geteuid(); in test_uwrap_seteuid()
|
/dports/security/gnome-ssh-askpass/openssh-6.6p1/ |
H A D | uidswap.c | 64 saved_euid = geteuid(); in temporarily_use_uid() 76 if (geteuid() != 0) { in temporarily_use_uid() 123 if (setuid(geteuid()) < 0) in temporarily_use_uid() 124 debug("setuid %u: %.100s", (u_int) geteuid(), strerror(errno)); in temporarily_use_uid() 153 if (getuid() != uid || geteuid() != uid) { in permanently_drop_suid() 155 __func__, (u_int)getuid(), (u_int)geteuid(), (u_int)uid); in permanently_drop_suid() 252 if (getuid() != pw->pw_uid || geteuid() != pw->pw_uid) { in permanently_set_uid() 254 __func__, (u_int)getuid(), (u_int)geteuid(), in permanently_set_uid()
|
H A D | platform.c | 92 return (getuid() == 0 || geteuid() == 0); in platform_privileged_uidswap() 110 if (getuid() == 0 || geteuid() == 0) in platform_setusercontext() 115 if (getuid() == 0 || geteuid() == 0) in platform_setusercontext() 124 if (getuid() == 0 || geteuid() == 0) { in platform_setusercontext() 132 if (getuid() == 0 || geteuid() == 0) { in platform_setusercontext()
|
/dports/security/pam_ssh/pam_ssh-8.0/openssh/ |
H A D | platform.c | 88 return (getuid() == 0 || geteuid() == 0); in platform_privileged_uidswap() 110 if (!options.use_pam && (getuid() == 0 || geteuid() == 0)) in platform_setusercontext() 115 if (getuid() == 0 || geteuid() == 0) in platform_setusercontext() 124 if (getuid() == 0 || geteuid() == 0) { in platform_setusercontext() 132 if (getuid() == 0 || geteuid() == 0) { in platform_setusercontext()
|
/dports/security/openssh-portable/openssh-8.8p1/ |
H A 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()
|
/dports/security/ncrack/ncrack-0.7/opensshlib/ |
H A D | platform.c | 93 return (getuid() == 0 || geteuid() == 0); in platform_privileged_uidswap() 111 if (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()
|
/dports/emulators/mtools/mtools-4.0.26/ |
H A D | mtools.c | 85 printf("INIT: %d %d\n", getuid(), geteuid()); in main() 87 printf("DROP: %d %d\n", getuid(), geteuid()); in main() 89 printf("RECLAIM: %d %d\n", getuid(), geteuid()); in main() 90 euid = geteuid(); in main() 93 printf("DROP: %d %d\n", getuid(), geteuid()); in main() 97 printf("DESTROY: %d %d\n", getuid(), geteuid()); in main()
|
/dports/devel/gnulib/gnulib-20140202-stable/doc/posix-functions/ |
H A D | geteuid.texi | 1 @node geteuid 2 @section @code{geteuid} 3 @findex geteuid 5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/geteuid.html}
|