Searched refs:getuid (Results 1 - 25 of 230) sorted by relevance

12345678910

/freebsd-10.2-release/crypto/heimdal/lib/roken/
H A Dgeteuid.c43 return getuid();
H A Dgetuid.c40 getuid(void) function
H A Dissuid.c46 if(getuid() != geteuid())
H A Dget_default_username.c63 uid_t uid = getuid ();
/freebsd-10.2-release/contrib/sendmail/test/
H A Dt_setuid.c37 (int) getuid(), (int) geteuid());
46 uid_t realuid = getuid();
56 if (getuid() == 0)
72 if (getuid() != 1)
96 if (getuid() != 1)
H A Dt_setreuid.c39 (int) getuid(), (int) geteuid());
48 uid_t realuid = getuid();
58 if (getuid() == 0)
71 if (getuid() != 0)
103 if (getuid() != realuid)
123 if (getuid() != 0)
149 if (getuid() != realuid)
H A Dt_seteuid.c42 (int) getuid(), (int) geteuid());
51 uid_t realuid = getuid();
61 if (getuid() == 0)
91 if (getuid() != realuid)
125 if (getuid() != realuid)
/freebsd-10.2-release/crypto/openssh/
H A Dsftp-server-main.c44 if ((user_pw = getpwuid(getuid())) == NULL) {
46 (u_long)getuid());
H A Dplatform.c92 return (getuid() == 0 || geteuid() == 0);
110 if (getuid() == 0 || geteuid() == 0)
115 if (getuid() == 0 || geteuid() == 0)
124 if (getuid() == 0 || geteuid() == 0) {
132 if (getuid() == 0 || geteuid() == 0) {
H A Duidswap.c138 uid_t old_uid = getuid();
153 if (getuid() != uid || geteuid() != uid) {
155 __func__, (u_int)getuid(), (u_int)geteuid(), (u_int)uid);
186 setuid(getuid());
203 uid_t old_uid = getuid();
252 if (getuid() != pw->pw_uid || geteuid() != pw->pw_uid) {
254 __func__, (u_int)getuid(), (u_int)geteuid(),
/freebsd-10.2-release/crypto/openssl/crypto/
H A Duid.c82 if (getuid() != geteuid())
/freebsd-10.2-release/contrib/netbsd-tests/lib/libc/sys/
H A Dt_setuid.c65 uid_t uid = getuid();
69 ATF_REQUIRE(getuid() == uid);
99 uid = getuid();
/freebsd-10.2-release/contrib/libarchive/libarchive/test/
H A Dtest_write_disk_perms.c51 uid_t uid = getuid();
144 assertEqualInt(0, chown(".", getuid(), getgid()));
224 archive_entry_set_uid(ae, getuid());
237 archive_entry_set_uid(ae, getuid() + 1);
249 if (getuid() != 0) {
253 archive_entry_set_uid(ae, getuid() + 1);
303 archive_entry_set_uid(ae, getuid());
317 archive_entry_set_uid(ae, getuid());
356 if (getuid() == 0) {
362 archive_entry_set_uid(ae, getuid()
[all...]
/freebsd-10.2-release/usr.sbin/lpr/lprm/
H A Dlprm.c95 uid = getuid();
107 if (getuid() == 0) {
110 if ((p = getpwuid(getuid())) == NULL)
/freebsd-10.2-release/lib/libpam/modules/pam_rootok/
H A Dpam_rootok.c56 if (getuid() == 0)
/freebsd-10.2-release/release/picobsd/tinyware/passwd/
H A Dpasswd.c104 if (!getuid()) {
117 if (!getuid()) {
/freebsd-10.2-release/contrib/sendmail/smrsh/
H A Dsmrsh.c240 syslog(LOG_CRIT, "uid %d: missing command to exec", (int) getuid());
302 (int) getuid(), cmd);
321 (int) getuid(), cmd);
339 (int) getuid(), cmd);
353 (int) getuid(), cmd);
397 (int) getuid(), *r, par);
407 (int) getuid());
/freebsd-10.2-release/contrib/opie/
H A Dopieinfo.c80 if (getuid() != 0) {
/freebsd-10.2-release/lib/libpam/modules/pam_self/
H A Dpam_self.c69 uid = getuid();
/freebsd-10.2-release/libexec/ulog-helper/
H A Dulog-helper.c62 uid = getuid();
/freebsd-10.2-release/usr.bin/mail/
H A Dv7.local.c89 if ((np = getname(uid = getuid())) != NULL)
/freebsd-10.2-release/usr.bin/tip/tip/
H A Dlog.c65 if ((pwd = getpwuid(getuid())) == NOPWD)
/freebsd-10.2-release/usr.bin/at/
H A Dprivs.h71 real_uid = getuid(); \
/freebsd-10.2-release/usr.bin/lock/
H A Dlock.c116 if (!(pw = getpwuid(getuid())))
117 errx(1, "unknown uid %d", getuid());
133 if (setuid(getuid()) != 0)
233 if (getuid() == 0)
241 if (getuid() == 0)
/freebsd-10.2-release/usr.bin/newgrp/
H A Dnewgrp.c67 if (seteuid(getuid()) < 0) \
78 if (seteuid(getuid()) < 0)
81 if ((pwd = getpwuid(getuid())) == NULL)
111 if (setuid(getuid()) < 0)
180 if (!dbmember && *grp->gr_passwd != '\0' && getuid() != 0) {

Completed in 170 milliseconds

12345678910