Searched refs:setuid (Results 1 - 25 of 108) sorted by relevance

12345

/freebsd-11-stable/contrib/sendmail/test/
H A Dt_setuid.c12 ** 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 Dt_setuid.c45 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 Dt_issetugid.c135 if (check(setuid, NULL) != true)
H A Dt_mkdir.c130 if (setuid(pw->pw_uid) != 0)
H A Dt_kill.c171 if (setuid(cuid) < 0)
184 if (setuid(puid) != 0)
/freebsd-11-stable/etc/periodic/security/
H A D100.chksetuid47 echo 'Checking setuid files and devices:'
58 check_diff setuid - "${host} setuid diffs:"
/freebsd-11-stable/crypto/openssh/regress/
H A Dagent-ptrace.sh27 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 Dsafe_finger.c69 setuid(pwd->pw_uid);
72 setuid(UNPRIV_UGID);
/freebsd-11-stable/crypto/openssh/
H A Dauth-sia.c110 setuid(0);
H A Duidswap.c123 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 Dbsd-setres_id.c89 if (setuid(ruid) < 0) {
91 error("setuid %u: %.100s", ruid, strerror(errno));
/freebsd-11-stable/libexec/rpc.rwalld/
H A Drwalld.c78 setuid(pep->pw_uid);
80 setuid(getuid());
/freebsd-11-stable/crypto/heimdal/kdc/
H A Dmain.c88 if (setuid(pw->pw_uid) < 0)
89 err(1, "setuid(%s)", runas_string);
/freebsd-11-stable/contrib/netbsd-tests/kernel/kqueue/
H A Dt_proc2.c69 if ((setuid(pwd->pw_uid)) == -1)
70 err(EXIT_FAILURE, "setuid(%d)", pwd->pw_uid);
/freebsd-11-stable/contrib/sendmail/libsm/
H A Dmpeix.c354 ** - 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 Dutil.c116 (void)setuid(userid);
/freebsd-11-stable/lib/libc/net/
H A Drcmdsh.c132 if (setuid(pw->pw_uid) == -1) {
133 (void)fprintf(stderr, "rcmdsh: setuid(%u): %s\n",
/freebsd-11-stable/usr.sbin/chroot/
H A Dchroot.c161 if (user && setuid(uid) == -1)
162 err(1, "setuid");
/freebsd-11-stable/usr.sbin/bluetooth/sdpd/
H A Dmain.c200 if (setuid(uid) < 0) {
201 log_err("Could not setuid(%s). %s (%d)",
/freebsd-11-stable/contrib/openpam/bin/su/
H A Dsu.c168 if (setuid(pwd->pw_uid) == -1) {
169 warn("setuid()");
/freebsd-11-stable/usr.bin/finger/
H A Dfinger.c170 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 Dcapabilities.conf647 setuid
/freebsd-11-stable/lib/libc/sys/
H A DMakefile.inc285 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 Dcapabilities.conf249 setuid
/freebsd-11-stable/libexec/ftpd/
H A Dpopen.c142 if (getuid() != geteuid() && setuid(geteuid()) < 0)

Completed in 250 milliseconds

12345