/freebsd-11-stable/contrib/sendmail/test/ |
H A D | t_setuid.c | 12 ** This program checks to see if your version of setuid works. 62 if (setuid(1) < 0) 63 printf("setuid(1) failure\n"); 64 printuids("after setuid(1)", 1, 1); 80 if (setuid(0) == 0) 83 printf("MAYDAY! setuid(0) succeeded (should have failed)\n"); 87 printf("setuid(0) failed (this is correct)\n"); 89 printuids("after setuid(0)", 1, 1); 105 printf("\nThis system cannot use setuid (maybe use setreuid)\n"); 109 printf("\nIt is safe to use setuid o [all...] |
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_setuid.c | 45 atf_tc_set_md_var(tc, "descr", "Test setuid(0) as normal user"); 53 ATF_REQUIRE(setuid(0) == -1); 60 atf_tc_set_md_var(tc, "descr", "Test setuid(2) with real UID"); 67 ATF_REQUIRE(setuid(uid) == 0); 76 atf_tc_set_md_var(tc, "descr", "A basic test of setuid(2)"); 94 rv = setuid(pw->pw_uid);
|
H A D | t_issetugid.c | 135 if (check(setuid, NULL) != true)
|
H A D | t_mkdir.c | 130 if (setuid(pw->pw_uid) != 0)
|
H A D | t_kill.c | 171 if (setuid(cuid) < 0) 184 if (setuid(puid) != 0)
|
/freebsd-11-stable/etc/periodic/security/ |
H A D | 100.chksetuid | 47 echo 'Checking setuid files and devices:' 58 check_diff setuid - "${host} setuid diffs:"
|
/freebsd-11-stable/crypto/openssh/regress/ |
H A D | agent-ptrace.sh | 27 if $OBJ/setuid-allowed ${SSHAGENT} ; then 30 echo "skipped (${SSHAGENT} is mounted on a no-setuid filesystem)"
|
/freebsd-11-stable/contrib/tcp_wrappers/ |
H A D | safe_finger.c | 69 setuid(pwd->pw_uid); 72 setuid(UNPRIV_UGID);
|
/freebsd-11-stable/crypto/openssh/ |
H A D | auth-sia.c | 110 setuid(0);
|
H A D | uidswap.c | 123 if (setuid(geteuid()) < 0) 124 debug("setuid %u: %.100s", (u_int) geteuid(), strerror(errno)); 151 * deliberately allowed the right to setuid back to root). 154 (setuid(old_uid) != -1 || seteuid(old_uid) != -1)) 192 setuid(getuid()); 253 (setuid(old_uid) != -1 || seteuid(old_uid) != -1))
|
/freebsd-11-stable/crypto/openssh/openbsd-compat/ |
H A D | bsd-setres_id.c | 89 if (setuid(ruid) < 0) { 91 error("setuid %u: %.100s", ruid, strerror(errno));
|
/freebsd-11-stable/libexec/rpc.rwalld/ |
H A D | rwalld.c | 78 setuid(pep->pw_uid); 80 setuid(getuid());
|
/freebsd-11-stable/crypto/heimdal/kdc/ |
H A D | main.c | 88 if (setuid(pw->pw_uid) < 0) 89 err(1, "setuid(%s)", runas_string);
|
/freebsd-11-stable/contrib/netbsd-tests/kernel/kqueue/ |
H A D | t_proc2.c | 69 if ((setuid(pwd->pw_uid)) == -1) 70 err(EXIT_FAILURE, "setuid(%d)", pwd->pw_uid);
|
/freebsd-11-stable/contrib/sendmail/libsm/ |
H A D | mpeix.c | 354 ** - setuid/setgid file permission bits exist but have no-op functionality 356 ** - setuid() forces a gid change to the new uid's primary (and only) gid 367 ** setuid() in order to implement the following model: 369 ** - the sendmail program thinks it is a setuid-root (uid 0) program 371 ** - MPE priv mode allows sendmail to call setuid(), not uid 0 376 ** setuid mode bits which exist but are unused by MPE. If the setgid mode 377 ** bit is on, then gid emulation will be enabled. If the setuid mode bit is 468 ** if the setuid bit is on, we want uid emulation and so set 527 ** a setuid-root program. 553 ** Note that sendmail will also be calling setuid() whic 604 #undef setuid macro [all...] |
/freebsd-11-stable/bin/rcp/ |
H A D | util.c | 116 (void)setuid(userid);
|
/freebsd-11-stable/lib/libc/net/ |
H A D | rcmdsh.c | 132 if (setuid(pw->pw_uid) == -1) { 133 (void)fprintf(stderr, "rcmdsh: setuid(%u): %s\n",
|
/freebsd-11-stable/usr.sbin/chroot/ |
H A D | chroot.c | 161 if (user && setuid(uid) == -1) 162 err(1, "setuid");
|
/freebsd-11-stable/usr.sbin/bluetooth/sdpd/ |
H A D | main.c | 200 if (setuid(uid) < 0) { 201 log_err("Could not setuid(%s). %s (%d)",
|
/freebsd-11-stable/contrib/openpam/bin/su/ |
H A D | su.c | 168 if (setuid(pwd->pw_uid) == -1) { 169 warn("setuid()");
|
/freebsd-11-stable/usr.bin/finger/ |
H A D | finger.c | 170 if (setuid(pw->pw_uid) != 0) 171 err(1, "setuid()"); 175 if (setuid(UNPRIV_UGID) != 0) 176 err(1, "setuid()");
|
/freebsd-11-stable/sys/kern/ |
H A D | capabilities.conf | 647 setuid
|
/freebsd-11-stable/lib/libc/sys/ |
H A D | Makefile.inc | 285 setuid.2 \ 447 MLINKS+=setuid.2 setegid.2 \ 448 setuid.2 seteuid.2 \ 449 setuid.2 setgid.2
|
/freebsd-11-stable/sys/compat/freebsd32/ |
H A D | capabilities.conf | 249 setuid
|
/freebsd-11-stable/libexec/ftpd/ |
H A D | popen.c | 142 if (getuid() != geteuid() && setuid(geteuid()) < 0)
|